commit | aa6f1f6bfcec70fbe3539c3ee7cbd15e7a405a4b | [log] [tgz] |
---|---|---|
author | qiaowei <jov123@163.com> | 周三 8月 07 10:26:16 2019 +0800 |
committer | qiaowei <jov123@163.com> | 周三 8月 07 10:26:16 2019 +0800 |
tree | 29fec0c78aaacf200d876c14ab8f641723436c88 | |
parent | 04771b0a0544284aa06bbf6227ae60a4659bab4c [diff] |
添加极光推送插件
diff --git a/www/js/index.js b/www/js/index.js index 112a927..fe23a8d 100644 --- a/www/js/index.js +++ b/www/js/index.js
@@ -22,6 +22,9 @@ // Application Constructor initialize: function() { document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); + document.addEventListener('jpush.receiveRegistrationId', function (event) { + console.log(event.registrationId) + }, false) }, onDeviceReady: function() {