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