Meteor-Community-Packages / Meteor-Community-Packages/raix-push

TypeError: PushNotification.init is not a function.

Open
#151 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hi!

When using `raix:push@3.0.2` I get this error thrown on the client:

```
TypeError: PushNotification.init is not a function. (In 'PushNotification.init(o)', 'PushNotification.init' is undefined)
```

and the `token` event doesn't get called on iOS.

On Android it works perfectly.

When using `raix:push@2.6.12` the `token` event is called correctly on iOS and Android.

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start at the client-side PushNotification.init call and the token event path, comparing raix:push@3.0.2 with the working 2.6.12 behavior on iOS. Verify the change against the reported TypeError and confirm that the token event fires on iOS while Android continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.