You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a MAUI project for Android, maybe iOS later, that requires the app periodically connecting to server API to synchronize data. I'm thinking to do one of the following.
use a background service - always running service; no need service side implementation
use push notifications (firebase cloud messaging) to inform the mobile about the server change; this requires server side implementation as well as mobile side
use a foreground service - when app is in running foreground;
use a timer - when app is in running foreground
This kind of user scenarios are quite common in mobile app design and I do understand these may require platform specific code. However, I just could not find any useful MAUI document or example of how to implement the background/foreground service, push notifications or even the timer. It looks like there is no out-of-box framework/support in MAUI for such simple needs.
Can anyone share advices on the best practice in MAUI for calling server API with given interval? Any useful MAUI example will be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a MAUI project for Android, maybe iOS later, that requires the app periodically connecting to server API to synchronize data. I'm thinking to do one of the following.
This kind of user scenarios are quite common in mobile app design and I do understand these may require platform specific code. However, I just could not find any useful MAUI document or example of how to implement the background/foreground service, push notifications or even the timer. It looks like there is no out-of-box framework/support in MAUI for such simple needs.
Can anyone share advices on the best practice in MAUI for calling server API with given interval? Any useful MAUI example will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions