Search categories, packages and repositories

GitHub repositoryjpush/jpush-flutter-plugin

jpush-flutter-plugin

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

jpush-flutter-plugin project cover
Stars
863
Forks
357
Last push (UTC)
Sep 15, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

QQ Group

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

参考

极光开发者 GitHub avatar
GitHub author

极光开发者 ↗

JiGuang's official open source endpoint. 极光开发者服务官方开源站。包括:极光推送(JPush)、极光IM(JMessage)、极光短信(JSMS)、极光统计(JAnalytics)等相关开源项目。

Shenzhen, ChinaOfficial website ↗
LanguagesObjective-CDartJavaRubyShell

Categories

Packages published by this repository

Dependencies used

Dependency list 4 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗