Hello There
I am trying to display a notification message to the end user when a push notification message is received by the app
1. if the app is running in Foreground no issues
2. If the app is running in background no issues
Whoever if the user terminates the app using the task manager, upon receiving a notification message, I always get the following message displayed "Unfortunately "App Name" has Stopped" .
The code sets some global variables and executes the code below to display a notification for the user
The icon and the message are displayed as expected.
Is there a way to suppress this message?
Thanks for your help
I am trying to display a notification message to the end user when a push notification message is received by the app
1. if the app is running in Foreground no issues
2. If the app is running in background no issues
Whoever if the user terminates the app using the task manager, upon receiving a notification message, I always get the following message displayed "Unfortunately "App Name" has Stopped" .
The code sets some global variables and executes the code below to display a notification for the user
B4X:
NotificationInfo.Initialize
NotificationInfo.Icon = "icon"
NotificationInfo.Light = True
NotificationInfo.Sound = True
NotificationInfo.Vibrate = True
NotificationInfo.SetInfo("iAppName", strMessage, Main)
NotificationInfo.Notify(1)
The icon and the message are displayed as expected.
Is there a way to suppress this message?
Thanks for your help