On some Android devices, the application crashes after passing the authentication procedure
See original GitHub issueIssue
On some Android devices, the application crashes after passing the authentication procedure. Works correctly on most devices.
Config:
const { AUTH_CLIENT_ID, AUTH_CLIENT_SECRET, AUTH_REALM, AUTH_URL, AUTH_APP_SCHEME } = Config;
export function getAuthConfig(): AuthConfiguration {
return {
issuer: `${AUTH_URL}/realms/${AUTH_REALM}`,
clientId: AUTH_CLIENT_ID,
clientSecret: AUTH_CLIENT_SECRET || undefined,
redirectUrl: `${AUTH_APP_SCHEME}:/callback`,
scopes: ['openid'],
};
}
Error:
Caught exception
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
at com.rnappauth.RNAppAuthModule.onActivityResult(RNAppAuthModule.java:398)
at com.facebook.react.bridge.ReactContext.onActivityResult(ReactContext.java:308)
at com.facebook.react.ReactInstanceManager.onActivityResult(ReactInstanceManager.java:758)
at com.facebook.react.ReactDelegate.onActivityResult(ReactDelegate.java:90)
at com.facebook.react.ReactActivityDelegate.onActivityResult(ReactActivityDelegate.java:112)
at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:68)
at android.app.Activity.dispatchActivityResult(Activity.java:7454)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4375)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4424)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1818)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Environment
- Your Identity Provider:
Keycloak
- Platform that you’re experiencing the issue on:
Android
- Are you using Expo?:
no
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:20 (2 by maintainers)
Top Results From Across the Web
Why do my apps keep crashing on Android, How to fix it
To restart the device, press and hold the power button. Now tap on restart. Some phones may not have the restart option, in...
Read more >What to Do If Apps Keep Crashing on an Android Device
If an app freezes or crashes repeatedly when you try to use it, the first thing you should try is to force it...
Read more >Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >app crash while using firebase phone Auth in android
try Uninstallall from gradle and the installing it again. – vishal N. Jan 22, 2021 at 5:59. | Show 2 more comments ...
Read more >How to Fix Crashing Apps on an iPhone or Android?
Restart the Phone ... If the above hasn't worked for you, or you've tried it and the app keeps crashing, maybe the app...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Has anybody found a work around for this yet?
Still facing this issue on latest version of
react-native-app-auth