Reboot receiver is not working in xiaomi phones

后端 未结 10 1814
余生分开走
余生分开走 2020-12-17 08:31

Hi We are working on an android application where we are using reboot receiver in which I am starting few services where I am performaning some network operation.

I

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 09:10

    Xiomi has a reported bug for only using this reciever 5 minutes after the system
    actually boot-up -
    http://xiaomi.eu/community/threads/alarmmanager-_wakeup-problem.21430/
    You can try and add the -

    android:enabled="true" and android:exported="true"
    even though they should be set to true by default due to manufacturer system changes
    it might be different on Xiomi android customized OS.
    Just pay attention for their meaning
    Since the android:exported="true"
    Will let other applications access to your reciever.

提交回复
热议问题