Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A full-featured embedded NoSQL database that runs locally on mobile devices which will store the data and sync it to the temporary server, and from temporary server will sync to Platform after that it removes it and so .

...

Solution 2: Create a custom Cordova plugin to handle Background task.

WorkManager : Work Manager library does everything for you. It creates the database of your Request and Runs them accordingly.

Architecture:

...

 there is no need to handle the OS Version checks i-e if OS version is greater then 14 and lower than 21 then use the Job Scheduler Or Service Or Alarm Manager or if OS version is greater than 22 then go for Firebase Job Dispatcher or may you have many other ways like Alarm Manager + Broadcast Receiver to handle your background work but all of them have pros and cons

Plugin method init()

Code Block
languagejs
init: function(configurations: SyncConfiguration[], success, error) {
    exec(success, error, PLUGIN_NAME, "init", [configurations])
}

...