Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:56:34+00:00 2026-06-17T11:56:34+00:00

I am attempting to send the an MDM push notification to an iPad using

  • 0

I am attempting to send the an MDM push notification to an iPad using the production APN server. However, Push Sharp says that the notification failed because the identifier is equal to 1. The following code from the PushSharp code base illustrates how it comes to that conclusion…

//We now expect apple to close the connection on us anyway, so let's try and close things
// up here as well to get a head start
//Hopefully this way we have less messages written to the stream that we have to requeue


try { stream.Close(); stream.Dispose(); }
catch { }

//Get the enhanced format response
// byte 0 is always '1', byte 1 is the status, bytes 2,3,4,5 are the identifier of the notification

var identifier = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(readBuffer, 2));

int failedNotificationIndex = -1;
SentNotification failedNotification = null;

//Try and find the failed notification in our sent list
for (int i = 0; i < sentNotifications.Count; i++)
{
    var n = sentNotifications[i];

    if (n.Identifier.Equals(identifier))
    {
        failedNotificationIndex = i;
        failedNotification = n;
        break;
    }
}

Basically, after the writing the payload to the stream, it attempts to close the connection, during which it expects a response from the APN service, which I think it refers to as the notification identifier.

I have plugged the device into the iPhone Device Configuration utility, but nothing appears in the console, hence I assume that it never receives this notification.

My questions are…

  1. What is this identifier that it is expecting ?
  2. Is there anything that I am doing wrong ?

The device is running iOS 6. The structure of the payload is as follows…

{"aps":{},"mdm":"80369651-5802-40A2-A0AE-FCCF02F99589"}

The values in the returned byte[] of 6 bytes are as follows 8,8,0,0,0,1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:56:35+00:00Added an answer on June 17, 2026 at 11:56 am
    1. No idea, I’ve never looked into the details how PushSharp deals with the APNS internals.

    2. You shouldn’t send the “aps”:{} part in the notification payload, so maybe that’s the reason the APNS fails the notification.

    I’m sucessfully using PushSharp 1.0.17 with the following code for MDM notifications, so it definitely works in general.

    var pushService = new PushService();
    // attach event listeners
    
    // override the production/development auto-detection as it doesn't
    // work for MDM certificates
    var cert = null; // load your push client certificate
    var channel = new ApplePushChannelSettings(true, cert, true);
    pushService.StartApplePushService(channel);
    
    // create and send the notification
    var notification = NotificationFactory
        .Apple()
        .ForDeviceToken("your-device-token-received-from-checkin")
        .WithExpiry(DateTime.UtcNow.AddDays(1))
        .WithCustomItem("mdm", "your-push-magic-received-in-checkin");
    pushService.QueueNotification(notification);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to send additional parameters with jqueryUI's autocomplete using an abstract approach.
I am attempting to send a javascript array to my web server for an
I have a problem when attempting to serialize class on a server, send it
I am attempting to send data to a server in a separate thread and
I'm attempting to send raw POST data to a page using $HTTP_RAW_POST_DATA , but
I use BitNami Redmine Stack in Mandriva Linux. Attempting send e-mail notification leads to
I'm attempting to send an image and some text to a server at the
Using the latest source of RNCryptor and attempting to send the encrypted data to
I have a HTTP GET request that I am attempting to send. I tried
I'm trying to send email in windows server using PHP. When I use php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.