react-native-simple-auth icon indicating copy to clipboard operation
react-native-simple-auth copied to clipboard

In android , after google authentication,App restarts

Open AbdulMalikIsmail opened this issue 7 years ago • 2 comments

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

AbdulMalikIsmail avatar Sep 12 '18 10:09 AbdulMalikIsmail

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

restuarifp avatar Dec 29 '18 17:12 restuarifp

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

marcesdan avatar Jun 02 '19 23:06 marcesdan