Class Veery
firebaseMessageHandler(RemoteMessage remoteMessage)
Transfers an FCM notification to Veery.
The FCM notifications that are supposed to be handled by Veery will have specific signature, so only messages for Veery will be handled by Veery.
This should be called from the handler FirebaseMessagingService.onMessageReceived(RemoteMessage remoteMessage)
Parameters
Param name | Type | Usage |
---|---|---|
remoteMessage | RemoteMessage | Message received in the FirebaseMessagingService.onMessageReceived callback function |
Returns
boolean
Value | Meaning |
---|---|
true | the message were handled by veery (Veery signature valid) |
false | the message were not handled by veery (Veery signature not valid). In that case the message comes from another framework or from your own FCM servers |
Usage / Example
// TODO : Import the Veery Library import com.roofstreet.android.veery.Veery; public class MyFirebaseMessagingService extends FirebaseMessagingService { String TAG = "MyFirebaseMessagingService"; // TODO : Declare a persistant Veery Object Veery veery = new Veery(this); @Override public void onMessageReceived(RemoteMessage remoteMessage) { // TODO : if veery can handle the notification, just return if (veery.firebaseMessageHandler(remoteMessage)) return; // Veery did not recognize the notification so it comes from another framework // Your own Handle code here } // There is more code generated by android studio here (no change) }
User interaction
none