We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd26512 commit 7c9cf79Copy full SHA for 7c9cf79
components/InputComponent.js
@@ -159,7 +159,7 @@ class InputComponent extends React.Component {
159
// If `content-available` equals 1 and `aps` dictionary doesn't contain any other keys, the notification is silent.
160
// `apns-push-type` must be set to `background` for iOS 13+.
161
const aps = json["aps"]
162
- if (aps["content-available"] === 1) {
+ if (aps && aps["content-available"] === 1) {
163
let size = 0, key
164
for (key in aps) {
165
size++
0 commit comments