https://github.com/jpush/jverify-flutter-plugin
JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
https://github.com/jpush/jverify-flutter-plugin
Last synced: 9 months ago
JSON representation
JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
- Host: GitHub
- URL: https://github.com/jpush/jverify-flutter-plugin
- Owner: jpush
- License: mit
- Created: 2019-04-19T07:38:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T06:33:15.000Z (10 months ago)
- Last Synced: 2025-03-28T14:09:28.513Z (10 months ago)
- Language: Objective-C
- Homepage: https://docs.jiguang.cn
- Size: 34.4 MB
- Stars: 121
- Watchers: 19
- Forks: 64
- Open Issues: 58
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[]()
# JVerify Flutter Plugin
### 安装
在工程 pubspec.yaml 中加入 dependencies
+ github 集成
```
dependencies:
jverify:
git:
url: git://github.com/jpush/jverify-flutter-plugin.git
ref: master
```
+ pub 集成
```
dependencies:
jverify: 2.1.2
```
### 配置
##### Android:
在 `/android/app/build.gradle` 中添加下列代码:
```groovy
android: {
....
defaultConfig {
applicationId "替换成自己应用 ID"
...
ndk {
//选择要添加的对应 cpu 类型的 .so 库。
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a',
}
manifestPlaceholders = [
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "appkey", // NOTE: JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
]
}
}
```
### 使用
```dart
import 'package:jverify/jverify.dart';
```
### APIs
**注意** : 需要先调用 Jverify.setup 来初始化插件,才能保证其他功能正常工作。
[参考](./documents/APIs.md)