Skip to content

Commit

Permalink
refactor: only request for notification permissions on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
franz-dc committed Nov 21, 2024
1 parent 3b2dde1 commit b5ca3e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ const StackWithConfig = () => {
setIsInitialized(true);
await SplashScreen.hideAsync();

requestPermissionsAsync();
if (Platform.OS !== 'web') {
requestPermissionsAsync();
}
};

initConfig();
Expand Down

0 comments on commit b5ca3e5

Please sign in to comment.