This commit is contained in:
zhangqinghe 2014-07-10 18:09:06 +08:00
parent 386d1282e9
commit e6819f54e2
2 changed files with 5 additions and 3 deletions

View File

@ -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 来实现功能

View File

@ -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);
}