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 manually. You need to set a configuration in your device to 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.
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 i 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.
Make sure your App is on the list of protected apps.
Note: For more help, refer to this blog post on fixing push notifications on Huawei devices.
If you're using a Samsung device, there are a few steps to take:
Devices using Marshmallow OS or above
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 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.