Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpush/jmessage-flutter-plugin
JMessage's Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
https://github.com/jpush/jmessage-flutter-plugin
android flutter ios jmessage
Last synced: 21 days ago
JSON representation
JMessage's Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
- Host: GitHub
- URL: https://github.com/jpush/jmessage-flutter-plugin
- Owner: jpush
- License: mit
- Created: 2018-12-17T06:18:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T09:04:39.000Z (over 2 years ago)
- Last Synced: 2024-12-12T21:22:40.706Z (28 days ago)
- Topics: android, flutter, ios, jmessage
- Language: Java
- Homepage: https://docs.jiguang.cn
- Size: 354 KB
- Stars: 166
- Watchers: 22
- Forks: 60
- Open Issues: 59
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![QQ Group](https://img.shields.io/badge/QQ%20Group-862401307-red.svg)]()
[![pub package](https://img.shields.io/pub/v/jmessage_flutter.svg)](https://pub.flutter-io.cn/packages/jmessage_flutter)# jmessage_flutter
### 安装
在工程 pubspec.yaml 中加入 dependencies
```
//github 集成
dependencies:
jmessage_flutter:
git:
url: git://github.com/jpush/jmessage-flutter-plugin.git
ref: master//pub.dev 集成
dependencies:
jmessage_flutter: 2.2.1
```### 配置
在 `/android/app/build.gradle` 中添加下列代码:
```gradle
android {
......
defaultConfig {
applicationId "com.xxx.xxx" //JPush上注册的包名.
......ndk {
//选择要添加的对应cpu类型的.so库。
abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a'
// 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
}manifestPlaceholders = [
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "你的appkey", //JPush上注册的包名对应的appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
]
......
}
......
}
```### 使用
```dart
import 'package:jmessage_flutter/jmessage_flutter.dart';
```### APIs
**注意** : 需要先调用 `JmessageFlutter().init` 来初始化插件,才能保证其它功能正常工作。
[参考](/documents/APIs.md)