Uploaded image for project: 'Realm Dart SDK'
  1. Realm Dart SDK
  2. RDART-631

Improve Template apps

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • Q4-23FY
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      We want to add two new features to the template apps for each SDK as this will make the apps easier to demo the value of flexible sync.

      1. Add a selector in the template where you can switch the subscription between the default which is give me Items where ownerId = userId 

      https://github.com/mongodb-university/realm-template-apps/blob/main/swiftui/App/Item.swift#L8

      To then a subscription that just gives me all completed tasks with my owner id where isCompleted is true - 
      https://github.com/mongodb-university/realm-template-apps/blob/main/swiftui/App/Item.swift#L5

      The app should unsubscribe from the query and set the new subscription.

       

      2. Add an Airplane mode button to the app. Upon pressing this button the template should hit the syncSession pause button, the user will still be able to make local changes but it will not sync. Upon hitting the airplane button again, the syncSession resume API will be hit and all changes will be synced. You can see an example of this behavior here - 
      https://drive.google.com/file/d/1VdG20BB-o2kM8-QIxhKZM0VcES4TAjZM/view?usp=sharing

      3. Ensure best practices and make sure the UI is using the latest clean frameworks that don't bloat the code.

      All template repos can be found here - 
      https://github.com/mongodb-university/realm-template-apps

            Assignee:
            desislava.stefanova@mongodb.com Desislava Stefanova (Inactive)
            Reporter:
            marysia.pietraszewska@mongodb.com Marysia Pietraszewska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: