Meteor-Community-Packages / Meteor-Community-Packages/raix-push
After upgrading to Meteor 1.3: "Uncaught ReferenceError: device is not defined"
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
My app was fully functional both on web and mobile until I recently updated Meteor to 1.3. Using Raix:Push on Android (still haven't checked on iOS) I now get the following error (when inspecting using chrome console):
> Uncaught ReferenceError: device is not defined
> getService @ raix_push.js?hash=0b6c95c149d51b91caebc60381825e159cb2a77a:63
> (anonymous function) @ raix_push.js?hash=0b6c95c149d51b91caebc60381825e159cb2a77a:167
> PushNotification.emit @ push.js:145
> success @ push.js:36
> cordova.callbackFromNative @ cordova.js:293
> processMessage @ cordova.js:1081
> processMessages @ cordova.js:1104
> pollOnce @ cordova.js:973
> pollOnceFromOnlineEvent @ cordova.js:960
I'm using angular-meteor - which means I'm using pbastowski:angular-meteor-babel... Not sure why but I think this might be related.
I'm continuing to explore this - but any help would be very appreciated.
Contributor guide
Research direction
Start with the Android stack trace in raix_push.js at getService, then inspect the related calls in push.js and the Cordova callback path. Reproduce the error after upgrading to Meteor 1.3; the issue is done when Android push handling no longer raises “device is not defined.”
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100