I'm doing an Ionic project with Notifications functionality and it works for Android but with iOS, I am having a lot of problems. I read and did all the steps in the Ionic guide to implementing Push Notifications: https://docs.ionic.io/services/push/
In summary: I create Cloud Notification Client for my app, and I added ionic cloud like this:
npm install@ionic/cloud --save
and add the files to my index.html I define the Promise installing:
npm install bluebird --save
And I configurated my app:
angular.module('starter', ['ionic', 'ionic.cloud', 'starter.controllers', 'starter.services'])
.config(function($ionicCloudProvider) {
$ionicCloudProvider.init({
"core": {
"app_id": "APP_ID"
}
});
})
Then to configure the Notifications to iOS I did the same that this guide: https://docs.ionic.io/services/profiles/#android-gcm-project--api-key
- Register app ID
- Device Registration
- Create signin Request with keychain.
- I created iOS App Certificate & Provisioning Profile
- Convert .cer in .p12
- I did the provisioning profile of my app
- I went to the Ionic Cloud Dashboard and updload the .p12 and .mobileprovision to my Profile
- Create the iOS push Certificate of my app
- And then I upload this certificate to the Ionic Cloud Dashboard.
Finally I did the set up in my app, and build and run in a real device, android and iOS. The problem is that in Android it works perfectly, but in iOS I save the token perfectly but nothing arrive when I send the notification from Ionic Cloud Dashboard.
Any help?
Thanks a million!