|
|
|
|
NotifPushSendSubscriber (Function) In french: NotifPushEnvoieAbonné 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).
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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|