Open hagabr opened 5 years ago
Is this happening on new records added from device?
Yes, when trying send new records. And its works. New records is created.
But the violation is from DB to mobile.
Make sure your synchronization process is in correct order:
I build my mobile app on top your ionic sample code. Every interaction with sqlite-sync is made by your code.
How can we push data to server from mobile ?
is there any mechanism is preferred for large scale of applications.
ERROR PushInsertRecords() constraint violation PRIMARY KEY 'PK_XXX'. cannot insert the duplicated key in the object 'dbo.XXX'.
This make no sense because is not a new record. Its the same record the App sent to DB.
In the next syncronization get this message