Hi, I can not figure out the format for specifying expire_after_seconds in options. I always get: Invalid json format on options parameter: 745: unexpected token at '{expire_after_seconds: "86400"}'.
In the docs it says: "use options={'expire_after_seconds':86400}" but I need to use a ":"-sign and not a "="-sign and the rest does not work either. And what is a datatype hash which I should use?
var payload='{badge : "+1",alert:"'+text+'"}'; var options='{expire_after_seconds: "86400"}'; ACS.PushNotifications.notify({ channel: 'game', to_ids: ids, payload : payload, session_id: server_session_id, options:options, }, function (e) { if (e.success) { console.log('Success'); } else { console.log('Error:\n' + ((e.error && e.message) || JSON.stringify(e))); } });