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

How can I reload observe when I come from background to foreground ios #1715

Open
phamvantien96 opened this issue Nov 29, 2023 · 0 comments
Open

Comments

@phamvantien96
Copy link

I am development a messenger app on ios using watermelon db. Our application need using notification service extension for display noti when message coming and we not in foreground app. So I use SQLite.swift to insert new row to database from notification service extension. When we killed app (swipe up to kill app) the app reset and we can observe database is change, but the app in background state (just not swipe up app, only use like normal) then we open app, the observe database will not reloading. We can add listener to listen AppState change but don't know how to force the observe reload with new database change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant