Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Target iOS 10
Running on iOS 10.2 Device
IDE: Xamarin Studio on Mac
Xamarin Studio Enterprise
Version 6.2 (build 1821)
Mono 4.8.0 (mono-4.8.0-branch/e4a3cf3) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 408000495
Version: 10.4.0.123 (Visual Studio Enterprise)
Build date: 2017-02-16 17:40:00-0500
Release ID: 602001821
Git revision: d41b6e51f3fa46a1943f2e31a778d28a7c73d069
Build date: 2017-02-17 15:18:19-05
Xamarin addins: 1363a8d943bab7700c93a97474060b6734aa7f94
Build lane: monodevelop-lion-cycle9
Scheduling a local notification
var notification = new UILocalNotification();
notification.FireDate = NSDate.FromTimeIntervalSinceNow(0);
notification.AlertTitle = "Title of the Alert";
notification.AlertBody = "You just got a new notification";
notification.AlertAction = "Ok cool";
notification.SoundName = UILocalNotification.DefaultSoundName;
When receiving the notification:
public override void ReceivedLocalNotification(UIApplication application, UILocalNotification notification)
// Notification AlertAction string is always null.
var action = notification.AlertAction;
I tried different values for the notification AlertAction but neither worked, it was always null.
NOTE: The above code runs fine when running on a device with iOS 9.3.
I loaded up Xcode and ported the above code over and am seeing the same thing happen in Xcode as in Xamarin Studio. AlertAction appears correctly in the iOS 9 simulator, but shows up as nil in the 10.0 simulator, so it appears this is something on apple's end, not an error in Xamarin.iOS.
Yeah @Timothy, I was able to check that this morning. Migrated the same code to Swift and had the same error, was waiting to come back home to update this bug with this information.
It's Apple issue.
Thanks for your prompt reply.-