Open URLs inside the app
The “Launch URL” field provided by OneSignal won’t work inside the app, you will need to use “Additional Data” in order to display a specific URL in the app when the notification is clicked.
When you create a push notification, either via the OneSignal Dashboard or the REST API, you can specify a URL to open when the notification is clicked.
To do so, you must include a field called “url” in the “Additional Data” area, with the URL that must be opened as the value.
Below you can see what that should look like:
.png?table=block&id=2fc4c7c4-7a8a-4f4b-8828-2782075c7184&cache=v2)
OneSignal REST API
"included_segments": [ "Subscribed Users" ], "data": [ 'url' => 'https://website.com ], "contents": { "en": "Notification content", }
Did this answer your question?
😞
😐
🤩