Class AndroidPushNotificationsService
java.lang.Object
com.gluonhq.attach.pushnotifications.impl.AndroidPushNotificationsService
- All Implemented Interfaces:
PushNotificationsService
iOS implementation of PushNotificationsService.
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyStringProperty
The unique registration token that can be passed to the server, so the app can receive push notifications -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register()
Register the app for receiving push notifications.void
Deprecated.javafx.beans.property.ReadOnlyStringProperty
The unique registration token that can be passed to the server, so the app can receive push notifications
-
Property Details
-
token
public javafx.beans.property.ReadOnlyStringProperty tokenProperty- Specified by:
tokenProperty
in interfacePushNotificationsService
- Returns:
- a ReadOnlyStringProperty with a unique token
-
-
Constructor Details
-
AndroidPushNotificationsService
public AndroidPushNotificationsService()
-
-
Method Details
-
tokenProperty
public javafx.beans.property.ReadOnlyStringProperty tokenProperty()Description copied from interface:PushNotificationsService
The unique registration token that can be passed to the server, so the app can receive push notifications- Specified by:
tokenProperty
in interfacePushNotificationsService
- Returns:
- a ReadOnlyStringProperty with a unique token
-
register
Deprecated.Description copied from interface:PushNotificationsService
Register the app for receiving push notifications. On iOS this will trigger a confirmation dialog that must be accepted by the user. For Android, you need to pass in the authorizedEntity value that matches the Sender ID of your Google Cloud Messaging or Firebase Cloud Messaging application.- Specified by:
register
in interfacePushNotificationsService
- Parameters:
authorizedEntity
- a string that matches the Sender ID of a GCM or FCM application
-
register
public void register()Description copied from interface:PushNotificationsService
Register the app for receiving push notifications. On iOS this will trigger a confirmation dialog that must be accepted by the user.- Specified by:
register
in interfacePushNotificationsService
-