简体   繁体   中英

IBM Worklight - Push notification error when trying to build and deploy the app

We are getting the below error while running the sample code for push notification in iOS:

[2013-08-16 15:02:50] FWLST1044W: An APNS certificate exists, but the push sender element was not found in the application descriptor. Push notifications will not be enabled

Our APNS certificate name used: apns-certificate-sandbox.p12
Our application-descriptor.xml - iPhone element:

<iphone bundleId="com.companyname.abc.cde" version="1.0">
       <worklightSettings include="true"/>
       <pushSender password="***@push"/>
       <security>
           <encryptWebResources enabled="false"/>
           <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
       </security>
</iphone>

edit application-descriptor.xml of you application and make sure that or environments has a element. See slide 47 of http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/09_04_Push_notifications.pdf

I had the same issue. If you have iPhone and iPad environment you need to put the certificate.p12 on environment folder. It's worked for me.

iPhone环境

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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