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.
- Receive push notifications from APNS to Titanium (iOS) App without using Appcelerator Cloudpush (ACS)?
- apns http2 api not returning status 410 after uninstalling app
- PHP Apple Enhanced Push Notification read error response
- Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7
- didReceiveRemoteNotification: fetchCompletionHandler: open from icon vs push notification
- How can I code sign an iOS .xarchive so a client can resign properly? (using push notifications)
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.
- What is Swift.AnyClass?
- How can I use switch statement to implement collectionView function in Swift?
- How to create a segue from UIViewController to a UISplitViewController
- How do you test functions and closures for equality?
- Generating custom thumbnail from ALAssetRepresentation
- Using an NSXMLParser to parse HTML
- Deinit method is never called – Swift playground
- Developer ID signed OS X app crashes on start with Code Signature Invalid
- Can downloaded images/files be added to my app bundle?
- How to resume audio after interruption in Swift?
- iOS/Objective-C equivalent of Android's AsyncTask
- Xcode 4.5 character not show in console box , with scanf() in C language
- NSTableView Row Height based on NSStrings
- ApnsPHP: Push notifications working in development but not in production
- Swift – How can I make an image full screen when clicked and then original size when clicked again?