Closed kushal211 closed 4 years ago
I'm seeing this issue too. It's because Quickblox have added the apns-push-type
header to the APNS request but Apple are rejecting it for some reason (even though, according to Apple's docs, it should be working).
Surprised to see QB haven't reverted this change though already - was it tested before it was pushed to production?
Apple's documentation currently states that apns-push-type
is required for delivering to all devices running iOS 13 and is silently ignore for < iOS 12, however it appears that Apple is NOT currently enforcing this. See https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
I have tried non-VoIP notifications today with both the push type missing AND included and they both get delivered successfully to iOS 13 devices.
However the QB VoIP notifications are failing stating that apns-push-type
of alert
is not allowed (so I'm wondering if apns-push-type
is not permissable specifically on VoIP notifications or VoIP push notifications need to use a third, undocumented, type of apns-push-type
other than alert
and background
)
I have tried in both iOS 12.4 and iOS 13 (Xcode 10.3 and Xcode 11), The non-VoIP notifications are working without any problem in both iOS versions, but the VoIP push is not working at all.
An interesting fact is that their sample project (sample-videochat-webrtc-swift) is not even able to work for VoIP push notification.
Apparently I've tried with another third-party platform Pusher for VoIP push and luckily it worked with the VoIP Push certificate.
Urgently looking for a solution on this.
@kushal211 you tried a VoIP push with NWPusher with the apns-push-type
key added? Every time I've tried sending it locally with that key in the header, it fails.
@dansinclair25 , I've tried without apns-push-type
to NWPusher and it worked for iOS 12.4. But to test this I've to select specific VoIP Certificate and not the Universal (Sandbox & Production & VoIP) SSL certificate.
@kushal211 Pusher doesn't appear to be sending the apns-push-type
at all yet, I'm in contact, separately, with their support team about supporting this
@Rich2k , Agree with you, doesn't seems like they are sending. And appreciate your support. 😃👍🏼 Please update here if you get any further update.
PS. Here's the NWPusher SS I tried with. It delievered the VoIP push on both iOS 12 and 13.
Hi @Rich2k , Did you find any solution/workaround for this push issue?
Hello @Rich2k @kushal211 @dansinclair25
Thank you for contacting QuickBlox support.
Even you try sending push from the admin panel and it is showing as a failed. =>>Make sure that you have chosen the right environment. Its “Testing” for the debug build and “Live” for the release build.
Hello @kushal211
The status of the ticket changed to "Closed", because you haven't provided me with an answer. You can reopen this ticket, if you would like to continue the discussion of the reported issue.
New Issue Checklist
Environment details
Did this work before? Yes, It was working before, but all of sudden it is stops working.
Expected behavior I tried to send push notification from the admin dashboard but it is failed each time. The user is subscribed to the VoIP push successfully and it is showing in the list as well.
When VoIP push is sent from the admin panel, it should send the push to the subscribed devices without any error.
Actual behavior The push should be delivered.
Logs here is the error log for the push notification I downloaded from admin panel: You can find the log from the attachment as well. 30660269_log.txt
Please use the following template for logs:
To enable full logs use the following code:
Title for logs
```logos // Your logs here ```Steps to reproduce the behavior Just try to run the sample project sample-videochat-webrtc-swift and check if they receive the Push or not. I've tried with following the Quickblox SDK version - 2.17.1, 2.17.4 with Xcode 10.3 and Xcode 11 GM Seed 1.
Any others comments I have also tried creating the certificate again and uploading them to the admin panel with and without a password. But it does not make any difference. Please note that the Normal Push notification is working fine but the only VoIP push is not working.