Meteor Cordova: Raix Push notifications

Git Issue #198 I am trying to implement I feel like I am nearly their that I just have a bit more to fix.

When I make a test call I get an error, as per below but I can trace down the code to find it.

This is coming from the newbie manual

I am surprised that meteor hasn’t put anything into these high level components for mobile.

Exception while invoking method ‘serverNotification’ ReferenceError: result is not defined
at [object Object].Meteor.methods.serverNotification (server/pushMethods.js:22:30)
at maybeAuditArgumentChecks (livedata_server.js:1698:12)
at livedata_server.js:708:19
at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at livedata_server.js:706:40
at [object Object].
.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at livedata_server.js:704:46
at tryCallTwo (/mnt/app/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5)
at doResolve (/mnt/app/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13)
at new Promise (/mnt/app/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:65:3)

I could really use some help, anyone have any ideas?

I removed the HistoryId from both server notification and user notification methods, the messages are now writing and trying to sent out, but I am getting a new error.

Push: Send message “test” via query {}

Exception in setInterval callback: ReferenceError: EJSON is not defined
at EventEmitter.self.sendAPN (packages/raix_push/packages/raix_push.js:311:1)
at packages/raix_push/packages/raix_push.js:481:1
at [object Object]._.extend.forEach (packages/mongo/mongo_driver.js:1022:1)
at [object Object].Cursor.(anonymous function) [as forEach] (packages/mongo/mongo_driver.js:869:1)
at querySend (packages/raix_push/packages/raix_push.js:474:1)
at EventEmitter.self.serverSend (packages/raix_push/packages/raix_push.js:580:1)
at packages/raix_push/packages/raix_push.js:659:1
at [object Object].
.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at packages/meteor/timers.js:6:1
at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)

meteor add ejson - maybe this works

this resolved it, I didnt see anywhere where dependencies were required.