Don't receive push notifications on iOS with Cordova SDK


#1

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?


#2

Ok, I will make a video tutorial to demonstrate push implementation with SDK js.

Thanks


#3

Please create an issue to better handle this request.

Thanks


#4

Ok, I will create an issue in Cordova SDK github!
Thanks!


#5

@trinisofttechnologie Here is the issue https://github.com/Countly/countly-sdk-js/issues/28


#6

@trinisofttechnologie Hello!

When could we get this tutorial?


#7

@panderium

Please look at this link

--https://drive.google.com/open?id=1xJnuWUw5DCY_KEVVQIb2oHNV7BhclK62

and the issue that was created.

A tutorial is provided to walk through push notification.

Thanks