IONIC 2 IOS Push Notifications

Dear Ionic members!
I am reaching you out as I am looking for help with regards to Push Notifications.
My push notifications are perfectly working on Android Device.( already in google store).
But they are not working on IOS device which I am testing on TestFlight. I see that the App stores device token to my database but It is not receiving the push notifications.

Specifications:
IONIC 2
GCM
phonegap-plugin-push

I am looking to get some help!

The code:
initializeApp() {
this.platform.ready().then(() => {

      StatusBar.styleDefault();
      console.log('Pushing');
      var push = Push.init({
        android: {
          senderID: "SENDER_ID"
        },
        ios: {
          alert: "true",
          badge: "true",
          sound: "true"
        },
        windows: {}
      });
      console.log('Pushing Done');
      push.on('registration', (data) => {   
        this.storeToken(data.registrationId); 
      });
      push.on('notification', (data) => { 
        this.nav.push(SingleBlogPage,{
          'blogID' : 17
        }); 
      });
      push.on('error', (e) => {
        console.log(e);
      });
    });
  }

+1

Same problem. All works fine in Android. But I can’t send and receive notification on IOS.
(I have created all necessary apple certifications).

I followed this guide. http://docs.ionic.io/services/profiles/#ios-push-certificate

I develop in windows environment, and I build my ipa on cloud package service.

I resolved this problem using APNS.( Apple push notification services.) I created distribution certificate and transformed it to .p12 format and afterwards to .pem format so my background service - nodejs with apn plugin would work. Now I am able to receive all notifications and it works perfectly. Just look for nodejs apn and you would succeed.

1 Like

Hey, will you please share the code. I have been trying this for months in ionic 3 and could not get the notifications on IOS devices. I tried both admin FCM and node apn as backend. any help will be much appreciated.
thanks.