Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sample/src/libs/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ class NotificationOpenHandler {
const unsubscribes: Unsubscribe[] = [];

if (Platform.OS === 'ios') {
// Note: In the latest version of Notifee, there's an issue that may prevent the localNotification event handler from working correctly.
// If you're having trouble, please use the following code with Notifee instead:
// https://github.com/invertase/notifee/issues/984
//
// unsubscribes.push(
// Notifee.onForegroundEvent(async ({ type, detail }) => {
// if (type === EventType.PRESS && detail.notification) {
// const payload = parseSendbirdNotification(detail.notification.data as any);
// this.handlers.onForeground(payload);
// }
// }),
// );
PushNotificationIOS.addEventListener('localNotification', async (notification) => {
const data = notification.getData();
if (data.userInteraction === 1 && isSendbirdNotification(data)) {
Expand Down