Programmatically disable app power saving mode on Samsung

前端 未结 1 1217
萌比男神i
萌比男神i 2021-02-13 21:13

I am the developer of a messaging application. My application get put on an automatic power save mode which prevents messages from getting through.

When I go to the App

1条回答
  •  臣服心动
    2021-02-13 21:48

    You can ask user to ignore battery optimizations: https://developer.android.com/training/monitoring-device-state/doze-standby.html#support_for_other_use_cases

    But your use case needs to be acceptable for Google Play validation: https://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases

    0 讨论(0)
提交回复
热议问题