Countly/countly-sdk-react-native

Deeplink not working with iOS implementation

gorkem-cetin opened this issue · 0 comments

As per Sercan:

On block below, it calls this.deepLinkHandler.handler1 with notificationOpen.action but .action value is
“com.apple.UNNotificationDefaultActionIdentifier”, deep link url is in notificationOpen.notification._data.c.l

this.notificationOpenedListener = firebase.notifications().onNotificationOpened((notificationOpen: NotificationOpen) => {
const action = notificationOpen.action;
if (this.deepLinkHandler.handler1){
this.deepLinkHandler.handler1(action);
}
const notification: Notification = notificationOpen.notification;

console.log(“onNotificationOpened”, notification);
console.log(notification._notificationId);
this.openPush(notification._notificationId);

});