- 1 year ago
Toast Notification launches app in background instead of foreground
Comment
1 / 1
To make sure that the app is launched in the foreground when a Toast Notification is clicked, you can add the "activationType" attribute to the toast's XML payload and set its value to "foreground". Here's an example:
php<toast activationType="foreground">
<!-- Toast content here -->
</toast>
By setting "activationType" to "foreground", the app will be brought to the foreground when the Toast Notification is clicked.