- Home /
Unity iOS local notification firedate
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);
Your answer

Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Camera Smoothing from pos A - pos B in Unity 2D 0 Answers
Why is my Unity IOS App crashing after uploading it to xCode? 0 Answers
OnDrag EventSystem not working on iPhone device,OnDrag not working on device 0 Answers
Quit from Unity to native iOS app. 0 Answers