universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

repeating interval is not accurate #82

Open leeHeisen opened 6 years ago

leeHeisen commented 6 years ago

Hi, I test this asset and found when I set the repeating interval to 10s, and it will only repeat on a 90s basis. This is weird. I presume that programs should be accurate.

yuriy-universal-ivanov commented 6 years ago

Hi @leeHeisen ,

Unfortunately your assumption is wrong: repeating intervals are approximate in most mobile devices. It's done by device vendors to save power. Moreover, as noted in our documentation, on iOS there are only fixed options available for repeating intervals. On Android you can assume that notification will be shown not earlier than you requested it, but maybe later. How later depends on a specific device, its level of charge, device power settings and other applications running in the device: Android tends to send "alarms", which are used to invoke scheduled notifications, in bunches, again, to save charge.

Best regards, Yuriy, Universal Tools team.