Don't receive push notifications on iOS with Cordova SDK

Hello guys! We've got a problem with receiving iOS push notifications(We work with Cordova SDK). We set APN Auth key and after that we initialize device, receive registration id from APN, but still can't' receive notifications on device.

Commands we used:

Countly.init("https://us-try.count.ly","our_app_key");
Countly.initMessaging({"messageMode": Countly.messagingMode.PRODUCTION, "projectId": "gcm_id"})
Countly.start();
var push = PushNotification.init({
    android: {
        senderID: "gcm_id"
    },
    ios: {
        alert: "true",
        badge: "true",
        sound: "true"
    }
});
push.on('registration', function(data) {
    Countly.onRegistrationId({
        "registrationId": data.registrationId,
        "mode": Countly.messagingMode.PRODUCTION,
        "projectId": "gcm_id"
    })

   console.log(data.registrationId) // here we get registrationId
});

On dashboard we have something like this

Could you help with it?

0

Comments

6 comments

Please sign in to leave a comment.