Here's what works well on android
/// this will schedule the startup from the background
Intent intent = new Intent(Android.App.Application.Context, typeof(AlarmHandler));
PendingIntent pendingIntent = PendingIntent.GetBroadcast(Android.App.Application.Context, pendingIntentIdMain++, intent, PendingIntentFlags.CancelCurrent);
AlarmManager alarmManager = Android.App.Application.Context.GetSystemService(Context.AlarmService) as AlarmManager;
alarmManager.Set(AlarmType.ElapsedRealtimeWakeup, SystemClock.ElapsedRealtime() + 60 * 1000, pendingIntent);
/////
Is there anything similar to iOS?
Or do I need to enable background mode in info.plist? (then help me decide which one to include)(I think no option suits me.)
Task logic (tasks that need to be called at least once an hour):
- find out the local time of the user
- search for an approximate match in the local user database.
- if a match is found, show the user a local notification.