Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Does not sync Automatically - works when refreshed or location change #307

Open
PraZ opened this issue Oct 25, 2016 · 0 comments
Open

Does not sync Automatically - works when refreshed or location change #307

PraZ opened this issue Oct 25, 2016 · 0 comments

Comments

@PraZ
Copy link

PraZ commented Oct 25, 2016

I have followed all the instruction as it was given in the tutorial. (I am attaching my SunshineSyncAdapter class here for reference) But when i run the app, it gets the data from the server the first time. But the the automatic sync does not happen. I have set the sync_interval to 30 seconds, and keep monitoring the logcat. But i don't see the "onPerformSync Called" log being printed every 30 seconds.

But when i "Refresh" or change location and come back, syncImmediately() function kicks off and updates the data. What am i doing wrong?

SunshineSyncAdapter.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant