react-native-simple-auth
react-native-simple-auth copied to clipboard
In android , after google authentication,App restarts
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
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
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"inAndroidManifest.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...