Peer to Peer Sync User Guide


Description

The Peer to Peer Sync functionality is a library which can be used by any OpenSRP modules to allow offline sync of data between two devices. The devices have to be proximal to each other within a radius of a few metres and do not require an internet connection in order to share the information.The main problem being solved by the peer to peer sync is the lack of internet connectivity in remote areas, and the need to share information.

Quick User Guide

The sender and receiver both navigate to the navigation drawer and selects the Peer to Peer Sync. The device B on the right will be the one receiving records from device A on the Left. Both currently do not have access to the internet. Notice the last sync time and the number of records  in Device B.


The devices should allow when permissions are requested by the device. The sender then clicks on sender button, Receiver selects receive button in the below screen.


Allow for the requested permissions thereafter. The devices then begin to look for a recipient and sender respectively. 


Authentication is provided through a QR code. The sender scans the recipient. It also allows for Skipping whereby a code is used to authenticate the sender. Device A camera should scan Device B’s QR code, and then both user’s click on Start transfer in the screen that ensues.


 A summary of the transferred records is then provided, and processing of the files received is done in the background.


When the records are being updated into Device B, a message is shown that the sync is in progress until it completed. At this point, the user can navigate within the app, as the background processing is done.

On completion, the records are updated and now Device B has received new data from Device A. Notice the increase in count for Device B and the sync time. The sync time remains unchanged due to the fact that there has been no connection to the internet since.