diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-11 02:06:50 -0600 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-11 02:06:50 -0600 |
| commit | fb691ed5fbe0122efa1b8eda05c40f2f1272b1b0 (patch) | |
| tree | f6c9da3ed67b1c9fe1576e3d9febaf8bd2587ced /StoneIsland/www/js/lib/etc/push.js | |
| parent | 20739f5f572e043aec1a4b25de63231c4c176ffe (diff) | |
rebuild
Diffstat (limited to 'StoneIsland/www/js/lib/etc/push.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/etc/push.js | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/etc/push.js b/StoneIsland/www/js/lib/etc/push.js index ab0c0141..0db5c1a2 100755 --- a/StoneIsland/www/js/lib/etc/push.js +++ b/StoneIsland/www/js/lib/etc/push.js @@ -1 +1,24 @@ -//
\ No newline at end of file +var push = (function(){ + var appId + var clientKey + var push = {} + push.init = function(){ + parsePlugin.initialize(appId, clientKey, push.subscribe, push.error) + } + push.subscribe = function() { + parsePlugin.subscribe('SampleChannel', push.did_subscribe, push.error) + } + push.did_subscribe = function(){ + // parsePlugin.getInstallationId(function(id) { + // var install_data = { + // installation_id: id, + // channels: ['SampleChannel'] + // } + // }, push.error) + } + push.error = function(e){ + console.log("push error") + } + + return push +})()
\ No newline at end of file |
