Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

GCM notifications sending suddenly stoped working

$
0
0

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:

ErrorError 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.js02.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



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>