# Ionic Push not working from ionic.io using iOS production profile

**URL:** <https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448>\
**Category:** ionic-v1\
**Created:** [July 1, 2016, 8:58pm UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448 "2016-07-01T20:58:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aetchegoyen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aetchegoyen/32/71196_2.png) [@aetchegoyen](https://forum.ionicframework.com/u/aetchegoyen)\
**Post date:** [July 1, 2016, 8:58pm UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/1 "2016-07-01T20:58:50Z")

</div>

Hi, I’m trying to get Push Notifications to work from [ionic.io](http://ionic.io) using the Production profile.

As for now, I’ve already:

- Created both Development and Distribution certs from scratch from Apple Developer Portal
- Reloaded the certs in my machine using Xcode (and fixing signing issues from xcode)
- Exported the .p12 certs and uploaded them to [ionic.io](http://ionic.io) platform
- Set my app push config to production mode (just in case) and dev\_push = false.
- Built using --release from terminal
- Built using Xcode and selecting Release build in build options

And I’ve tried:

- Sending push with APNS-Tool using the production certs **and it works**.
- Sending push from [ionic.io](http://ionic.io) using production profile and **it doesn’t work**.
- Sending push using [ionic.io](http://ionic.io) API using production profile and **it doesn’t work**.
- Sending push using [ionic.io](http://ionic.io) and [ionic.io](http://ionic.io) API using development profile **and it works.**

I’m going crazy with this and starting to think it’s a [ionic.io](http://ionic.io) platform issue, as it works using APNS-Tool.

Can anyone give me a hand?  
Thanks

---

<div class="post-metadata">

**Author:** ![onderceylan](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/onderceylan/32/114383_2.png) [@onderceylan](https://forum.ionicframework.com/u/onderceylan)\
**Post date:** [July 3, 2016, 11:09pm UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/2 "2016-07-03T23:09:52Z")

</div>

Hey Alejandro,

I had the same problem as you. You should test it with Ad Hoc installation, which behaves same like it’s on App Store. You should create Ad Hoc Provisioning Profile on Apple Developer Center with specifying the devices you would like to distribute your app for.

Cheers,  
Onder

---

<div class="post-metadata">

**Author:** ![aetchegoyen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aetchegoyen/32/71196_2.png) [@aetchegoyen](https://forum.ionicframework.com/u/aetchegoyen)\
**Post date:** [August 12, 2016, 2:29am UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/3 "2016-08-12T02:29:22Z")

</div>

Just in case this is happening to anyone else, these are the steps I followed in order to get my app working.

- Create an Apple Distribution certificate in your Apple Developer Account.
- Download and install it to in your computer.
- On Xcode:
- Go To Product -\> Scheme -\> Edit Scheme
  - In “Run” and “Archive” choose “Release” as “Build Configuration”

- Next to the Run button choose “Generic Device”
- Then go to Build Settings, and in “Code Signing Identity” select:
  - Debug -\> iOS Developer
    - Any iOS SDK -\> iPhone Developer: “Your name and Apple Developer ID”

  - Release -\> IOS Developer
    - Any iOS SDK -\> iPhone Distribution: “Your name and Apple Developer ID”)

- On your project:
- Make sure you have [ionic.io](http://ionic.io) well configured and that your tokens are being registered
- In [ionic.io](http://ionic.io):
- Make sure you load your iPhone Distribution in your distribution profile.
- Make sure you are using your distribution profile while sending push.
- Uninstall the app from your phone
- Open terminal in your ionic project path and run: ionic build ios --release
- In Finder go to platforms-\>ios and open your xcode project again.
- Choose your phone as target and press RUN
- Everything should be working as expected and you should receive push notifications!

---

<div class="post-metadata">

**Author:** ![temitope](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/temitope/32/102438_2.png) [@temitope](https://forum.ionicframework.com/u/temitope)\
**Post date:** [August 16, 2016, 1:41am UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/4 "2016-08-16T01:41:17Z")

</div>

THANK YOU!!! works with production api cert now. brilliant.

---

<div class="post-metadata">

**Author:** ![aetchegoyen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aetchegoyen/32/71196_2.png) [@aetchegoyen](https://forum.ionicframework.com/u/aetchegoyen)\
**Post date:** [August 16, 2016, 4:06pm UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/5 "2016-08-16T16:06:57Z")

</div>

Great! You’re welcome 🙂

---

<div class="post-metadata">

**Author:** ![ges](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ges/32/103163_2.png) [@ges](https://forum.ionicframework.com/u/ges)\
**Post date:** [December 8, 2016, 3:23pm UTC](https://forum.ionicframework.com/t/ionic-push-not-working-from-ionic-io-using-ios-production-profile/56448/6 "2016-12-08T15:23:01Z")

</div>

> [@aetchegoyen](#):
>
> In [ionic.io](http://ionic.io):  
> Make sure you load your iPhone Distribution in your distribution profile.  
> Make sure you are using your distribution profile while sending push.

When you say, make sure you are using your distribution profile while sending push.  
Does that mean you have to delete the dev profile or do something from the terminal ?  
I can’t get the push to work on the TestFlight app before sending it to review.
