1

I've looked at both this link and this other link, amongst many other similar questions and followed all of the steps; now my question is, what are other things that I can try to ensure that it isn't on my end? The back end developer i'm working with is adamant that everything is correct on his end. I've remade the certificates several times & sent him the respective .p12 files... I'm at a loss for what other things I can try.

prior to iOS 10, this used to be called when I registered, however it does not do that any longer. Is this only for iOS 9?

application(_ application: UIApplication, didRegister notificationSettings: UIUserNotificationSettings
Community
  • 1
  • 1
Jay
  • 2,591
  • 1
  • 16
  • 28
  • Push notifications are notoriously flaky. However, are you using the [registration callback](https://developer.apple.com/reference/uikit/uiapplicationdelegate/1622958-application)? – Pedro Castilho Apr 18 '17 at 18:10
  • The [failure callback](https://developer.apple.com/reference/uikit/uiapplicationdelegate/1622962-application) might also give you clues. – Pedro Castilho Apr 18 '17 at 18:12
  • @PedroCastilho unfortunately i have that set up and it isn't getting called either. – Jay Apr 18 '17 at 18:16
  • Ran into a similar issue when using Firebase notifications as well. – Meshach Apr 18 '17 at 21:47
  • @Meshach were you able to resolve the problem? if so, how did you accomplish it? – Jay Apr 19 '17 at 03:09

1 Answers1

0

Try sending notification using this website using your p12/pem and UUID.

// For device token use this
func application( _ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken
        deviceToken: Data ) {

        let tokenString = deviceToken.map{ String(format: "%02X", $0) }.joined()
        print("Device Token:", tokenString)
}

Also, this link is really helpful. This would help you to find the bug if issue is from backend side or yours.

Community
  • 1
  • 1
Bhuvan Bhatt
  • 3,276
  • 2
  • 18
  • 23
  • that website isn't even encrypted .... and the second link you sent me I mentioned in my question. – Jay Apr 18 '17 at 22:06
  • @Jay Yeah that link is same and it worked for me, as an alternative you can also use this application https://itunes.apple.com/us/app/apn-tester-free/id626590577?mt=12 – Bhuvan Bhatt Apr 20 '17 at 10:49