iOS Ad hoc
2016-05-11 18:58
351 查看
There's one situation in which you need an Ad Hoc profile, and that's when you want to test Push Notifications.
If you test Push Notifications on a Development Provisioning Profile, your push notifications need to be sent using the Development Push Notification Certificate for your SSL connections to Apple's sandbox APNS server.
If you want to test Push Notifications using your Production Push Notification Certificate and the live APNS servers, you'll have to deploy your app to a device using a Distribution Certificate and Ad Hoc Provisioning Profile (which includes doing the Entitlement.plist retardedness which you can ordinarily skip if you were only using Developer Provisioning Profiles).
Also note that when you deploy using an Ad Hoc profile, your device token will be different from the one you use when you're using the development profile. Also this the recommended way to test APN because there's no back end changes that need to be made between the Ad Hoc build and the final live deployment on the AppStore.
Development profiles are for debugging. Apple considers Ad Hoc to be a form of Distribution, so it is found under the Distribution tab.
If you test Push Notifications on a Development Provisioning Profile, your push notifications need to be sent using the Development Push Notification Certificate for your SSL connections to Apple's sandbox APNS server.
If you want to test Push Notifications using your Production Push Notification Certificate and the live APNS servers, you'll have to deploy your app to a device using a Distribution Certificate and Ad Hoc Provisioning Profile (which includes doing the Entitlement.plist retardedness which you can ordinarily skip if you were only using Developer Provisioning Profiles).
Also note that when you deploy using an Ad Hoc profile, your device token will be different from the one you use when you're using the development profile. Also this the recommended way to test APN because there's no back end changes that need to be made between the Ad Hoc build and the final live deployment on the AppStore.
Development profiles are for debugging. Apple considers Ad Hoc to be a form of Distribution, so it is found under the Distribution tab.
相关文章推荐
- iOS CoreLocation框架第一章—— CLLocationManager的使用(包含iOS6,iOS8,iOS9各种变动)
- ## iOS 中用了autolayout遮挡键盘的处理 ##
- iOS 多线程编程之NSOperation
- 那些年的IOS系统以及经典改革
- 【从零学习openCV】IOS7下的人脸检測cvload错误解决
- 又回来了~继续记录工作上的技术点
- 读取iOS设备的代理设置
- iOS 与H5交互
- iOS中plist,数据写入与读取
- iOS查看线程,打印线程的方法
- ios 图片加载的两种方式
- iOS开发之SVN使用教程总结
- 【转】iOS_autoLayout_Masonry
- IOS开发 隐藏电池栏 (电池状态栏)
- iOS开发之常用的加密方法
- 【转】ios 半透明模糊效果的实现
- 【转】IOS NSTimer 定时器用法总结
- iOS 播放音频的几种方法
- IOS开发 NSTimer 定时器用法总结
- 3D touch 初学