springBoot+mui开发app集成个推

本文介绍如何在SpringBoot项目中使用个推SDK进行APP消息推送。首先在pom.xml添加个推依赖,然后创建类进行单个用户推送消息的逻辑,包括设置通知标题、内容、图标等,并通过目标CID发送推送。同时,在前端接收消息并跳转到详情页面。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

后台

1.pom文件引入

<repositories>

      <repository>

        <id>getui-nexus</id>

        <url>http://mvn.gt.igexin.com/nexus/content/repositories/releases/</url>

      </repository> 

</repositories>

 

 

<dependency>

        <groupId>com.gexin.platform</groupId>

        <artifactId>gexin-rp-sdk-http</artifactId>

        <version>4.0.1.17</version>

</dependency>

 

/**

 * 对单个用户推送消息

 *

 * @author ShuoYuan

 *

 */

public class PushtoSingle {

   // 目前先这么写之后添加到配置文件中

   private static String appId = "";

   private static String appKey = "";

   private static String masterSecret = "";

   static String host = "http://sdk.open.api.igexin.com/apiex.htm";

 

   public static void pushToapp(AppNotify param) {

      System.out.println("App push start");

      IGtPush push = new IGtPush(hostappKeym

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值