From fb691ed5fbe0122efa1b8eda05c40f2f1272b1b0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 11 Dec 2015 02:06:50 -0600 Subject: rebuild --- StoneIsland/www/js/lib/etc/push.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/etc/push.js') 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 -- cgit v1.2.3-70-g09d2