Vote count:
0
My Push Notification is working on development mode but not in adhoc.
Step 1: Download the certificate.
However where should i download the aps_production.cer from
Option 1. developer account > Certificates > Production > My App > Download > aps_production.cer or Option 2. Identifier > App IDs > My App > Edit > Push Notification > Production SSL Certificate > Download > aps_production.cer
Step 2: Double click the aps_production.cer, it will added to keychain. From keychains > my certificates > choose my certificates > right click and export 2 items as p12 file.
Step 3: Replacing the ApnsService certFile in server and change to withProductionDestination like below. Source reference from http://ift.tt/GGGKzi
ApnsService service =
APNS.newService()
.withCert(application.getResourceAsStream(certFile), certPass)
.withProductionDestination()
.build();
I have created the adhoc ipa file from xcode and install it with Itune. I guess i has successful register push notification with apple cause i'm able to receive a different token.
Step 4 : Then from server i replace the token before push like below:
service.push("d62e914491f6164d16fec8792b8167e7a9f542bc542dcf82e6ade9c8952c7dba", payload);
Then i send a push notification from my server. However i didn't receive any notification on my device.
Please help. I has been struggling with this for a while. It working fine on development but not in adhoc.
IOS Push Notification Not Working on AdHoc
Aucun commentaire:
Enregistrer un commentaire