Closed sregg closed 1 year ago
Found the issue. Very strange. I removed Notifee and it's all working again. I'm using it only to dismiss current notifications so I'll remove it for now that will find another lib that allows me to do so later. You guys should add that in your doc a Notifee is a common lib these days.
I managed to keep Notifee and make iOS deeplinks work too:
const notifeeEventCallback = async ({ type, detail }: Event) => {
if (type === EventType.PRESS) {
// open deeplink if any (data.link from Firebase/BE or data.ab_uri from Braze)
const link =
detail.notification?.data?.link || detail.notification?.data?.ab_uri;
if (link && typeof link === 'string') {
handleNotificationDeepLink(link);
}
}
};
notifee.onBackgroundEvent(notifeeEventCallback);
notifee.onForegroundEvent(notifeeEventCallback);
Which Platforms?
iOS
Which React Native Version?
0.71.8
Which @braze/react-native-sdk SDK version?
6.0.1
Repro Rate
100%
Steps To Reproduce
Example:
Expected Behavior
the screen associated with the deeplink is opened
Actual Incorrect Behavior
the home screen of the app is opened
Verbose Logs
Additional Information
It's working fine when the iOS app is fully closed. Android is working fine wether is app is closed or opened.
Here's our
AppDelegate.mm
and part of our
RootNavigator
None of the
SIMONHERE
logs in objc or theconsole.log
s in JS are being triggered. There are when opening the notification from a fully closed state.