/scripts/ahub.form.attachments.js ahub.question.header ahub.question.sidebar ahub.question.sidebar
avatar image
0
Question by invicticide · Nov 26, 2012 at 10:52 PM · iosnotifications

Can't assign LocalNotification.userInfo?

I have a pretty straightforward piece of code:

 LocalNotification notification = new LocalNotification();
 IDictionary userInfo = new Dictionary<string, string>(1);
 userInfo["Type"] = notificationType.ToString();
 notification.userInfo = userInfo;

Immediately after this, I'd expect (notification.userInfo == userInfo) to be true... but it is not! In fact, notification.userInfo is NULL even though the local variable userInfo is NON-NULL.

WTF. O_o

Add comment
10 |3000 characters needed characters left characters exceeded

0 Replies

· Add your reply

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.