/web-sdk

PushBots web notifications for Chrome and firefox.

Primary LanguageHTML

Instructions

  1. Open index.html, update your pushbots application Id and domain URL:
//PushBots ApplicationId (required)PB.app_id = "";
//Your domain name, must be HTTPS or localhost  (required)
PB.domain = "https://www.";
  1. Open pushbots-push-manifest.json, update your google Project number in gcmsenderid field.

  2. open pushbots-worker.js and add your pushbots application Id.


To set alias or tags for your users:

PB.q.push(["tag", ['test', "test3"]]);
PB.q.push(["alias", "username"]);
PB.q.push(["untag", ['test', "test3"]]);