2 Replies
      Latest reply on Jul 17, 2019 8:01 PM by PBK
      kalgik Level 1 Level 1 (0 points)

        Dear all,

         

        My iOS application is registered for receiving push notifications from a server. My AppDelegate.m inherits the

        UNUserNotificationCenterDelegate

        and it uses the

        didRegisterForRemoteNotificationsWithDeviceToken 

        method.

         

        In the server side, I used the Java-APN library (https://github.com/CleverTap/apns-http2). By this library, the server is able to send push notifications to the iOS devices.

         

        I tested the application in many iPhone devices with iOS version 11.6 to 12.2. The push notifications are sent properly to the iOS devices before I upload the application to Apple Store.

         

        After the application was successfully reviewed and it was available on Apple Store, I downloaded and run it on iOS devices. Unfortunately, the application does not receive any push notification. I checked this issue by sending push notification manually using the device token was created, after the application was downloaded from Apple Store. I got “BadDeviceToken” although it seems ok to me the device token in the aspects of its string size.

         

        Meanwhile, if I connect any iOS device to my Mac and run the application from Xcode, then the application receives properly the push notifications from the server. The generated device token is valid.

         

        Do you have any idea why the push notification is not received by the application when it is downloaded from the Apple Store?

         

        Regards,