Latest | 1.0.0 |
---|---|
Homepage | https://github.com/paradiseduo/YSDPush |
License | MIT |
Platforms | ios 8.0, requires ARC |
Dependencies | JPush |
Authors |
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
YSDPhoto is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'YSDPush', :git => 'https://github.com/paradiseduo/YSDPush.git'
Author
Youssef, [email protected]
License
YSDPush is available under the MIT license. See the LICENSE file for more info.
在极光推送的基础上,将所有的iOS的推送回调改成block的形式。
iOS10的推送回调包括了四个Block,分别是dealLocalPushBackground、dealLocalPushForeground、dealRemotePushForeground、dealRemotePushBackground。
iOS7、8、9的推送回调有两个,handleRemoteNotification、handleLocalNotification。
另外增加了获取系统版本的接口,getiOSVersion,返回一个int型的系统版本(7、8、9、10),因为系统的版本接口返回的是一个x.x.x的字符串,我将字符串用.分割成数据,取第一个元素。
Latest podspec
{ "name": "YSDPush", "version": "1.0.0", "summary": "Block your Push with JPush", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/paradiseduo/YSDPush", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "ParadiseDuo": "[email protected]" }, "source": { "git": "https://github.com/paradiseduo/YSDPush.git", "tag": "1.0.0" }, "platforms": { "ios": "8.0" }, "source_files": "YSDPush/Classes/**/*", "xcconfig": { "VALID_ARCHS": "arm64 x86_64" }, "requires_arc": true, "dependencies": { "JPush": [] } }
Fri, 17 May 2019 10:42:04 +0000