diff options
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 |
