Giter Site home page Giter Site logo

fl_jpush_android's Introduction

fl_jpush_android

JPush integrated vendor push channel

如需集成极光推送厂商通道请安装次插件

具体查看极光原生文档

  • 此插件仅添加原生sdk依赖和配置 AndroidManifest.xml 以及 consumer-rules.pro 混淆规则,其他配置信息需自行配置
  • 此插件未集成 FCM SDk,fl_jpush_android_fcm 需要添加的请查看极光文档

集成 oppo 配置

复制 example/android/heytap_msp_push 目录至 ${your project}/android/ 目录下,并在 ${your project}/android/settings.gradle 中添加 include ':heytap_msp_push'

集成 honor 配置

复制 example/android/hi_push 目录至 ${your project}/android/ 目录下,并在 ${your project}/android/settings.gradle 中添加 include ':hi_push'

  • 不要修改目录和aar名字

添加以下内容至 android/app/build.gradle

android {
    defaultConfig {
        ...
        manifestPlaceholders = [
                JPUSH_PKGNAME : applicationId,
                JPUSH_APPKEY  : '',

                JPUSH_CHANNEL : 'developer-default',
                // 下面是多厂商配置,如需要开通使用请联系技术支持
                // 如果不需要使用,预留空字段即可
                MEIZU_APPKEY  : "MZ-",
                MEIZU_APPID   : "MZ-",
                XIAOMI_APPID  : "MI-",
                XIAOMI_APPKEY : "MI-",
                OPPO_APPKEY   : "OP-",
                OPPO_APPID    : "OP-",
                OPPO_APPSECRET: "OP-",
                VIVO_APPKEY   : "",
                VIVO_APPID    : "",
                HUAWEI_APPID  : "配置文件里的appid",
                HUAWEI_CPID   : "配置文件里的cp_id",
                HONOR_APPID   : "Honor平台注册的APP ID"
        ]
        ...
    }
}
  • 常见问题

    • 如直接通过Android studio 拷贝 oppo和 honor 集成的aar ,会自动添加 package ***.heytap_msp_pushpackage ***.hi_push,要移除 这行,保证 build.gradle 中只有 configurations.maybeCreate("default")artifacts.add("default", file('**.aar')),具体参考 example中的android目录
  • 更新日志

    • 2.3.0 更新厂商sdk 4.8.1
      • 需重新复制aar至项目目录下 具体参考 [集成 oppo 配置] 和 [集成 honor 配置]
    • 1.0.0 更新厂商sdk 4.6.4

fl_jpush_android's People

Contributors

wayaer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.