Open URL in App

When sending a push notification you may optionally specify a specific URL to open within your app. When composing a new push notification within the OneSignal portal (or via REST API) include a field in Additional Data named targetUrl and specify the URL.


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 a popup browser within your app. It is not possible to override that behavior hence why we use the targetUrl field to open the app versus the browser.

Learn more in the OneSignal Documentation