question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app crashes when clicking the google play services update notification

See original GitHub issue

Bug description

  • The app crashes when clicking the google play services update notification

Info

  • Android 9.0
  • SwissCovid App Version 1.0.3-pilot (Installed by Google Play Store)

Crash stack

 FATAL EXCEPTION: main
 Process: ch.admin.bag.dp3t, PID: 8692
 java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.admin.bag.dp3t/com.google.android.gms.common.api.GoogleApiActivity}: android.content.ActivityNotFoundException: No Activity found to handle null
 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
 	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)
 Caused by: android.content.ActivityNotFoundException: No Activity found to handle null
 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2051)
 	at android.app.Activity.startIntentSenderForResultInner(Activity.java:5455)
 	at android.app.Activity.startIntentSenderForResult(Activity.java:5421)
 	at android.app.Activity.startIntentSenderForResult(Activity.java:5388)
 	at com.google.android.gms.common.api.GoogleApiActivity.onCreate(com.google.android.gms:play-services-base@@17.2.1:12)
 	at android.app.Activity.performCreate(Activity.java:7802)
 	at android.app.Activity.performCreate(Activity.java:7791)
 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
 	... 11 more

Reproducing video

20200614_214334

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
simonroeschcommented, Jun 19, 2020

Let me check what exactly triggers the notification, then we maybe can wrap that in a check for the presence of Google PlayServices.

0reactions
simonroeschcommented, Jun 19, 2020

OK, found the problem. The SDK checks upon initialization if ExposureNotifications are enabled, which makes a call to the Google PlayServices and triggers the notification if they are not up to date. If we prevent this call when an update is needed, the notification will not show up. This is fixed in https://github.com/DP-3T/dp3t-sdk-android/pull/164

Read more comments on GitHub >

github_iconTop Results From Across the Web

FIX: Google Play Store Keeps Crashing on Android
Head to Settings > Apps & notifications > See All Apps (or App info) > Google Play Services. Tap the menu icon in...
Read more >
Google app crashing after new update; here's how to fix
Launch Android Settings app · Go to Apps & notifications · Tap “See all apps” · Find and tap Google from the app...
Read more >
"Google Play Services keeps stopping" constant pop-up
See if it is still happening in safe mode. Hold the power button then tap and hold power off to reboot in safe...
Read more >
app crashes when clicking the google play services update ...
This notification is generated by Google PlayServices and not SwissCovid. I tried to reproduce the problem on two phones but without success.
Read more >
How to Fix Google Play Services Keeps Stopping/Crashing Error
Method #2 – Update your Google Play Services · Navigate to the Settings menu of your Android device. · Go to Apps &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found