Android Question Google oAuth2 B4xPages CallFromResume

mmieher

Active Member
Licensed User
Longtime User
How does one do this from a B4XPages project without cluttering up the Main module (which we are not supposed to do):
B4X:
    oauth2.CallFromResume(Activity.GetStartingIntent)

oAuth2 is initialized/used in a B4XPage.

Marc
 

mmieher

Active Member
Licensed User
Longtime User
There are some edge cases where adding code to the Main module is actually the simplest solution.
In this case you can call it from B4XPage_Foreground with this untested code:
B4X:
Private Sub B4XPage_Foreground
 oauth2.CallFromResume(B4XPages.GetNativeParent(Me).GetStartingIntent)
End Sub
Thank you, Erel(s) ... I cannot seem to get B4XPage_Foreground to fire? I also tried B4XPage_Appear -- also never fires.

I am trying to get ahold of things after a Google oAuth2.Initialize session.
 
Upvote 0
Top