Skip to content
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

Fix voip push #32

Merged
merged 1 commit into from
Jan 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion components/InputComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ class InputComponent extends React.Component {
// `apns-push-type` must be set to `background` for iOS 13+.
// `category` key is an exeption to the rule
const aps = json["aps"]
if (aps && aps["content-available"] === 1) {
if (input.bundleId.endsWith(".voip")) {
notification.pushType = "voip"
} else if (aps && aps["content-available"] === 1) {
const maxKeysNumber = aps.hasOwnProperty("category") ? 2 : 1

let size = 0, key
Expand Down