SyncAdapter's periodic syncs abandonned

允我心安 提交于 2019-12-11 05:58:28

问题


I have an application where I use SyncAdapter to collect some user data and send it to my server (activity tracking application that synchronizes the data with server periodically). I have set it to work every 4 hours and everything was fine. However after 2-3 weeks of running the application, suddenly I have realized that syncs weren't performed for 2 days (on some devices even longer). I have checked the adb shell dumpsys content and I didn't find there entry for periodic sync of my application. Earlier the entry was looking like that:

JobId: 102971, MyApp u0 (com.my.package), com.my.package, PERIODIC, reason: Periodic, period: 14400000, flexMillis: 576000
owningUid=u0a307 owningPackage=com.my.package

Now there's none.

Tell me please if it is possible that Android for some reason cancelled my periodic sync?

This problem was encountered on Samsung Galaxy S7, S8, S8+ phones, so it may be Samsung-specific issue.

来源:https://stackoverflow.com/questions/44405585/syncadapters-periodic-syncs-abandonned

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!