You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully implemented the react-native-sync-adapter and is working fine for the foreground and background sync. But the main issue is, I want to stop the sync interval task after single sync. I want to sync the data only once when user taps on the sync button in the application. Can anyone help me how to achieve that?
I have successfully implemented the
react-native-sync-adapter
and is working fine for the foreground and background sync. But the main issue is, I want to stop the sync interval task after single sync. I want to sync the data only once when user taps on thesync
button in the application. Can anyone help me how to achieve that?I am registering the task like:
And canceling the task after my operation has been completed in
TestTask.js
file like:But I am getting an error while canceling the task:
The text was updated successfully, but these errors were encountered: