Have you tried push certification certification? ? Houston on GitHub is often used to test certificates. Basically, if clicking does not work with a third party, you will need to recreate your certificates.
Using Houston in Cli:
apn push "<5e8f5cc0 be283f88 cc4ebb7d b6091499 80f51631 5ebf4928 b59a2a62 198d20d0>" -c -out "apple_push_notification.pem" -m "Hello from the command line!"
* Houston says: * We recommend that you upload development, production, and any special certificates. The layer will automatically determine which certificate to use.
Other potential causes:
You can also check if the application is working by doing didFailToRegisterForRemoteNotificationsWithError . If you look at the error, you must find out why you do not see the click.
Obj-C Error Check Example :
- (void) application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { NSLog(@"PUSH ERROR: %@", error); }
Example of quick error checking :
func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError!) { print("PUSH ERROR: \(error)") }
A potential Xcode / Certificate issue causes:
- Profile profiles are not updated. Information about the device is stored in certificates, so each time you add a new device to your profile, you will need to re-create the profile and certificates.
- Make sure your Xcode project settings indicate the correct certificate profile and Provisioning.
- Inside the Keychain Access application, make sure you export the key AND certificate.
source share