Why Aren't Push Notifications Sometimes Working on My Android App?

  • Updated

 

You might have problems when receiving PN (Push notifications) in your Android app. It happens to depend on the device's model, some manufacturers have their rules to disable the background service and let the user enable it manually. You need to set a configuration in your device to be able to receive PN.

Note: This process depending on your device model. We recommend using the information here as a starting point and you might find your device are not on the list and you need to find out based on your device model.

 

Device  Recommendation
Xiaomi

Enable autostart for your App. Open up Security and click through to Permissions and Autostart. Make sure your App is enabled. 

Note: For more help, refer to this blog post on enabling auto-start.

OnePlus Make sure your app is on the auto-launch list.
  1. Open up Settings 
  2. Click Apps > the gear icon > Apps Auto-launch.
  3. Find your App in the list and toggle it on to enable auto-launch.
Oppo Make sure your App is on the list of allowed start-up apps.
  1. Open Security Center
  2. Click Privacy Permissions,
  3. then Startup Manager, and then allow your App to start up in the background.
Vivo Enable the auto-start setting for your App.
  1. Open Manager,
  2. Click App Manager,
  3. then Autostart Manager, and then allow your App to auto-start in the background.
Lenovo Enable the auto-start setting for your App.
  1. Open Settings
  2. Click Power Manager
  3. then Background app management.
  4. Flip the Allow auto-start toggle for the App app.
Huawei

Make sure your App is on the list of protected apps.

  1. Open System settings,
  2. then choose Advanced Settings,
  3. then choose Battery Manager,
  4. and finally Protected apps. Enable the toggle next to your app to allow it to keep running even after the screen is turned off.

Note: For more help, refer to this blog post on fixing push notifications on Huawei devices.

Samsung

If you're using a Samsung device, there are a few steps to take:

  1. Switch off battery optimisation for your App. Open Settings, then Apps, then the three dots in the upper right corner, then Special Access, then Optimize battery usage. From here, tap on the dropdown menu that says 'Apps not optimized’, then switch it to all apps and then switch off battery optimisation for your App.

    NOTE: For more help, refer to this blog post on fixing push notifications on the Galaxy S8.

  2. Exclude your App from any of the battery optimization features on your device. You'll find these in Settings, then Battery. You'll need to disable battery optimization for your App, as well as check to make sure the Restrict background data setting is disabled.

    Note: For more help, refer to this Smart Manager Guide.

Devices using Marshmallow OS or above

 (Android 6.0+)

If you've tried the relevant options above but the problem still persists, you can also try making sure that your App is not optimized for the Doze feature (battery saving). You can find this setting on most devices by clicking Settings, then Battery, and then Battery Optimization. Make sure your App is on the list of apps excluded from optimization.

Note: For more help, refer to this Greenbolt article on turning off doze mode for specific apps in Android Marshmallow.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.