iOS Enterprise developer Account: get device token
I have used the iOS development account for creating apns ssl certificate for sending push notification to iOS device for development purpose.I can get the device token using objective c sample code in iOS device.Then I can use that device token to send push notification for that specific iOS device.
Now I am going to implement MDM and for MDM iOS Enterprise account is required.There are some questions, which I want to confirm if someone has already done.
1.So I want to know can I use iOS Enterprise account for creating “apns ssl certificate” for development purpose?
2.Can I get device token for iOS device using the same objective C sample code, so that I can send the push notification via APNS to that specific iOS device for testing purpose.
Please help me.
3 Solutions Collect From Internet About “iOS Enterprise developer Account: get device token”
First of all MDM push notification implementation is different than push notification for third party iOS application.
1)You have to use iOS Enterprise account for MDM push notification and there are few steps to get APNS certificate.
1.Refer MDM_Protocol and follow this link: http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning Then verify few things.
remove the passphrase from customerPrivateKey.pem using this command
openssl rsa -in customerPrivateKey.pem -out PlainKey.pem
Then merge your APNS certificate (for example CustomerCompanyName.pem) downloaded from the portal https://identity.apple.com/pushcert/ using this command
cat CustomerCompanyName.pem PlainKey.pem > PlainCert.pem
Now this PlainCert.pem file can be used in your server as APNS/MDM certificate.
2)In MDM push notification there are three keys
• PushMagic – a unique token the MDM server sends with each push request
• Token – a unique token that identifies the device to the APNS service
• UnlockToken – an escrow key used to clear the passcode on the device.
MDM push notification payload is also different than push notification payload.It should look like this:
Take a look at http://urbanairship.com/ its a great service for handling push notifications and you can easily send test push notifications to any registered device.
Also this tutorial: http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk_apns/ was an awesome resource for me in setting up push notifications with my app.
For your first question – yes you can. In the iOS dev site, go to provisioning portal > app ID’s and enable you app for push notifications(dev or production).
1) see this answer
2) not for the MDM push token – this is sent to the MDM server during the ‘check-in’ procedure.
- Add more UICollectionViewCell to an existing UICollectionView
- CoreData issue: -: unrecognized selector sent to instance
- Can i switch gdb client on XCode?
- How can I print out the Memory Address of a variable?
- NSValue(CMTime: ) in swift 3?
- UIAlertView starts to show, screen dims, but it doesn't pop up until it's too late!
- Mystery console error with IOHIDFamily
- Is it possible to call a Python module from ObjC?
- NSCFData isResizable crash?
- Consecutive Number After 16 in iOS
- Can/How Should I replace my KVO stuff with RC3?
- Objective C calling method dynamically with a string
- How does NSData(bytes:length:) convert to UnsafePointer<Void> in Swift?
- URLSession.datatask with request block not called in background
- How do I make UIWebView show a pdf file from its own app?