On IOS - Notification opens browser v/s app.
Using one-signal for notification. branch URL is set as additional data on the notification. Grabbing this back in OneSignalHandleNotificationBlock and direct your webview to it.
Saw in the dev notes for Branch that one way to make this work is -
You can use Branch links with push notifications. When creating a push notification, you should specify the Branch link in the userInfo dictionary. It should be an NSString, and the key in userInfo should be Branch. Example: @{ @"branch" : @"https://[branchsubdomain]/ALMc/e03OVEJLUq" }
And then setting up didReceiveRemoteNotification - - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [[Branch getInstance] handlePushNotification:userInfo];
// ... handle push notifications that do not include Branch links
}
I have not been able to make this work.
Anyone else faced something similar before - handing branch URL in one-signal notifications?
For folks with experience in OneSignal - How to send this key:value pair in Apple Push Notification Payload as branch:"branch_link"?
For folks with experience in Branch - How is branch expecting it in the Apple Push Notification Payload.