OneSignal / OneSignal-Unity-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Unity app with OneSignal. https://onesignal.com
Other
218 stars 60 forks source link

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

Open StrozhDima opened 4 months ago

StrozhDima commented 4 months ago

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 falsevalue (plist.SetBoolean("OneSignal_suppress_launch_urls", false);) 2) called method OneSignal.Default.SetLaunchURLsInApp(false); before OneSignal.Default.Initialize("myid");

Code of Conduct

emawby commented 4 months ago

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