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.

Notifications don't open app since SDK45 (Android)

See original GitHub issue

Summary

I upgraded a managed app from SDK44 to SDK45 and now, when a notification is received while the app is in background, touching the notification in Android doesn’t open the app as it used to with SDK44. The listener is called and executed, but the app UI is not shown.

This happens both in Expo GO Android and in the native Android app. When the same code is run in Expo GO Apple it correctly opens the app.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

45

Environment

expo-env-info 1.0.3 environment info: System: OS: Linux 5.17 Pop!_OS 22.04 LTS Shell: 5.1.16 - /bin/bash Binaries: Node: 16.14.2 - /usr/bin/node npm: 8.5.0 - /usr/bin/npm npmPackages: expo: ^45.0.0 => 45.0.4 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.4 Expo Workflow: managed

Reproducible demo

This is the listener:

Notifications.addNotificationResponseReceivedListener(response => {
console.log(`received notification "${response.notification.request.content.title}"`);
});

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:32 (14 by maintainers)

github_iconTop GitHub Comments

8reactions
Kudocommented, Jun 1, 2022

i’m sorry that we might take longer time to release the fix. i found a regression issue from my fix. will try to find a solution and anyway, will keep the status updates here.

5reactions
amagnolocommented, Jun 26, 2022

sorry i was busy for next sdk development and didn’t get a chance to look it this week. will try to do it these two days.

Nothing personal Kudo, but this order of priorities is one of the biggest hindrances of Expo for the adoption in business environment. You’re often too concentrated on delivering timely “best new things” and neglecting making existing stuff work right. Expo SDK45 was released almost 2 months ago and was completely unusable for anyone employing notifications on Android. It was probably never tested with current Android OS version before release. What’s worse, this bug and its regressions (still open) are not even mentioned in the release notes known problems, making anyone upgrading their apps from previous SDK having to find it out the hard way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android notification is not showing - Stack Overflow
1. the method addAction() isn't available on Notification.Builder . · 1. It does exist, but deprecated. Instead, you can pass an Action instance ......
Read more >
Notifications - Expo Documentation
On Android 13, app users must opt-in to receive notifications via a permissions prompt automatically triggered by the operating system. This prompt will...
Read more >
Notification runtime permission - Android Developers
If a user installs your app on a device that runs Android 13 or higher, your app's notifications are off by default. Your...
Read more >
Push notification not received on android devices
Hello, I m trying to integrate your sdk on my react native app. It's currently Ok on Ios. For android device, events are...
Read more >
Android | Localytics Documentation - Upland Software
In your project's app-level build.gradle, add dependencies for Localytics, Android Support v4, and Google Mobile Ads. dependencies { implementation platform ...
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