I am setting the launchUrl to get redirected to the proper screen when clicking on the push notification.
It is working perfectly, however, only on iOS, it is also happening when the app is already on the foreground without clicking any notification.
// Add the header at the top of the file:
#import <React/RCTLinkingManager.h>
// Add this above `@end`:
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}
Not sure if it is due to the deep linking configuration or to the react-native-onesignal package.
Hi!
I am setting the launchUrl to get redirected to the proper screen when clicking on the push notification. It is working perfectly, however, only on iOS, it is also happening when the app is already on the foreground without clicking any notification.
FYI, I'm using below packages:
and I configured iOS deep linking based on: https://reactnavigation.org/docs/deep-linking#ios
Not sure if it is due to the deep linking configuration or to the react-native-onesignal package.
Thank you, Marko