-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
Nate River edited this page Aug 29, 2017
·
30 revisions
- Device reboot support
- Cancellation of already displayed notifications
- Repeated notifications
- Multiline support (API 16+)
- Grouped notifications (API 23+)
- 20 general preloaded icons
- Notification execute mode
- Advanced notification id management
- Custom icons
- Custom vibration
- Custom lights
- Sure, you can!
- Basically Android erases all local notifications on reboot (as they are scheduled alarms). Paid plugin version recreates all scheduled notifications after reboot, that’s why it requires android.permission.RECEIVE_BOOT_COMPLETED permission.
- First you'll need to calculate the delay to the nearest event. Pass this value to NotificationParams.Delay parameter. Then set NotificationParams.Repeat=true and NotificationParams.RepeatInterval=TimeSpan.FromDays(1)
var targetTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 18, 0, 0);
if (targetTime < DateTime.Now)
{
targetTime = targetTime.AddDays(1);
}
var timeLeft = targetTime - DateTime.Now;