Search code examples
iosxamarin.iosnsstringnsobject

How do i get body from the below NSObject object in Xamarin?


So i'm trying to do push notifications and i've been able to get the "aps" and "alert" objects out of this,but i'm having issues extracting "body" and "title" out of this, any help would be deeply appreciated

    {{
    aps =     {
        alert =         {
            body = asdads;
            title = aaas;
        };
    };
    "mobile_center" =     {
    };
}}

Solution

  • userInfo1.ValueForKey(new NSString("alert").ValueForKey(new NSString("body")));
    

    Did the Trick