mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
fix log
This commit is contained in:
parent
386d1282e9
commit
e6819f54e2
@ -17,10 +17,11 @@
|
||||
cordova plugin add https://github.com/jpush/jpush-phonegap-plugin.git
|
||||
|
||||
|
||||
2. 修改AndroidManifest.xml文件中的appkey
|
||||
2. 修改[your project]/plugins/cn.jpush.phonegap.JPushPlugin/plugin.xml的appkey
|
||||
|
||||
<meta-data android:name="JPUSH_APPKEY" android:value="your appkey in JPush Portal" />
|
||||
|
||||
3. 执行 cordova build android 命令
|
||||
|
||||
###IOS使用PhoneGap/Cordova CLI自动安装
|
||||
|
||||
@ -31,6 +32,7 @@
|
||||
|
||||
2. 修改Resources/PushConfig.plist文件
|
||||
|
||||
|
||||
在APP_KEY和CHANNLE字段 分别添加您的appkey和channle
|
||||
|
||||
3. 添加监听系统事件,相应地调用 JPush SDK 提供的 API 来实现功能
|
||||
|
@ -11,7 +11,7 @@
|
||||
<script type="text/javascript" src="cordova.js"></script>
|
||||
<script type="text/javascript">
|
||||
var onDeviceReady = function(){
|
||||
console.log("Device ready!")
|
||||
console.log("JPushPlugin:Device ready!")
|
||||
initiateUI();
|
||||
}
|
||||
var onTagsWithAlias = function(event){
|
||||
@ -28,7 +28,7 @@
|
||||
}
|
||||
var onGetRegistradionID = function(data) {
|
||||
try{
|
||||
console.log("index.registrationID:"+data)
|
||||
console.log("JPushPlugin:registrationID is "+data)
|
||||
|
||||
$("#registrationid").html(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user