-
Notifications
You must be signed in to change notification settings - Fork 17
Moo 1800/update dependencies #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts
Outdated
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts
Outdated
Show resolved
Hide resolved
packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts
Outdated
Show resolved
Hide resolved
packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx
Outdated
Show resolved
Hide resolved
} | ||
|
||
const notification = { message: body } as PushNotificationObject; | ||
const channelId = "mendix-local-notifications"; | ||
await createNotificationChannelIfNeeded(channelId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the channel is Android specific I'd call this function only when we're running on Android.
return Promise.reject(new Error("Notifications module is not available in your app")); | ||
} | ||
const channelId = "mendix-local-notifications"; | ||
await createNotificationChannelIfNeeded(channelId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, it's applicable only to Android so we need to add a platform check
In this pr, I've updated the following dependencies.
react-native-push-notification ( migrated to notifee )
@react-native-community/push-notification-ios ( mgirated to notifee )
react-native-device-info
react-native-sound ( migrated to track-player )
react-native-linear-gradient