头图

Push service is a very important service in App applications, especially for App developers, there is no way to directly and instantly reach the target user group than message push. According to relevant data, the user stickiness and activity of the app can be significantly improved through the push service.

This issue of Jiguang Notes will explain to you how to use the push function on the APICloud development platform.

The jpushVip module encapsulates the SDK of the Jiguang push platform. Using this module, the function of receiving push notifications and transparent message transmission can be realized. Similar to the push function of the APICloud platform, both support online push, but if you want to support offline push, you need to integrate the Jiguang vendor channel.

Instructions on the basic process of using Jiguang push

01
Register an account on the Jiguang Push website ( https://www.jiguang.cn ), create an application, and obtain the APP_KEY; the application package name fills in the package name of the APICloud development platform.

02
Configure meta-data in config.xml, fill in JPUSH_APPKEY and JPUSH_CHANNEL parameters, JPUSH_APPKEY is obtained from application information.

03
If the Aurora vendor channel is integrated, configure meta-data in config.xml, and push information on Xiaomi platform, Meizu platform, oppo platform, vivo platform, and Huawei platform. The application methods for each platform are as follows:

Manufacturer channel related parameter application tutorial:

https://go48pg.yuque.com/docs/share/5cc561e9-b103-47a3-93c5-e91a0e4b2402?#

The manufacturer integration setting interface is as follows:

04

The front end calls the jpushVip module method to initialize and monitor push messages.

Before using this module, you need to configure the config file, the method is as follows "MI-" "MZ-" "appid=" and other prefixes cannot be omitted.

//极光配置
    <meta-data name="JPUSH_CHANNEL" value="渠道号"/>
     <meta-data name="JPUSH_APPKEY" value="通过极光推送网站获得appkey" />
// <!—xiaomi start-->
     <meta-data name="XIAOMI_APPKEY" value="MI-您的应用对应的小米的APPKEY" />
     <meta-data name="XIAOMI_APPID"  value="MI-您的应用对应的小米的APPID" />
      // <!—xiaomi end -->
      // <!--  meizu start -->
     <meta-data name="MEIZU_APPKEY" value="MZ-您的应用对应的魅族的APPKEY" />
     <meta-data name="MEIZU_APPID" value="MZ-您的应用对应的魅族的APPID" />
      //  <!--  meizhu end -->
      //  <!-- oppo start -->
     <meta-data name="OPPO_APPKEY" value="OP-您的应用对应的OPPO的APPKEY" />
     <meta-data name="OPPO_APPID" value="OP-您的应用对应的OPPO的APPID" />
     <meta-data name="OPPO_APPSECRET" value="OP-您的应用对应的OPPO的APPSECRET" />
      //  <!-- oppo end -->
      // <!--    vivo start -->
     <meta-data name="com.vivo.push.api_key" value="您的应用对应的VIVO的APPKEY" />
     <meta-data name="com.vivo.push.app_id" value="您的应用对应的VIVO的APPID" />
      // <!-- vivo end -->
      // <!--  huawei start -->
     <meta-data name="com.huawei.hms.client.appid"
         value="appid=您的应用对应华为的appID"></meta-data>
      //  <!--  huawei end  -->
      // <!--  iOS start -->
     <feature name="jpushVip">
        <param name="app_key" value="123456789" />
        <param name="channel" value="your channel" />
     </feature>
      //  <!--  iOS end  -->

Jiguang background operation interface is as follows:

When pushing, you can set the broadcast owner, device label, device alias, Registration ID and user group push.

The corresponding methods are also provided in the documentation of the module. For details, please refer to the official documentation of the APICloud development platform.

https://docs.apicloud.com/Client-API/Open-SDK/jpushVip

About APICloud

In 2021, after UFIDA integrates APICloud's mobile low-code development capabilities and mobile development ecology into UFIDA BIP, APICloud has a deep layout of the developer ecosystem and has been further integrated with UFIDA YonBuilder to become UFIDA YonBuilder's mobile low-code development platform, and aggregates massive Function modules, support a set of codes to generate Android/iOS apps and applets at the same time, and one-stop application development, release, and operation. At present, a developer ecosystem with more than 1 million registered users has been built, forming a solid ecological barrier and advanced agile development capabilities.

About Aurora

Aurora Mobile (NASDAQ: JG), founded in 2011, is a leading mobile developer service provider in China, focusing on providing developers with services such as stable and efficient message push, one-click authentication, and traffic monetization. , to help developers operate, grow and monetize. At the same time, Aurora's industry applications have been extended to market insight, financial risk control and business geographic services, helping all walks of life optimize decision-making and improve efficiency.


极光JIGUANG
1.3k 声望1.3k 粉丝

极光(www.jiguang.cn)是中国领先的移动大数据服务商。其团队核心成员来自腾讯、摩根士丹利、豆瓣、Teradata和中国移动等公司。公司自2011年成立以来专注于为app开发者提供稳定高效的消息推送、统计分析、即时通...