alexziskind1 / nativescript-oauth2

Other
86 stars 93 forks source link

After Google Signin my application doesn't close the frame of "google authenticator" and keep runing #7

Closed kharratahmed closed 5 years ago

kharratahmed commented 5 years ago

Make sure to check the demo app(s) for sample usage

Done

Make sure to check the existing issues in this repository

Done

Which platform(s) does your issue occur on?

-Android

Please, tell us how to recreate the issue in as much detail as possible.

when i chose fb login all work fine but with google a new frame show then after login this frame dosen't close and keep runing my application there (so 2 instance of application) 1-click google signin button 2-finish google sign in process 3-frame dosen't close and run one more instance of my application

Is there any code involved?

ChrisJohns-me commented 5 years ago

I could be wrong, but is it possible that the documentation is incorrectly directing you to add android:launchMode="singleTask" to the <application> tag, when it should be on the <activity> tag?

https://developer.android.com/guide/topics/manifest/activity-element

In your case,

<application ... android:launchMode="singleTask">
        <activity ...>

would become:

<application ...>
        <activity ... android:launchMode="singleTask">

this is what fixed it for me.

alexziskind1 commented 5 years ago

Thanks for the suggestion @ChrisJohns-me. Did this workaround work for you @kharratahmed ?