问题
I am trying to send push notitfication to ios using worklight. But while sending it, IDE shows invalid token id error in logs.
I am trying this by signing my app using sandbox certificate.
Please help.
I am successfully send notification to android.
回答1:
Can you add the actual full error from the Xcode console and Worklight Server?
Meanwhile, make sure everything is set-up correctly. The Developer Certificate, the PNS certificate, the App ID, provisioning profile, ... You can follow this guide.
Also consult with the Push Notifications training module (slide #44) and make sure all required ports are open and that you are able to ping the APNS servers.
来源:https://stackoverflow.com/questions/21349029/invalid-token-error-while-sending-push-notification