简体   繁体   中英

Android is Killing my Application when it's in background

I Have an application made in React Native, which uses localization in background to take some decisions.

What happens is that Doze is killing it everytime user puts it at his pocket.

  • Can't tell the user to switch something on or off

What should I do so my Application keeps collecting the required information?

您可能需要FCM来按需唤醒设备,或者可能需要考虑使用作业计划程序或alaram执行所需的操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM