mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-03-01 03:12:50 +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
|
在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{
|
||||||
|
@ -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)
|
||||||
|
@ -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" />
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user