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.
data
represents data to be synced.model
represents the model of events to be synced.shouldSync
represents whether the events to be synced or not.
When telemetry events are synced this callback is fired.
filePath
represents filePath of the database file.
When there is an authorization error this.