June 2018
Beginner to intermediate
394 pages
9h 2m
English
On application startup, developers can generate a push token using FCM SDK. If we need to target a single device, we need to have a reference to push the token in our backend to associate it with the user Auth details.
Generally, push tokens are accessed using FirebaseInstanceIdService and are unique to devices and applications.
Push tokens may change or update their key in the following scenarios:
The following code snippet obtains the push token:
@Overridepublic void onTokenRefresh() { // Get updated InstanceID token. String refreshedToken ...
Read now
Unlock full access