We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb74d23 commit ccc07a6Copy full SHA for ccc07a6
com.unity.mobile.notifications/Runtime/iOS/iOSNotification.cs
@@ -389,8 +389,19 @@ public iOSNotificationTrigger Trigger
389
UtcTime = true,
390
Repeats = data.trigger.calendar.repeats != 0
391
};
392
- if (userInfo != null && userInfo["OriginalUtc"] == "0")
393
- trigger = trigger.ToLocal();
+ if (userInfo != null)
+ {
394
+ string utc;
395
+ if (userInfo.TryGetValue("OriginalUtc", out utc))
396
397
+ if (utc == "0")
398
+ trigger = trigger.ToLocal();
399
+ }
400
+ else
401
+ trigger.UtcTime = false;
402
403
404
405
return trigger;
406
}
407
case iOSNotificationTriggerType.Location:
0 commit comments