IOS push feature is not available to Devicetoken after packaging

Source: Internet
Author: User

The company project was built with IONIC3, using the Aurora push plug-in (Cordova-plugin-jpush). All kinds of bundle IDs, push certificates, etc. are bound to be tested when developing. But to the testers to hit the Ad-hoc bag when found a problem, incredibly get not To the Apple push server Devicetoken. Then recheck the Apple Developer Center Certificate, AppID, profile; Check the project capabilities whether to choose the push function, and so on, there is no error. Finally found that the original ionic generated entitlements file is not injected into the APS field, modified to make it, the following some details to do the graphic description, but also on their own day of investigation records.1. Generally speaking, the development of the environment so that the code is basically no problem. My side error is not get to divecetoken. So I started to suspect that there was a problem with the certificate permissions configuration. There is no problem when you look at it. Push notification is the enabled green light. The description file is also Consistent with2. Suspected production environment capabilities no choice, but the view is also confirmed that the correct choice of tangent display normal 3. View Certificate configuration Xcode See the small question mark next to the release certificate in general (I am xcode9)found with the above development certificate is not the same, no entitlements in the aps-environment and so on, This entitlements should be generated automatically after the capabilities selection succeeds. But not here. I was quite puzzled at the time. It's a normal explanation.4. If you know where there is a problem, go directly to the. entitlements file. Normal works will be added directly to the project. I built this ionic, so I found it in the first half. Later in build setting code signing Find the path in entitlementssure enough the release file is actually empty ...  Then you create a aps-environment key under root, and the production environment value is production. As5. It's normal to go back to general.6. When the package is complete, if there is aps-environment to add success, the installation test finally worked.The first post, the shortcomings please Haihan, a lot of advice.

IOS push feature is not available to Devicetoken after packaging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.