Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

In android , after google authentication,App restarts #108

Open
AbdulMalikIsmail opened this issue Sep 12, 2018 · 2 comments
Open

In android , after google authentication,App restarts #108

AbdulMalikIsmail opened this issue Sep 12, 2018 · 2 comments

Comments

@AbdulMalikIsmail
Copy link

In android , after google authentication rather than opening the same page , it restarts the app and reaches my app's landing page. Due to this i am getting a possibly unhandled promise warning.
I am not getting the expected response

@restuarifp
Copy link

restuarifp commented Dec 29, 2018

I encountered the same problem, even when I changed it to other auth method like Twitter. It turned out that there should be additional config android:launchMode="singleTask" in AndroidManifest.xml

<application
      android:name=".MainApplication"
      android:allowBackup="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:theme="@style/AppTheme">
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:launchMode="singleTask" <--- This guy right here
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize">
...
...
    </application>

Hope it helps

@marcesdan
Copy link

Same problem

I encountered the same problem, even when I changed it to other auth method like Twitter. It turned out that there should be additional config android:launchMode="singleTask" in AndroidManifest.xml

<application
      android:name=".MainApplication"
      android:allowBackup="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:theme="@style/AppTheme">
      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:launchMode="singleTask" <--- This guy right here
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize">
...
...
    </application>

Hope it helps

Same problem, Doesn't work for me...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants