Comments (5)
Hey @dvhull - sorry you're having problems!
I'm not able to replicate this issue. Could you give me some more information to help me try to troubleshoot?
- What are the version numbers of Realm and RealmDatabase that are listed in your Package Dependencies?
- Can you confirm you have the correct App Services App ID in the
appId
field ofApp/atlasConfig.plist
? - Can you let me know what error you're seeing, and when?
from realm-template-apps.
Hey, thank you for the quick reply @dacharyc. Very sorry on the late reply. I will try to be more specific in what I am addressing as my initial issue was not specific enough.
Realm version number: 10.46.0
Realm Database: 13.26.0
Xcode: 15.0.1
I have the correct App Services APP ID in the plist. The application works as expected with an internet connection.
Steps to reproduce:
- Clone https://github.com/mongodb/template-app-swiftui-todo
- Add App ID etc....
- Install on physical device.
- Log in and create an account.
- Add a item to the list.
- Turn on airplane mode.
- Wait 5 minutes-ish and re-enter the app.
- The error that is shown is, "Failed to connect to sync: Host not found (authoritative)"
To my understand @AutOOpeN should make the realm offline first. So once the user is authenticated they shouldn't be locked out of the app?
If you need more clarification I can upload a repo and you can take a look. Thank you.
from realm-template-apps.
Hey @dvhull - thank you for the details to reproduce! I wasn't able to reproduce this on a simulator, but I was able to reproduce on a physical device. That may be a useful detail.
I would encourage you to open a support case to make engineering aware of this. You can find more information about how to open a support case in our documentation's Get Help page. Feel free to link to this GitHub issue as a simple reproduction case. I will also raise this internally with the engineering team, but it always helps to prioritize work when we have a customer case to associate with it.
from realm-template-apps.
Closing the loop here - engineering has identified the issue and has provided a workaround on this realm-swift GitHub issue: realm/realm-swift#8469 (comment)
Based on your reply there, it looks like this has worked for you, @dvhull . I'll leave this issue open for now until we either adopt this workaround in the template app, or until the underlying issue is addressed.
Thanks for reporting this!
from realm-template-apps.
Hey @dvhull - the v10.50.0 realm-swift
release appears to address the remaining offline issues with @AutoOpen
, so you should be able to remove the workaround after you update to this version. I'm going to go ahead and close this issue as I believe this is now resolved. Do let us know if you have any other issues after updating to this version.
However, please note that v10.49.3 changed the way to manage the SDK with Swift Package Manager. You can find details in the updated documentation - you'll need to remove the Realm
library dependency, and you also need to build the framework dynamically if you want to use our provided Privacy Manifest. You can find details in this troubleshooting section, and in the updated Installation with Swift Package Manager procedure:
- https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/test-and-debug/#swift-package-target-cannot-be-built-dynamically
- https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/install/#installation
from realm-template-apps.
Related Issues (16)
- The react-native template pulled from realm platform does not initiate correctly with xcode 69.5 HOT 2
- the layout ressource is not in the project HOT 1
- Crash on Mac Catalyst (SwiftUI)
- Where is the getUserItems defined? HOT 1
- Call To Function is not passing the arguments HOT 2
- SwiftUI template app unable to maintain connection with flexible sync HOT 2
- .net maui template app HOT 1
- `flutter run macos` fails to build on M1 HOT 1
- React Native todo app get stuck on npm and crashes when built on Mac HOT 11
- Flutter - atlasUrl is missing in config HOT 2
- Realm Prop load error HOT 7
- EMpty template app HOT 3
- Android With Kotlin Tutorial HOT 8
- Android todo app doesn't sync and crashes when pressing subscription button HOT 3
- Errors with repo: missing path-browserify,hermes realm init error whenever @realm/react Providers are used HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-template-apps.