entaq / GoogleAppsScript

Sample code for Google Apps Script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScriptDB is Deprecating now !

LOG-TAG opened this issue · comments

ScriptDB is deprecating now all my Google App Script Back for spreadsheet gone for a toss !

it's really unfortunate that regIds returning empty arrays for regIds and making 401 error for for sending payload to Google GCM Server!. (but in client android code shows registration successful ) !!!but really surprised that old project it's working fine.

var db = ScriptDb.getMyDb();
function getDb(){
return db;
}
function sendGCM(msg){
msg = msg || 'hello world!'; //give default message for debugging
var regIds = [];
var result = db.query({});
while (result.hasNext()) {
var current = result.next();
regIds.push(current.regId);
}

Logger.log(regIds); //displaying empty regIds. but in client android code shows registration successful !!!