Skip to content

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。

License

Notifications You must be signed in to change notification settings

viewv/jpush-flutter-plugin

This branch is 2 commits ahead of, 76 commits behind jpush/jpush-flutter-plugin:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 27, 2019
9b1feb2 · May 27, 2019

History

53 Commits
Dec 28, 2018
Dec 18, 2018
May 27, 2019
Jan 29, 2019
Dec 18, 2018
Oct 8, 2018
Sep 7, 2018
Dec 28, 2018
Jan 29, 2019
Sep 7, 2018
Jan 29, 2019
Oct 8, 2018
Jan 29, 2019

Repository files navigation

QQ Group

JPush Flutter Plugin

安装

在工程 pubspec.yaml 中加入 dependencies

dependencies:
  jpush_flutter: 0.0.11

配置

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 来初始化插件,才能保证其他功能正常工作。

参考

About

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 38.4%
  • Objective-C 31.1%
  • Java 29.3%
  • Ruby 1.2%