Auth0 Home Blog Docs

Empty login screen Android sample login app


#1

Empty screen In the browser which contains https://xxxx.eu.auth0.com/login?state=blabla. What am I doing wrong? No logs produced.


#2

Are you able to add logging and or view the logcat for your app to see what might be happening?


#4

Good tip. Yes I have been able to see logcat. However now the apps (00-login AND 03-Session-Handling) crash even at startup, not even logcat. Tried several devices (Genymotion, samsung Note 8,

strings.xml is adapted to my auth0 settings etc.

It gives on the android screen:
“Session Management is stopped” or
“Hosted Login Page is stopped”

Debugging
the source, at that moment, tries to execute statement:

auth0 = new Auth0(this);

Nothing I have changed, AFAIK, strange…

I noticed that if I downgrade
compil ‘com.auth0.android:auth0:1.+’
to
compile ‘com.auth0.android:auth0:1.13.0’ or lower
It gives the behavior I got in the OP, logcat with library 1.13.0:

10-04 12:15:48.982 17611-17611/? E/Zygote: isWhitelistProcess - Process is Whitelisted

10-04 12:15:48.983 17611-17611/? E/libpersona: scanKnoxPersonas

Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory

10-04 12:15:48.986 17611-17611/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-N950F_8.0.0_0009, [-1 -1 -1 -1 0 1]

10-04 12:15:48.987 17611-17611/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.auth0.samples

10-04 12:15:48.991 17611-17611/? I/zygote64: Late-enabling -Xcheck:jni

10-04 12:15:49.078 17611-17611/? D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service

10-04 12:15:49.079 17611-17611/? D/ActivityThread: Added TimaKeyStore provider

10-04 12:15:49.250 17611-17611/com.auth0.samples I/zygote64: no shared libraies, dex_files: 1

10-04 12:15:49.288 17611-17650/com.auth0.samples I/vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib64/egl/libGLES_mali.so from the current namespace instead.

10-04 12:15:49.339 17611-17650/com.auth0.samples D/libEGL: loaded /vendor/lib64/egl/libGLES_mali.so

10-04 12:15:49.342 17611-17619/com.auth0.samples I/zygote64: Do partial code cache collection, code=29KB, data=21KB

After code cache collection, code=29KB, data=21KB

Increasing code cache capacity to 128KB

10-04 12:15:49.484 17611-17667/com.auth0.samples D/OpenGLRenderer: HWUI GL Pipeline

10-04 12:15:49.494 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: setView = DecorView@a6406e5[MainActivity] TM=true MM=false

10-04 12:15:49.511 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: dispatchAttachedToWindow

10-04 12:15:49.548 17611-17611/com.auth0.samples V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0

10-04 12:15:49.550 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][720,1480] result=0x7 surface={valid=true 487375925248} changed=true

10-04 12:15:49.558 17611-17667/com.auth0.samples I/OpenGLRenderer: Initialized EGL, version 1.4

10-04 12:15:49.559 17611-17667/com.auth0.samples D/OpenGLRenderer: Swap behavior 2

10-04 12:15:49.570 17611-17667/com.auth0.samples D/libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : com.auth0.samples

10-04 12:15:49.572 17611-17667/com.auth0.samples D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [720x1480]-format:1

10-04 12:15:49.572 17611-17667/com.auth0.samples D/OpenGLRenderer: eglCreateWindowSurface = 0x716f030b40

10-04 12:15:49.724 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1480) ci=Rect(0, 42 - 0, 0) vi=Rect(0, 42 - 0, 0) or=1

MSG_WINDOW_FOCUS_CHANGED 1

10-04 12:15:49.737 17611-17611/com.auth0.samples V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@8b3fa36 nm : com.auth0.samples ic=null

10-04 12:15:49.737 17611-17611/com.auth0.samples I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus

10-04 12:15:49.790 17611-17611/com.auth0.samples V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@6a22d37 nm : com.auth0.samples ic=null

10-04 12:16:12.733 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: ViewPostIme pointer 0

10-04 12:16:12.804 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: ViewPostIme pointer 1

10-04 12:16:12.875 17611-17611/com.auth0.samples V/CallbackHelper: The Callback URI is: demo://zoof-it.eu.auth0.com/android/com.auth0.samples/callback

10-04 12:16:12.923 17611-17611/com.auth0.samples V/OAuthManager: Using PKCE authentication flow

10-04 12:16:13.038 17611-17611/com.auth0.samples V/CustomTabsController: Trying to bind the service

10-04 12:16:13.040 17611-17611/com.auth0.samples V/CustomTabsController: Bind request result: true

10-04 12:16:13.051 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: setView = DecorView@5b8acca[AuthenticationActivity] TM=true MM=false

10-04 12:16:13.052 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0

10-04 12:16:13.054 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: dispatchAttachedToWindow

10-04 12:16:13.075 17611-17611/com.auth0.samples V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0

10-04 12:16:13.076 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][720,1480] result=0x7 surface={valid=true 487069835264} changed=true

10-04 12:16:13.081 17611-17619/com.auth0.samples I/zygote64: Do partial code cache collection, code=60KB, data=46KB

After code cache collection, code=60KB, data=46KB

Increasing code cache capacity to 256KB

10-04 12:16:13.083 17611-17667/com.auth0.samples D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [720x1480]-format:1

10-04 12:16:13.083 17611-17667/com.auth0.samples D/OpenGLRenderer: eglCreateWindowSurface = 0x716f032a30

10-04 12:16:13.089 17611-17611/com.auth0.samples D/CustomTabsController: CustomTabs Service connected

10-04 12:16:13.098 17611-18650/com.auth0.samples D/CustomTabsController: Launching URI. Custom Tabs available: true

10-04 12:16:13.124 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1480) ci=Rect(0, 42 - 0, 0) vi=Rect(0, 42 - 0, 0) or=1

10-04 12:16:13.125 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: MSG_WINDOW_FOCUS_CHANGED 1

10-04 12:16:13.133 17611-17611/com.auth0.samples V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@e1ccb96 nm : com.auth0.samples ic=null

10-04 12:16:13.133 17611-17611/com.auth0.samples I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus

10-04 12:16:13.178 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: MSG_WINDOW_FOCUS_CHANGED 0

10-04 12:16:13.533 17611-17667/com.auth0.samples D/OpenGLRenderer: eglDestroySurface = 0x716f032a30

10-04 12:16:13.551 17611-17611/com.auth0.samples D/ViewRootImpl@eeb4035[AuthenticationActivity]: Relayout returned: old=[0,0][720,1480] new=[0,0][720,1480] result=0x5 surface={valid=false 0} changed=true

10-04 12:16:13.566 17611-17667/com.auth0.samples D/OpenGLRenderer: eglDestroySurface = 0x716f030b40

endAllActiveAnimators on 0x716791fc00 (RippleDrawable) with handle 0x715c7a8e80

10-04 12:16:13.590 17611-17611/com.auth0.samples D/ViewRootImpl@9bf95dc[MainActivity]: Relayout returned: old=[0,0][720,1480] new=[0,0][720,1480] result=0x5 surface={valid=false 0} changed=true

#5

which sample are you referring to? are you following the Android quickstart ?


#6

Yes, following it to the letter more than once…

Well almost, I have to admit
I changed:
in build.gradle:
i added
google()
to allprojects

and what made the difference:
I , have to admit, I customized the login page with a logo in js code with a syntax error, like
logo : '‘url’
corrected it to
logo : ‘url’

now it worrks with
compile ‘com.auth0.android:auth0:1.13.0’

however
compile ‘com.auth0.android:auth0:1.+
still keeps crashing’