Alexander Stolte Expert Licensed User Longtime User Sep 21, 2020 #1 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? FirebaseNotifications - unsubscribes all topics Hello, How can I do to unsubscribe all topics? It seems to me to use the deleteInstanceId method, but I do not know how to do it. Can you help me? Regards. www.b4x.com B4X: Copy 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?
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? FirebaseNotifications - unsubscribes all topics Hello, How can I do to unsubscribe all topics? It seems to me to use the deleteInstanceId method, but I do not know how to do it. Can you help me? Regards. www.b4x.com B4X: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2020 #2 No. Wait For doesn't cause the code to run in a different thread. The usage of Threading library in this case is fine. Upvote 0
No. Wait For doesn't cause the code to run in a different thread. The usage of Threading library in this case is fine.