universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

On Android scheduling for long terms (such as a month) doesn't work #19

Closed yuriy-universal-ivanov closed 8 years ago

yuriy-universal-ivanov commented 8 years ago

Subj.

If you need a fix asap, please make these changes in Assets/Plugins/Android/UTNotifications/src/universal/tools/notifications/Manager.java, static void scheduleNotificationCommon: Replace alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, elapsedRealtime + triggerInSeconds_1000, intervalSeconds_1000, pendingIntent); with alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, elapsedRealtime + (long)triggerInSeconds_1000L, (long)intervalSeconds_1000L, pendingIntent); and alarmManager.set(AlarmManager.ELAPSED_REALTIME, elapsedRealtime + triggerInSeconds_1000, pendingIntent); with alarmManager.set(AlarmManager.ELAPSED_REALTIME, elapsedRealtime + (long)triggerInSeconds_1000L, pendingIntent);

Then you'll have to rebuild the native plugin.

yuriy-universal-ivanov commented 8 years ago

Fixed in 1.5