Push Notifications with ionic cloud

Hello,

I just upload my app to the app store and play store, the push notifications are working fine in android but in ios doesn’t work, i tested the push in develop when i run my app from xCode and everything was fine, but now when i download the app from the store the notifications doesn’t work, and i don’t know why.

i use apps.ionic.io to send the push and ionic/cloud-angular@0.0.12.

The code in my app.ts is this:

 var push= new Push({
      pluginConfig: {
        android: {
      senderID: "xxxxxxxxxxx"
        },
        ios: {
      alert: "true",
      badge: false,
      sound: "true"
    }
      }
      })

    push.register((token) => {
    push.saveToken(token);
  });

Thanks!

Hmm, this could be a few things. First thing that comes to mind is to check the push certificate. Make sure it’s signed using the production version and not the development certificate.

Thanks for your reply but yeah, i double check the certificate, but it’s de production one and everything seems normal, i have been investigating about it and i’m not the only one with this problem but nobody could resolve this.

I guess i have to change the service instead of use apps.ionic.io

With Angular 2 Integration for Ionic Cloud version 0.4.0

I get the following error with the above config in Push.

var push = new Push({
    pluginConfig: {
        android: {
            senderID: "xxxxxxxxxxx"
        },
        ios: {
            alert: "true",
            badge: false,
            sound: "true"
        }
    }
})

error

[ts] 
Argument of type '{ pluginConfig: { android: { senderID: string; }; ios: { alert: string; badge: boolean; sound: st...' is not assignable to parameter of type 'PushDependencies'.
  Object literal may only specify known properties, and 'pluginConfig' does not exist in type 'PushDependencies'.

Does anyone have the config structure for 0.4.0 please?

Try this one. http://docs.ionic.io/services/push/#cloud-configuration