Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Unity iOS local notification firedate

$
0
0
This is a problem during implementation of Unity iOS local notification. If you set the time to register fireDate as a schedule I get 9 hours less than my goal. I think UTC is applied ... if the time to schedule is between the current time and 9 hours I can not register a schedule (it is a matter of course). I want to have the time I want in fireDate in the first place. I also tried setting the Timezone. How can I fix the target time correctly? LocalNotification notif = new LocalNotification (); notif.fireDate = System.DateTime.Now.AddHours (1); // Current time: 2019-02-22 22:00, Target time: 2019-02-22 21:00 // Actual registered time: 2019-02-22 14:00 notif.alertBody = "Hey"; NotificationServices.ScheduleLocalNotification (notif);

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>