My B4XPages app receives a starting Intent from another app, with some Extras.
I get the Starting Intent in the Appear Sub of B4XMainPage as follows
This works the first time the app is started.
After the app is running, if I open another B4XPage and later I ClosePage it, or the user sends the app in background, the B4XMainMainPage Appear is called again, but the Starting Intent is still the one who started the app before.
Is there a way to "consume" the Starting Intent or should I keep track of which Intent has already been processed and skip it the second time?
I get the Starting Intent in the Appear Sub of B4XMainPage as follows
B4X:
Sub B4XPage_Appear
Dim In As Intent = B4XPages.GetNativeParent(Me).GetStartingIntent
This works the first time the app is started.
After the app is running, if I open another B4XPage and later I ClosePage it, or the user sends the app in background, the B4XMainMainPage Appear is called again, but the Starting Intent is still the one who started the app before.
Is there a way to "consume" the Starting Intent or should I keep track of which Intent has already been processed and skip it the second time?