mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 14:32:51 +08:00
add ducoment about with JPushPlugin.h
This commit is contained in:
parent
a197975d03
commit
2797bdd0e7
@ -46,7 +46,13 @@
|
||||
|
||||
在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{
|
||||
|
@ -40,7 +40,7 @@
|
||||
var onReceiveNotification = function(event){
|
||||
try{
|
||||
var alert = event.aps.alert;
|
||||
console.log("JPushPlugin:onReceiveNotification key aps.alert:"+aps);
|
||||
console.log("JPushPlugin:onReceiveNotification key aps.alert:"+alert);
|
||||
}
|
||||
catch(exeption){
|
||||
console.log(exception)
|
||||
|
@ -29,7 +29,7 @@
|
||||
<source-file src="src/ios/Plugins/JPushPlugin.m"/>
|
||||
|
||||
<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" />
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
// Created by JPush on 12-8-15.
|
||||
// Copyright (c) 2012年 HXHG. All rights reserved.
|
||||
// Version: 1.8.1
|
||||
// Version: 1.8.2
|
||||
|
||||
@class CLRegion;
|
||||
@class UILocalNotification;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user