本文介绍了推送通知的应用程序的我出口.ipa文件通过iTunes的不是X code编译[发展]安装时没有对设备发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用OneSignal用于推送通知服务。

I used OneSignal for push notification service.

(发展)我设置推送通知服务的提供个人资料我的应用程序

(Development) I set Provision Profile of push notification service for my app

当我从X code运行,一切正常每个设备上。

When I run from Xcode,everything works fine on every device.

但是,当我与调试计划创建归档(的.ipa),并通过iTunes安装,设备似乎连接到OneSignal推送通知service.But,不能从连接到OneSignal我们的后端服务接收通知。

But,when I create archive(.ipa) with Debug Scheme and install via iTunes,the device seem to connect to OneSignal Push Notification service.But,can't receive notification from our backend service that was connected to OneSignal.

所以,我觉得有一个与APNS问题

So,I think there is a problem with APNS

与任何帮助吗?难道我做错了什么。

Any help with that?Did I do something wrong.

如果有,请指导我吗?如何测试与归档(的.ipa)的iOS开发配置的推送通知?

If there was,please guide me?how to test push notification of iOS Development profile with archive (.ipa)?

推荐答案

之所以通知没来时,我安装与用X code归档管理器创建了,它没有把我的自定义的.ipa生成的默认配置文件提供利用X code测试在其上不包括APNS设备。

The reason why notification didn't come in when I install with my custom .ipa that was create by Xcode archive manager was,it did set default provision profile generated by Xcode for testing on Devices which wasn't include for APNS.

因此​​,为了使之通过iTunes的不是X code编译使用的.ipa文件安装测试开发APNS工作时,你需要使用由您的测试APNS为iOS开发创建您的自定义配置文件提供(不分配APNS)。

So,in order to make it work when testing development APNS using .ipa files installation via iTunes instead of Xcode build,you need to use your custom provision profile that was created by yours for testing APNS for iOS Development(Not Distribution APNS).

1.Go为产品> 计划> 修改方案归档标签设置为调试

1.Go to Product>Scheme>Edit Scheme and set the Archive Tab to Debug

2.然后连接到您的设备,并点按产品> 归档

2.Then connect to your device and tap Product>Archive

3.Then你的X code将创建存档文件,你可以像这样的图片上传或导出为.ipa.Do

3.Then your Xcode will create Archive for your file that you can upload or export as .ipa.Do like these picture

选择

,然后它会问你哪些规定配置文件,你要使用,选择像我下面,如果ü在构建设置自定义配置文件规定设置

然后,随着出口的.ipa所有兼容devices.And然后像你通过安装通过iTunes是从的.ipa X code运行就可以收到通知

Then export as .ipa for all compatible devices.And then you can receive notifications like you run from Xcode by installing that .ipa via iTunes

快乐测试!

这篇关于推送通知的应用程序的我出口.ipa文件通过iTunes的不是X code编译[发展]安装时没有对设备发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 03:57