简体   繁体   English

我们可以以及如何将Urbanairship用于iOS应用企业分发版?

[英]Can we and how to use Urbanairship for iOS app Enterprise Distribution?

I'm using Urbanairship for push notification in iOS development. 我在iOS开发中使用Urbanairship进行推送通知。 So far it worked perfect during development using their development mode. 到目前为止,使用他们的开发模式在开发过程中效果完美。

However, when I created the application using their production mode, it never worked. 但是,当我使用他们的生产模式创建应用程序时,它永远无法工作。 When I changed to development mode without any other change to my code but the keys used by the ship , it would work. 当我更改为开发模式时,对代码进行了任何其他更改,但船上使用的键没有改变,它将可以正常工作。 The airship can not send the test push notification through their web portal using the production mode, either. 飞艇也无法使用生产模式通过其Web门户发送测试推送通知。

I suspect it's because we're using the apple enterprise distribution programme (in house distribution). 我怀疑这是因为我们正在使用Apple企业分发程序(内部分发)。

It's solved by ensuring the app is running in production mode instead of development mode. 通过确保应用程序在生产模式而不是开发模式下运行来解决。

I re-did the following and it's ok now. 我重新做了以下事情,现在可以了。 1) apply a new push notification certificate for production in Apple developer portal. 1)在Apple开发人员门户中为生产应用新的推送通知证书。 2) create a new production app in urbanairship and upload the certificate to UrbanAirship 3) using the new keys got in steps 2) 4) ensure the app is running in production mode. 2)在urbanairship中创建一个新的生产应用程序,并将证书上传到UrbanAirship 3)使用步骤2)中获得的新密钥将其上传到UrbanAirship 3)4)确保该应用程序在生产模式下运行。 For me, I edit the scheme in XCODE,change the build configuration from debug to release for the Run command. 对我来说,我在XCODE中编辑方案,将构建配置从debug更改为Run命令的发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM