Android Question Firebase Messaging - deleteInstanceId

Alexander Stolte

Expert
Licensed User
Longtime User
Hey,

i found this code in the forum. The problem is that you should use the Threading Lib., isn't there a way to do this through the Wait For function?
B4X:
    Dim jo As JavaObject
    Try
        jo = jo.InitializeStatic("com.google.firebase.iid.FirebaseInstanceId").RunMethod("getInstance", Null)
        jo.RunMethod("deleteInstanceId", Null)
    Catch
        Log(LastException)
    End Try
or is there a better way to do this?
 
Top