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
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