Hi Everyone,
Newbie question here, I've set up an app, when booting i open main activity, then if firsttime i use Auth.Signinwithgoogle.. However when the popup comes up if i just click off it it goes away and you can still use the app...
The aim is to have the app so you have to log in before you can use it. currently if i click of the popup the app dies, is there a way to get it to just return to the login?
Newbie question here, I've set up an app, when booting i open main activity, then if firsttime i use Auth.Signinwithgoogle.. However when the popup comes up if i just click off it it goes away and you can still use the app...
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
If FirstTime Then
Auth.Initialize("auth")
Auth.SignInWithGoogle
If Auth.CurrentUser.IsInitialized Then Auth_SignedIn(Auth.CurrentUser)
' continue to the app start
end if
End Sub
The aim is to have the app so you have to log in before you can use it. currently if i click of the popup the app dies, is there a way to get it to just return to the login?