Projetos
Ver no GitHub
jpush/jpush-flutter-plugin
Sobre
Plugin Flutter oficialmente compatível com o JPush (Android e iOS). Plugin Flutter oficialmente compatível com o JPush (Android e iOS).
Desenvolvimento web e de aplicativosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- -1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalJPush Flutter Plugin
flutter 2.0 请切换至 dev-2.x 分支。
安装
在工程 pubspec.yaml 中加入 dependencies
//github 集成
dependencies:
jpush_flutter:
git:
url: git://github.com/jpush/jpush-flutter-plugin.git
ref: master
// pub 集成
dependencies:
jpush_flutter: 2.1.4
配置
Android:
在 /android/app/build.gradle 中添加下列代码:
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", //暂时填写默认值即可.
]
}
}
iOS:
- 在 xcode8 之后需要点开推送选项: TARGETS -> Capabilities -> Push Notification 设为 on 状态
使用
import 'package:jpush_flutter/jpush_flutter.dart';
APIs
注意 : 需要先调用 JPush.setup 来初始化插件,才能保证其他功能正常工作。
Explore projetos relacionados
Carregando…