add ducoment about with JPushPlugin.h

This commit is contained in:
zhangqinghe 2015-03-10 17:38:14 +08:00
parent a197975d03
commit 2797bdd0e7
5 changed files with 10 additions and 4 deletions

View File

@ -46,7 +46,13 @@
在APP_KEY和CHANNLE字段 分别添加您的appkey和channle 在APP_KEY和CHANNLE字段 分别添加您的appkey和channle
3. 添加监听系统事件,相应地调用 JPush SDK 提供的 API 来实现功能 3. 在AppDelegate.m中包含头文件
#import "APService.h"
#import "JPushPlugin.h"
4. 在AppDelegate.m文件中调用 JPush SDK 提供的 API 来实现功能
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{

View File

@ -40,7 +40,7 @@
var onReceiveNotification = function(event){ var onReceiveNotification = function(event){
try{ try{
var alert = event.aps.alert; var alert = event.aps.alert;
console.log("JPushPlugin:onReceiveNotification key aps.alert:"+aps); console.log("JPushPlugin:onReceiveNotification key aps.alert:"+alert);
} }
catch(exeption){ catch(exeption){
console.log(exception) console.log(exception)

View File

@ -29,7 +29,7 @@
<source-file src="src/ios/Plugins/JPushPlugin.m"/> <source-file src="src/ios/Plugins/JPushPlugin.m"/>
<header-file src="src/ios/lib/APService.h" /> <header-file src="src/ios/lib/APService.h" />
<source-file src="src/ios/lib/libPushSDK.a" framework="true" /> <source-file src="src/ios/lib/libPushSDK-1.8.2.a" framework="true" />
<resource-file src="src/ios/PushConfig.plist" /> <resource-file src="src/ios/PushConfig.plist" />

View File

@ -4,7 +4,7 @@
// //
// Created by JPush on 12-8-15. // Created by JPush on 12-8-15.
// Copyright (c) 2012年 HXHG. All rights reserved. // Copyright (c) 2012年 HXHG. All rights reserved.
// Version: 1.8.1 // Version: 1.8.2
@class CLRegion; @class CLRegion;
@class UILocalNotification; @class UILocalNotification;