I am working on an application where I am using Google Push Notification. Application receives notification when it is running in Xiaomi phone otherwise when it's killed it does not receive notification.

If we want to receive notification if application is killed then we need to allow auto restart app manually from security app of xiaomi. I want any trick to do this programmatically without asking user. Is there any way to do this ?

![enter image description here](https://i.stack.imgur.com/VwVmU.png)

<http://en.miui.com/thread-33826-1-1.html>