OneSignal-Unity-SDK icon indicating copy to clipboard operation
OneSignal-Unity-SDK copied to clipboard

[question]: iOS: How to open web-browser without opening the app from push notification?

Open StrozhDima opened this issue 1 year ago • 1 comments

How can we help?

How to open web-browser (for exampl Safari) when clicking on push notification without opening the app at all if I send push notification with 'Launch URL' param as for example https://www.google.com? It works on Android but on iOS at the beginning opening the application and then (from splash screen) opening web-browser Safari. Thanks a lot!

Version 3.0.11

what I tried to do:

  1. added in Info.plist "OneSignal_suppress_launch_urls" with false value (plist.SetBoolean("OneSignal_suppress_launch_urls", false);)
  2. called method OneSignal.Default.SetLaunchURLsInApp(false); before OneSignal.Default.Initialize("myid");

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

StrozhDima avatar Jan 23 '24 10:01 StrozhDima

@StrozhDima I don't know if that is possible to do on iOS unfortunately

emawby avatar Jan 30 '24 21:01 emawby