📖 View this page in our documentation

When sending a push notification you may optionally specify a specific URL to open within your app. Add a new field in Additional Data named targetUrl and specify the URL.

Specify targetUrl to open a URL within your app when the notification is tapped

Specify targetUrl to open a URL within your app when the notification is tapped

Launch URL ≠ targetUrl

OneSignal has a built-in field named Launch URL which opens URLs in the user's mobile browser. It is not possible to override that behavior hence why we use the targetUrl field to open the app versus the browser.