-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement iOS 13 updates #78
Comments
In order to send VOIP push notifications we need to set |
I've tried adding that on Request.php but it also needs to be set $this->headers[self::HEADERS_APNS_TOPIC] == bundleId."voip" When I'm doing the auth I know I'm sending that header but I can't retrieve it from Request.php (I don't know how, I've tried multiple stuff).. so what I did waws, a sort of a hack, sending a customValue (from my app) on the payload, and updating Request.php with the following code
But I know this is not ideal, and we might just recover that value (appBundleId) from the headers and then we might add a validation I would like to work in a patch, but I'm trying to understand the codebase and why that header is "lost" after the authentication :/ |
But can we check if if ($notification->getPayload()->isContentAvailable()) {
$this->headers[self::HEADER_APNS_PUSH_TYPE] = 'background';
} elseif (isset($this->headers[self::HEADER_APNS_TOPIC]))
$this->headers[self::HEADER_APNS_PUSH_TYPE] = 'voip';
} |
@edamov I'll try this today and I'll let you know if it works. Thanks! |
Hmm I think I misunderstood you, how come I can have $ |
Seems now I understand what do you mean 😃 |
Ok I will create the PR with this code, although I will create a branch with the modifications I need to make it work on my project, then after when everything is upstream I'll point to that branch. Thanks! |
I made a PR: #91 that will solve the voip part. |
Thanks! |
I tried to send voip push notifications, but apparently this package doesn't automatically add a
|
Apparently, we can close this issue along with this one #97 |
https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/
https://aws.amazon.com/blogs/messaging-and-targeting/sending-push-notifications-to-ios-13-devices-with-amazon-sns/
The text was updated successfully, but these errors were encountered: