Using NSNotificationCenter to talk between Objective C and C#

Is it possible to use NSNotificationCenter in Native Lib (Objective C) To Push To Observer Setup in C# layer.

Objective C:
[[NSNotificationCenter defaultCenter] postNotificationName:@DownloadProgress object:self userInfo:@{@_downloadProgress: @(_operation.downloadProgress)}];

C# (Xamarin):
notificationToken = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"DownloadProgress", NotificationReceived);

    void NotificationReceived (NSNotification notification)
        Console.WriteLine ("The Notification Message Was Receieved");
        Console.WriteLine ("The Notification: ", notification.UserInfo["_downloadProgress"]);

issue found so far is i cant seem to get it to fire up, the observer isnt seeing the call but i am sure the push is happening and the observer is being setup.

Sign In or Register to comment.