Expo notifications in Android app when app is closed

Please provide the following:

  1. SDK Version:41
  2. Platforms(Android/iOS/web/all):Android
  3. Expo-notifications 0.11.6

I have built a standalone app in expo managed workflow for Android which works around notifications.
The notifications are working perfectly when app is background or foreground, but doesn’t seem to work when closed.
A workaround that was to disable battery optimization in my device.
This is currently an apk file installed in a test device.
Will this be a issue(battery optimization) when app is distributed through play store?
If yes, is there any workaround this issue?

What do you mean when you say the notifications “aren’t working”?

The user device stops recieving the notifications.
I’ve set the priority to ‘high’ for both android and iOS.
This doesn’t seem to be a issue when the user manually turn off battery optimization for the app in settings, otherwise, the user only receive notifications when app is running in foreground or background but not when closed.

Since this app is in beta testing phase, I can instruct the users to turn off battery optimization in the settings for the app, but it might be a problem when the app is launched to new users.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.