简体   繁体   English

worklight推送通知在IOS沙盒模式下不起作用

[英]worklight Push Notification not working in IOS Sandbox mode

For Android Push notificaion working fine. 对于Android Push通知正常运行。 But for IOS device after creating sanbox certificte and all process, eventhough the push notification not working. 但是,对于iOS设备,在创建sanbox证书和所有过程之后,即使推送通知不起作用。 Even it's not connecting with server too. 即使它也没有与服务器连接。

Whenever loading for IOS, I am getting this error below: 每当为IOS加载时,我都会在下面收到此错误:

FWLSE0048E: Unhandled exception caught: SRVE0190E: File not found

Error image: http://i.stack.imgur.com/MYq27.jpg 错误图片: http //i.stack.imgur.com/MYq27.jpg

That's a strange error... 那是一个奇怪的错误...

Make sure that you have: 确保您具有:

  1. Placed the .p12 certificate in the application folder 将.p12证书放在应用程序文件夹中
  2. Used the correct name for the certificate: "apns-certificate-sandbox.p12" (for development) or "apns-certificate-production.p12" (for production) 为证书使用了正确的名称:“ apns-certificate-sandbox.p12”(用于开发)或“ apns-certificate-production.p12”(用于生产)
  3. Used the correct password in the pushSender element 在pushSender元素中使用了正确的密码

After logging-in to the application, you should get an alert stating that you are able to subscribe. 登录到应用程序后,您将收到一条警告,指出您可以订阅。

To make sure you have properly setup your iOS development environment (App ID, certificate, provisioning, etc...) follow this guide: Understanding and setting up artifacts required to use iOS devices and Apple Push Notifications services (APNS) in development environment . 为了确保您正确设置了iOS开发环境(应用程序ID,证书,配置等),请遵循以下指南: 了解和设置在开发环境中使用iOS设备和Apple Push Notifications服务(APNS)所需的工件

Make sure that you build the application (Run As > Run on Worklight Development Server) to ensure that the certificate gets deployed to the server. 确保构建应用程序(“运行方式”>“在Worklight Development Server上运行”)以确保证书已部署到服务器。

This could be because of couple of reasons, but most common is if provisioning profile was created before APNS certificate. 这可能是由于几个原因,但最常见的是是否在APNS证书之前创建了配置文件。 You need to re-generate provisioning profile after creating APNS, login to your account on XCode and refresh provisioning profiles. 创建APNS后,您需要重新生成配置文件,在XCode上登录到您的帐户并刷新配置文件。

Also read following: 另请阅读以下内容:

How to fix “no valid 'aps-environment' entitlement string found for application 如何解决“找不到适用于应用程序的有效'aps-environment'授权字符串”

Cheers !! 干杯!

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

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