# APNS never triggers registrationSucceeded callback.

**URL:** <https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549>\
**Category:** General\
**Created:** [July 11, 2017, 1:10pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549 "2017-07-11T13:10:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_McMillan](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Michael\_McMillan](https://forums.fusetools.com/u/Michael_McMillan)\
**Post date:** [July 11, 2017, 1:10pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/1 "2017-07-11T13:10:48Z")

</div>

Hi, I’m struggling with push notifications on iOS (iPhone). I’ve followed the documentation (thoroughly) multiple times, yet to no avail.

None of the callbacks listed in the [documentation](https://www.fusetools.com/docs/fuse/pushnotifications/push) (`registrationSucceeded`, `error` nor `receivedMessage`) gets triggered, even after I’ve granted access to send push notifications from my application.

A minimal example is attached. I have also included screenshots of various Apple Developer settings.

_[Download minimal example (ZIP)](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/H9VzRtmkLbkE-image-1499778600923.zip)_

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/6vMyza7507zC-image-1499778505406.07.36.png)  
 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/q3vqARJpRukd-image-1499778505403.07.28.png)  
 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/QcOzzU2XY9yY-image-1499778505407.07.52.png)  
 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/G1WBPIyOsbLM-image-1499778569252.08.52.png)

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [July 11, 2017, 2:41pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/2 "2017-07-11T14:41:33Z")

</div>

Hi Michael, sorry to hear about the issue. Nothing looks wrong in your project. I will run through the process here to see if anything has changed that I have missed. I should have an update (or at least more questions) early tomorrow.

Thanks for reporting this!

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [July 12, 2017, 9:13am UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/3 "2017-07-12T09:13:42Z")

</div>

And I’m back, sadly without good data. I tested your app on a 5s running v9.0.1 and a 6+ running 9.3.2 and in both cases I got a registration token immediately.

Could you post which model of iPhone & OS version you are using?

Also (just in case) your XCode version, macOS version & the command you used to build would be useful too.

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_McMillan](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Michael\_McMillan](https://forums.fusetools.com/u/Michael_McMillan)\
**Post date:** [July 13, 2017, 8:24am UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/4 "2017-07-13T08:24:07Z")

</div>

That is strange. These are my specs:

- macOs Sierra 10.12.5
- iPhone 5, iPhone 6
- iOS: 10.0.2
- Fuse version 1.0.3 (build 13739)
- Xcode version 8.3.3

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [July 13, 2017, 9:43am UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/5 "2017-07-13T09:43:51Z")

</div>

Thanks, I’ll grab an iOS 10 device and see if that is related.

Also this is unrelated but you may want to consider using our community push notification projects:

- [APNS](https://github.com/fuse-compound/Fuse.APNS)
- [Firebase](https://github.com/fuse-compound/Fuse.Firebase)

I doubt this will have any effect on this issue but the advantage of using them is that I can get fixes out to you without having to wait for the usual fuse release cycle. They downisde of course is having to clone the repo.

The reason for the split is two-fold.

- Firebase is capable of providing push notifcations for both Android & iOS (but not when app is closed on iOS)
- GCM is deprecated and google are advising everyone to move to Firebase for push.

Those two projects are designed so they can be used together. See [here for an example](https://github.com/fuse-compound/FuseExample_Using_APNS_and_Firebase_Together)

Hopefully we’ll have more data in an hour or two.  
Cheers

---

<div class="post-metadata">

**Author:** ![Michael\_McMillan](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@Michael\_McMillan](https://forums.fusetools.com/u/Michael_McMillan)\
**Post date:** [July 13, 2017, 9:48am UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/6 "2017-07-13T09:48:45Z")

</div>

Thanks Chris! If you are up for it, I could walk you through the different certificates/provisioning profiles I have used. I actually suspect that the problem lies somewhere therein.

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [July 24, 2018, 3:12pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/7 "2018-07-24T15:12:28Z")

</div>

Hello! I’m having the same problem. Did you Michael solve this?

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [July 24, 2018, 6:30pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/8 "2018-07-24T18:30:34Z")

</div>

Switching to distribution version fixed this, but is it normal that registrationSucceeded etc don’t work with development versions on iOS?

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [July 25, 2018, 2:21pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/9 "2018-07-25T14:21:57Z")

</div>

Did you turn on your push notifications capabilities for your xcode project?

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [July 25, 2018, 6:18pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/10 "2018-07-25T18:18:28Z")

</div>

Yes I did. Everything was the same except changing from development to distribution.

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [July 29, 2018, 6:14pm UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/11 "2018-07-29T18:14:30Z")

</div>

Strange, I got the same setup, tested with iPhone 5, 6 & SE, only other thing I could think of, is the DevelopmentTeam config variable. Were you able to send with NWPusher? I first got it sending with that, then got it working in the project:

> **[noodlewerk/NWPusher](https://github.com/noodlewerk/NWPusher)**
>
> OS X and iOS application and framework to play with the Apple Push Notification service (APNs) - noodlewerk/NWPusher

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [July 30, 2018, 7:07am UTC](https://forums.fusetools.com/t/apns-never-triggers-registrationsucceeded-callback/6549/12 "2018-07-30T07:07:07Z")

</div>

One thing could be a development team mix-up, but I don’t have an opportunity to debug it at this moment. I’m pushing APNS and FCM through PHP scripts and it works fine in distribution. I’ll doublecheck the development team next time creating a version. Thanks!
