Contents
Display Legacy Contents

 Print
    Set Service Notification    
Show a notification when the service is running.
Only for Android. When active, the service becomes a foreground service and gains higher priority!

Parameters

Service<numeric>

Select a number for a service. Can be Dynamic or 1-10

   
Notification State<numeric>

1- Active 
(To make this service a foreground service)
2- Inactive 
(To make this service a normal service)
   
Play Sound<numeric>

1- Yes
2- No
   
Title<string>

Title of the notification associated with the service.
   
Body<string>

Body of the notification associated with the service.
   

     
  • When a service in Android is set as a Foreground service, it will show in the system notification are permanently a notification with the Title and Body specified in this action parameters.
  • For example if you are downloading synchronizing data for the user, you can do it in a Foreground Service, so this will continue to run, even if the user exits your App or switches to another App, and you can provide feedback to the user of the synchronization status in the notification area.

See also
Samples

 
 
Updated : 10/10/2019 6:46 PM