Meteor-Community-Packages / Meteor-Community-Packages/raix-push
Push, GUIDE: The "Push.appCollection" is empty
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
I looked at all the relevant issues and it seems all of them don't apply to me.
I know that the certificates are working fine because I am using [NWPusher](https://github.com/noodlewerk/NWPusher) to test, and the push notifications seem to work.
It is just that when I do `Push.send(..)` I get the above error.
I started my server like this:
`meteor run ios-device --mobile-server localhost:3000`
and mobile config is set correctly. Is there anything that I am missing?
I was able to print the token by listening to `token` event, but it seems `reportTokenToServer` is just not called properly or for some other reason the token doesn't get registered.
Also, one weird thing is the app doesn't ask for push permissions when I first open it after a fresh install.
Contributor guide
Research direction
Start at the Push.send(..) entry point and trace the token event through reportTokenToServer and Push.appCollection. Reproduce the issue with the stated meteor run ios-device configuration, checking token registration and the missing permission prompt; done means the collection is populated and push sending works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100