I have javascript job scheduled in mobile service. Important part is:
var n = require('azure').createNotificationHubService('SECRET', 'Endpoint=sb://SECRET.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=SECRETSECRETSECRET=').gcm.send; var b={data:{Msg:"xXx"}, registration_id:['aaaaa']}; //fills b object with Msg and registration_id(s)... n(null,b,function(e,r) { //handling... } );
just yesterday it worked fine, but now I got an error:
Error | Error in script '/scheduler/process.js'. TypeError: Cannot call method '_sendNotification' of undefined [external code] at q.success.q.success (</scheduler/process.js>:23:21) [external code] | /scheduler/process.js | 02.08.2014 18:23:02 |
for me it looks like something changed inside 'azure' module, but it's highly unlikely such breaking changes suddenly happened