The SwiftUI template todo app is unable to maintain a connection with MongoDB. The app itself works just fine, but it is unable to sync. The steps I’m taking are:
Create a new app and download zip file that contains the template SwiftUI app from Atlas App Services
Ensure appId and appUrl are correct in atlasConfig.plist
Build and launch app on iPhone 14 Pro simulator
Create a user via app and log in to the app
Create todo items
I can see the created user in App Services, but no todos are ever synced. Opening the app on a different simulator confirms that there is no syncing happening. The following is output when the app launches and attempts to connect to flexible sync (I’ve removed some identifying info from these logs):
Sync: Realm sync client ([realm-core-13.10.1])
Sync: Connection: Session: Binding '[obfuscatedpath]/flx_sync_default.realm' to ''
Sync: Connection: Session: client_reset_config = false, Realm exists = true, client reset = false
Sync: Connected to endpoint 'x.xx.xxx.xx:xxx' (from 'xxx.xxx.x.xx:xxxxx')
Sync: Connection: Closing the websocket with status='SystemError: invalid certificate chain', was_clean='false'
Sync: Connection: Connection closed due to error