socialappslab / denguechat-ionic

Other
1 stars 0 forks source link

Older android version signup and signin issues #80

Closed cdparra closed 6 years ago

cdparra commented 7 years ago

Steps to reproduce the error:

  1. Tap on "Create an Account"
  2. Fill the user signup form with an email and a password
  3. After signing up, a message with the word 'true' appeared in the top portion of the screen (see Image 1).
  4. Tap on "Already have an account"
  5. Fill the sign in form with email and password (see Image 2 for response)

Image 1: Signup response Image 1

Image 2: Signin response image

Devices that reported this issue:

Logcat output on Huawei Ascend:

I/X509Util( 5147): Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
I/chromium( 5147): [INFO:CONSOLE(84)] "
I/chromium( 5147): 
I/chromium( 5147): 
I/chromium( 5147): ---------------", source: file:///android_asset/www/js/app.js (84)
I/chromium( 5147): [INFO:CONSOLE(85)] "clovi.env.error: {"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"url":"https://www.denguechat.com/api/v0/sessions","data":{"username":"ygnacio.parra@gmail.com","password":"auroauro"},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"}},"statusText":""}", source: file:///android_asset/www/js/app.js (85)
I/chromium( 5147): [INFO:CONSOLE(86)] "---------------
I/chromium( 5147): 
I/chromium( 5147): 
I/chromium( 5147): ", source: file:///android_asset/www/js/app.js (86)
D/dalvikvm( 5147): GC_CONCURRENT freed 7139K, 65% free 4304K/12164K, paused 2ms+2ms, total 34ms
D/dalvikvm( 5147): WAIT_FOR_CONCURRENT_GC blocked 32ms
V/AudioManager( 5147): playSoundEffect   effectType: 0
V/AudioManager( 5147): querySoundEffectsEnabled...
V/AudioManager( 5147): isWiredHeadsetOn...
V/AudioManager( 5147): isBluetoothA2dpOn...
D/CordovaActivity( 5147): Paused the activity.
D/CordovaActivity( 5147): Stopped the activity.
D/cr_Ime  ( 5147): [ImeAdapter.java:140] onCreateInputConnection returns null.
D/dalvikvm( 5147): GC_EXPLICIT freed 262K, 56% free 5358K/12164K, paused 2ms+4ms, total 32ms
D/CordovaActivity( 5147): Started the activity.
D/CordovaActivity( 5147): Resumed the activity.
D/cr_Ime  ( 5147): [ImeAdapter.java:140] onCreateInputConnection returns null.
E/chromium( 5147): [ERROR:xwalk_autofill_client.cc(116)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
D/cr_Ime  ( 5147): [ImeAdapter.java:253] updateKeyboardVisibility: type [0->0], flags [0], show [true], 
D/cr_Ime  ( 5147): [ImeAdapter.java:326] hideKeyboard
D/cr_Ime  ( 5147): [InputMethodManagerWrapper.java:56] isActive: true
D/cr_Ime  ( 5147): [InputMethodManagerWrapper.java:65] hideSoftInputFromWindow
I/chromium( 5147): [INFO:CONSOLE(84)] "
I/chromium( 5147): 
I/chromium( 5147): 
I/chromium( 5147): ---------------", source: file:///android_asset/www/js/app.js (84)
I/chromium( 5147): [INFO:CONSOLE(85)] "clovi.env.error: {"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"url":"https://www.denguechat.com/api/v0/sessions","data":{"username":"ygnacio.parra@gmail.com","password":"auroauro"},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"}},"statusText":""}", source: file:///android_asset/www/js/app.js (85)
I/chromium( 5147): [INFO:CONSOLE(86)] "---------------
I/chromium( 5147): 
I/chromium( 5147): 
I/chromium( 5147): ", source: file:///android_asset/www/js/app.js (86)
D/dalvikvm( 5147): GC_FOR_ALLOC freed 1459K, 67% free 4119K/12164K, paused 16ms, total 16ms

Potential answer: https://github.com/oauth-io/oauth-android/issues/2

dman7 commented 7 years ago

@cdparra good catch. Looks like this has something to do with cert path. I commented on this about a week ago here: https://github.com/socialappslab/denguechat-ionic/issues/79. Specifically, take a look here:

https://stackoverflow.com/questions/43919218/crosswalk-error-request-was-denied-by-security

This is already in production, yet it still fails. I would focus on finding the right Java method to change in "platforms/android/src/org/". What you linked to (https://github.com/oauth-io/oauth-android/issues/2) may be the right answer...

cdparra commented 7 years ago

That sounds good @dman7. Given the urgency, James also decided to involve AppCivist devs (he was going to call you to let you know). So @jorgeramirez will be taking a look also and might update this thread later.

dman7 commented 7 years ago

@cdparra sounds good. @jorgeramirez I'm available on AppCivist Slack if you have any specific questions around the codebase to debug.

jorgeramirez commented 7 years ago

Great, I will ping you on slack if I have any question about the project @dman7 !