A plugin to sync telemetry events and course progress.
cordova plugin add https://github.com/project-sunbird/sb-cordova-plugin-sync.git#<branch_name>
To install it locally
Clone the repo then execute the following command
cordova plugin add <location_of plugin>/sb-cordova-plugin-sync
Syncs event to the platform
Add the events to the queue to be synced.
datarepresents data to be synced.modelrepresents the model of events to be synced.shouldSyncrepresents whether the events to be synced or not.
When telemetry events are synced this callback is fired.
filePathrepresents filePath of the database file.
When there is an authorization error this.