android - Use a common database for Sqlite -


i using apache cordova visual studio 2015 mobile app development. using genymotion emulator , sqlite database.

i noticed, if use 2 different devices(merchant pov & consumer pov) demonstrate app, database using not synced database due being 2 different devices.

is there way can make sure both devices using synced database?

you need custom sync api synchronize data that. if in stage of testing local database, can make script loads sample data wich executed on opening of app. way device run same script , have same sample data.

but if want insert data on device , have same data on another, have sync api.

hope helps


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -