Chat reply Notification did not appear

Hi guys, so I have already create APN certificates for my sandbox environment, and test in sandbox app environment.

And then I have configure my code:

    func application(_ application: UIApplication,
                     didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
        print("APNs token retrieved: \(deviceToken)")
        Messaging.messaging().apnsToken = deviceToken
        let deviceTokenString = deviceToken.map { String(format: "%02x", $0) }.joined()
        Task.init(operation:  {
            do {
                let success = try await AmityUIKitManager.client.registerDeviceForPushNotification(withDeviceToken: deviceTokenString)
                print("Register Device Amity for Notif: SUCCEED? \(success)")
            } catch {
                // An error occurred while trying to register the device for push notifications
            }
        })
    }

Any suggestion?

@AnonymousS May I confirm your iOS version used for this? Or if you’re using a different platform let us know, thank you

The iOS version I used for test is iOS 16.2, I use real device to test

1 Like

@AnonymousS
does every other notification works fine?

Let us investigate. Thank you

other notifications just work fine

Thanks