的iOS企业开发人员账号:获取设备令牌 [英] iOS Enterprise developer Account: get device token

查看:505
本文介绍了的iOS企业开发人员账号:获取设备令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了iOS开发账户使用Objective C的样品code iOS中device.Then我可以使用该设备发送推送通知iOS设备的发展purpose.I可以得到令牌设备创建APNS的SSL证书令牌发送推送通知特定的iOS设备。

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.

现在我要实施MDM和MDM iOS的企业帐户required.There有一些问题,我想确认是否已经有人做了。

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我想知道我可以用iOS的企业帐户为发展宗旨打造APNS的SSL证书?

1.So I want to know can I use iOS Enterprise account for creating "apns ssl certificate" for development purpose?

2,可我用同样的目标C示例code,这样我可以通过APNS发送推送通知到特定的iOS设备用于测试目的获取设备令牌的iOS设备。

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.

请帮我。

推荐答案

所有MDM推送通知的实施首先是比第三方iPhone应用程序推送通知不同。

First of all MDM push notification implementation is different than push notification for third party iOS application.

1),你必须使用iOS的企业占MDM推送通知,有几个步骤来获得APNS证书。
1.Refer <一个href=\"https://media.blackhat.com/bh-us-11/Schuetz/BH_US_11_Schuetz_InsideAppleMDM_WP.pdf\">MDM_Protocol并按照此链接:<一个href=\"http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning\">http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning然后,确认一些事情。

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.

使用此命令从customerPrivateKey.pem删除密码

remove the passphrase from customerPrivateKey.pem using this command

openssl rsa -in customerPrivateKey.pem -out PlainKey.pem

然后从门户 https://identity.apple.com/pushcert/下载合并您APNS证书(例如CustomerCompanyName.pem) 使用此命令

cat CustomerCompanyName.pem PlainKey.pem > PlainCert.pem

现在这个PlainCert.pem文件可以在你的服务器APNS / MDM证书使用。

Now this PlainCert.pem file can be used in your server as APNS/MDM certificate.

2)在MDM推送通知有三个键

2)In MDM push notification there are three keys

•PushMagic - 一个独特的令牌MDM服务器与每个推送请求发送

• PushMagic - a unique token the MDM server sends with each push request

•令牌 - 一个独特的标记标识了设备的APNS服务

• Token - a unique token that identifies the device to the APNS service

•UnlockToken - 用于清除设备上的通code托管键

• UnlockToken - an escrow key used to clear the passcode on the device.

MDM推送通知的有效载荷也比推送通知payload.It不同应该是这样的:

MDM push notification payload is also different than push notification payload.It should look like this:

{APS:{},MDM:PushMagic}

{"aps":{},"mdm":PushMagic}

这篇关于的iOS企业开发人员账号:获取设备令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆