PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → "Silent" Push Notification
"Silent" Push Notification
Débuté par stefan.kern, 09 oct. 2017 11:13 - 3 réponses
Posté le 09 octobre 2017 - 11:13
Hi Forum,

I have one question regarding push notifications:

Is it possible to send a push notification to iOS and Android without showing the notofication in the Status bar?

What I want to do:
I want to send a notification with Forces the application perform some Actions but the user should not see, that something happened.

Best Regards


Stefan.
Posté le 10 octobre 2017 - 23:19
Hi,

You need to leave the Title and message text empty, only use the content etc...

https://doc.pcsoft.fr/en-US/?1000021015

"if a message or a title is specified in the notification, the system displays the notification in the notification bar. If the user clicks the notification, the procedure specified in NotifPushProcedure is called (nothing happens if it is not specified).
If no message and no title is specified in the notification, the notification is not displayed and the procedure is called directly."

See more details in the Help.

I use this for silent Push Notifications to let my application update the data in the background etc...

Have a nice day
Danny
Posté le 11 octobre 2017 - 22:46
Hi Danny,

thanks.

does this also work for iOS?
If I read the help correct, this behavior you mentioned only works for Android.

Stefan.
Posté le 13 octobre 2017 - 09:00
Hi,

I have not implemented this on iOS, so sorry don't know !

Danny