ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2024 feature!
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Sends a notification to Android devices that are subscribed to a topic. You must have subscribed the devices to the topic using NotifPushSubscribe.
Remarks:
  • This subscription method lets you send notifications to multiple devices without getting or checking their registration token.
  • This mechanism only works on Firebase, with the Firebase Cloud Messaging API (V1).
Example
myNotification is Notification
myNotification.Message = " New notification "
myJSON_FireBase is Buffer = fLoadBuffer("firebase_app.json")
SendResult is boolean = NotifPushSendSubscriber(myNotification, "myTopic", myJSON_FireBase)

IF NOT SendResult THEN
Trace(ErrorInfo())
END
Syntax
<Result> = NotifPushSendSubscriber(<Notification> , <Topic> , <Authentication>)
<Result>: Boolean
  • True if the sending was successful,
  • False otherwise. ErrorInfo is used to identify the error returned by the notification service.
<Notification>: Notification variable
Name of the Notification variable corresponding to the notification to send.
<Topic>: Character string
Topic of the notification. Only the applications that are subscribed to the topic will receive the notification.
Caution: the topic must not contain spaces.
<Authentication>: Buffer
Content of the JSON file corresponding to the private key of the account (Firebase platform, with the Firebase Cloud Messaging API (V1)).
A specific configuration is required to get this JSON file. For more details, see Configuration required for Push notifications in Android.
Component: wd290device.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2024

Send a report | Local help