I tested syncing on Android (version 5.1.1) and iOS (version 12.2) on real device.
On Android, everything works fine, but on iOS pushing data to the server database does not work, though pulling new data from server works.
Here is my sync code in app.js:
For anyone having this issue, it might be because of not enabling non-HTTPS connection in iOS and Android 9 or higher. To do that, for Android, add android:usesCleartextTraffic="true" to
in AndroidManifest.xml, and for iOS, add
NSAppTransportSecurityNSAllowsArbitraryLoads
to info.plist
This might be the solution, **but I have not tested it**, because currently I am on a different project.
I tested syncing on Android (version 5.1.1) and iOS (version 12.2) on real device. On Android, everything works fine, but on iOS pushing data to the server database does not work, though pulling new data from server works. Here is my sync code in app.js:
Couchbase Server 6.0.0 community edition and Sync Gateway 2.5 community edition are installed and in use on Windows 10 laptop.