Click here to Skip to main content
15,892,253 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
referring to this link : http://www.objc.io/issue-5/multitasking.html i can now send a silent push notification on ios by setting content-available=1

i'm using moon apns on c# to send the push notification but i can not find this property to send a silent push (i'm using a development certificate)

below is my code :

C#
string p12File = "test.p12";
string p12FilePassword = "1234";
bool sandbox = false;
var push = new PushNotification(sandbox, p12File, p12FilePassword);
NotificationPayload payload1;
payload1 = new NotificationPayload(testDeviceToken, message, 0, "Silence.m4R");
payload1.AddCustom("message", "HIDDEN");
var notificationList = new List<NotificationPayload>() { payload1 };
var rejected = push.SendToApple(notificationList);
foreach (var item in rejected)
{
   return false;
}

any idea how can send this using moon apns :

C#
{
"aps" : {
    "content-available" : 1
},
"content-id" : 42
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900