Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Cannot Receive Push Notifications on Android When the App Is Closed

Environment

Service Notifications (Backend Services)
Feature Push Notifications

Description

Some Android devices cannot receive push notifications when the app is closed. The app can receive push notifications when it is running, either in the foreground or in the background.

Cause

On these devices most of the apps are not permitted by default to be awaken in the background. This way the app cannot process the received push notification when it is not running.

Currently, this behavior is identified only on devices from the following manufacturers:

  • Huawei
  • Xiaomi
  • Asus

Solution

You need to modify certain settings on your device.

Huawei devices

  1. Open Settings → Protected Apps
  2. Place your application in the list

Xiaomi devices

  1. On the app screen tap on the Security app
  2. Select Permissions → Autostart
  3. Locate your app in the list and enable "Autostart"
  4. Restart the device

Asus devices

  1. Locate the Auto-start Manager as noted here
  2. Locate your app in the list and enable "Allow"

Notes

Currently, we have not identified a way to achieve this behavior programmatically from your application. You may consider to instruct your customers to enable the option on their devices if they fall under the above category.

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.