Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Template apps #7738

Closed
sync-by-unito bot opened this issue Nov 9, 2022 · 2 comments
Closed

Improve Template apps #7738

sync-by-unito bot opened this issue Nov 9, 2022 · 2 comments
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Nov 9, 2022

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.

  1. 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

  2. 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

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Nov 14, 2022

➤ bmunkholm commented:

[~ian.ward@mongodb.com] Are we also updating the Java example app?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Nov 14, 2022

➤ Ian Ward commented:

there is no java template app - its only this one -

https://github.com/mongodb-university/realm-template-apps/tree/main/kotlin-sdk

@sync-by-unito sync-by-unito bot closed this as completed Nov 14, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant