After I wrote to you, deep down in another forum of yours I found the same solution and it worked, but I had as well to move the super.onCreate()
method in the AuthorizedActivity
(that i called MainActivity
) after invoking the val mOktaAuth = OktaAppAuth.getInstance(this)
(Kotlin here!), super weird!
Again in the MainActivity
in your guides for Android you do not explicitly specify that you have to call mOktaAuth.init()
but i noticed that things get unpredictable if you don’t do it.
Oh, and there’s that issue as well
Furthermore right now if I login with username and password the chrome tab do not get closed but I restart the app I am logged in and get correctly redirected to the MainActivity
. I suspect that this happens because I had to hardcode in your hosted widget my other Angular application ID. Look here for more details