Package totalcross.firebase.iid
Class FirebaseInstanceId
- java.lang.Object
-
- totalcross.firebase.iid.FirebaseInstanceId
-
public class FirebaseInstanceId extends java.lang.ObjectUse it like https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId In the enabled device, it will search for the default FirebaseApp name that TotalCross uses and return it's FirebaseInstanceId instance token. If in a device that is not enabled Firebase (be it lack of configuration file or not yet binded with TotalCross), it will return null. If you are going to deliver a unicast push message, you must retrieve the must recent token and use it. Currently suported platforms:- Android
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirebaseInstanceIdgetInstance()java.lang.StringgetToken()
-
-
-
Method Detail
-
getInstance
public static FirebaseInstanceId getInstance()
-
getToken
public java.lang.String getToken()
-
-