entaq / GoogleAppsScript

Sample code for Google Apps Script.
262 stars 126 forks source link

ScriptDB is Deprecating now ! #5

Open LOG-TAG opened 9 years ago

LOG-TAG commented 9 years ago

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 !!!