简体   繁体   English

推送通知临时和Worklight开发

[英]Push notifications adhoc and development for Worklight

Does Worklight support usage of two push certificates for the same project ? Worklight是否支持对同一项目使用两个推送证书?

I need to test my project in both developement and production mode, so I need to put two .p12 files. 我需要在开发和生产模式下都测试我的项目,因此需要放置两个.p12文件。

Worklight docs say that we need to name the certificate "apns-certificate-sandbox.p12", and put it on a specific folder, but what if I want to use non sandbox certificate too? Worklight文档说,我们需要将证书命名为“ apns-certificate-sandbox.p12”,并将其放在特定的文件夹中,但是如果我也想使用非沙盒证书怎么办?

You cannot place the two certificates in the project. 您不能将两个证书放在项目中。 When testing for development, place the development certificate and when testing for production replace the certificate with the production certificate. 在进行开发测试时,放置开发证书,在进行生产测试时,请用生产证书替换该证书。

For development use: apns-certificate-sandbox.p12 供开发使用:apns-certificate-sandbox.p12

For production use: apns-certificate-production.12 供生产使用:apns-certificate-production.12

Worklight will detect this and choose the correct APNS servers to use. Worklight将检测到此情况并选择要使用的正确APNS服务器。

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

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