Giter Site home page Giter Site logo

Comments (5)

dacharyc avatar dacharyc commented on July 17, 2024

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 of App/atlasConfig.plist?
  • Can you let me know what error you're seeing, and when?

from realm-template-apps.

dvhull avatar dvhull commented on July 17, 2024

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:

  1. Clone https://github.com/mongodb/template-app-swiftui-todo
  2. Add App ID etc....
  3. Install on physical device.
  4. Log in and create an account.
  5. Add a item to the list.
  6. Turn on airplane mode.
  7. Wait 5 minutes-ish and re-enter the app.
  8. 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.

dacharyc avatar dacharyc commented on July 17, 2024

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.

dacharyc avatar dacharyc commented on July 17, 2024

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.

dacharyc avatar dacharyc commented on July 17, 2024

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:

from realm-template-apps.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.