You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
App calls startActivityForResult with intent from FoursquareOAuth.getConnectIntent
Foursquare app comes to foreground, then close immediately.
onActivityResult called in the app side with the error below, fails to login.
Note that, if Foursquare app is uninstalled, webview comes and I was able to login by the app. Also, I was able to login with Foursquare app installed on Android 8.0 Xperia X Performance.
Possibly this PR aims to fix the same issue of mine, but preferably the issue should be fixed by the Foursquare app side so that user can skip login hassle, in my opinion.
Stacktrace sample:
com.foursquare.android.nativeoauth.FoursquareInternalErrorException: net::ERR_CLEARTEXT_NOT_PERMITTED
at com.foursquare.android.nativeoauth.FoursquareOAuth.getAuthCodeFromResult(FoursquareOAuth.java:127)
at <my app package name>.onActivityResult(SettingsActivity.java:426)
at android.app.Activity.dispatchActivityResult(Activity.java:8162)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
The text was updated successfully, but these errors were encountered:
Environment:
Library version:
com.foursquare:foursquare-android-oauth:1.1.0
Foursquare app version: 11.17.1
Android 10 Pixel 4XL
Prerequisites
Step by step
startActivityForResult
with intent fromFoursquareOAuth.getConnectIntent
onActivityResult
called in the app side with the error below, fails to login.Note that, if Foursquare app is uninstalled, webview comes and I was able to login by the app. Also, I was able to login with Foursquare app installed on Android 8.0 Xperia X Performance.
So probably the issue exists on the Foursquare app side with newer version of Android OS, I bit suspect this is related to a clear text traffic feature introduced since Android 9.
https://developer.android.com/training/articles/security-config.html#CleartextTrafficPermitted
Possibly this PR aims to fix the same issue of mine, but preferably the issue should be fixed by the Foursquare app side so that user can skip login hassle, in my opinion.
Stacktrace sample:
The text was updated successfully, but these errors were encountered: