Ola
My app is greatly dependent on waiting for processes to start and finish, like for example, waiting for a token before I am able to send a message, waiting for a subscription to take place until I can move to the next screen. I intend to use a loading progress screen until the process is complete,
Thing is, after start, the firebase token is not available immediately, and with
the subscription is actually sent to a que and will be available later.
I have seen some code here to start an service and wait for it to complete, https://www.b4x.com/android/forum/t...a-service-or-activity-and-wait.79856/#content
and am trying to implement it. Now..
Q1. How do I wait for a firebase token to be available?
Q2. How do I wait for a subscription to complete?
I have thought of using httputils and a post request however before I do that (as described on this post: https://www.b4x.com/android/forum/t...ubscribe-and-unsubscribe-topic.88828/#content), however
Is it possible to achieve this without having to write extra code?
Thanks...
My app is greatly dependent on waiting for processes to start and finish, like for example, waiting for a token before I am able to send a message, waiting for a subscription to take place until I can move to the next screen. I intend to use a loading progress screen until the process is complete,
Thing is, after start, the firebase token is not available immediately, and with
B4X:
'CallSubDelayed2(FirebaseMessaging, "SubscribeToTopic", "devicex")
the subscription is actually sent to a que and will be available later.
I have seen some code here to start an service and wait for it to complete, https://www.b4x.com/android/forum/t...a-service-or-activity-and-wait.79856/#content
and am trying to implement it. Now..
Q1. How do I wait for a firebase token to be available?
Q2. How do I wait for a subscription to complete?
I have thought of using httputils and a post request however before I do that (as described on this post: https://www.b4x.com/android/forum/t...ubscribe-and-unsubscribe-topic.88828/#content), however
Is it possible to achieve this without having to write extra code?
Thanks...