FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers

Home Page:https://commerce.nearform.com/open-source/react-native-app-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[android] Nothing happens when calling methods such as `prefetchConfiguration` or `authorize`

mjaggard opened this issue · comments

commented

Issue

I can't tell what's going on from LogCat or anything but when I call authorize or prefetchConfiguration nothing happens. I get no rejection or result of the promise.

  const promise = authorize(config);
  console.log('Got promise authorize');
  const promise2 = promise.catch(e => {
    console.error('Promise resulted in error');
    throw e;
  });
  const authState = await promise2;
  console.log('Finished authorize');

prints "Got promise authorize" but no other messages.


Environment

  • Google auth
  • Android
  • 0.74.0 and 0.74.2
  • 7.2.0
  • Not Expo
commented

The full LogCat output from the point when I clicked the login button.

2024-06-14 18:09:54.451 18462-18545 Finsky:background       com.android.vending                  I  [105] php.run(545): Stats for Executor: BlockingExecutor piq@37c3a7f[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0]
2024-06-14 18:09:54.567   531-847   ClipboardService        system_server                        E  Denying clipboard access to com.android.chrome, application is not in focus nor is it a system service for user 0
2024-06-14 18:09:54.575  1634-2081  AiAiTranslate           com.google.android.as                I  C2T - not in a conversation
2024-06-14 18:09:54.577   871-871   ClipboardListener       com.android.systemui                 I  Clipboard overlay suppressed.
2024-06-14 18:09:54.658 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=194.95ms min=1.55ms max=6106.33ms count=32
2024-06-14 18:09:54.661 21888-22126 ReactNativeJS           com.bf.charity.frontend              I  Got promise authorize
2024-06-14 18:09:54.664 21888-22126 ReactNativeJS           com.bf.charity.frontend              I  'i18next::translator: missingKey', 'en', 'translation', 'Charity', 'Charity'
2024-06-14 18:09:54.664   407-443   audioserver             audioserver                          D  FGS Logger Transaction failed
2024-06-14 18:09:54.664   407-443   audioserver             audioserver                          D  -129
2024-06-14 18:09:54.677   407-498   AudioFlinger            audioserver                          D  mixer(0x77ca5fca2930) throttle end: throttle time(38)
2024-06-14 18:09:54.837   407-498   audioserver             audioserver                          D  FGS Logger Transaction failed
2024-06-14 18:09:54.837   407-498   audioserver             audioserver                          D  -129
2024-06-14 18:09:55.183   871-871   StatusBarIconController com.android.systemui                 D  ignoring old pipeline callbacks, because the new mobile icons are enabled
2024-06-14 18:09:55.671 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=10.10ms min=1.72ms max=52.20ms count=57
2024-06-14 18:09:56.689 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=6.63ms min=1.59ms max=44.20ms count=59
2024-06-14 18:09:56.832   178-22130 keystore2               keystore2                            I  system/security/keystore2/src/watchdog.rs:319 - Watchdog thread idle -> terminating. Have a great day.
2024-06-14 18:09:57.704 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=9.76ms min=1.61ms max=39.05ms count=58
2024-06-14 18:09:57.715   363-5343  android.ha...mpl.ranchu android.hardware.audio.service       D  threadLoop: entering standby, frames: 5837120
2024-06-14 18:09:58.704 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=5.73ms min=1.54ms max=18.97ms count=57
2024-06-14 18:09:59.720 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=13.01ms min=1.61ms max=44.21ms count=57
2024-06-14 18:10:00.010  1634-1996  AiAiEcho                com.google.android.as                I  Predicting[0]: 
2024-06-14 18:10:00.010  1634-1996  AiAiEcho                com.google.android.as                I  EchoTargets: 
                                                                                                    Filtered by AiAi flag check: 
2024-06-14 18:10:00.011  1634-1996  AiAiEcho                com.google.android.as                I  Ranked targets strategy: SORT, count: 0, ranking metadata: 
2024-06-14 18:10:00.012  1634-1996  AiAiEcho                com.google.android.as                I  #postPredictionTargets: Sending updates to UISurface lockscreen with targets# 0 (types=[])
2024-06-14 18:10:00.025   871-871   PageIndicator           com.android.systemui                 W  Total number of pages invalid: 0. Assuming 1 page.
2024-06-14 18:10:00.028   871-940   EGL_emulation           com.android.systemui                 D  app_time_stats: avg=1189.92ms min=2.29ms max=11857.72ms count=10
2024-06-14 18:10:00.722 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=13.55ms min=1.57ms max=43.84ms count=57
2024-06-14 18:10:01.737 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=5.91ms min=1.57ms max=44.93ms count=59
2024-06-14 18:10:02.738 21888-21929 EGL_emulation           com.bf.charity.frontend              D  app_time_stats: avg=3.91ms min=1.64ms max=19.95ms count=57
commented

I suspect this is unrelated to react-native-app-auth because it worked when I fully shut down and restarted the virtual device.