All Projects → MOBX → mobpush-api-java-client

MOBX / mobpush-api-java-client

Licence: other
MobPush 服务端集成SDK for Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to mobpush-api-java-client

browser-push
Complete workout and guidelines to add web push notifications support for your webapp without third-party notification provider
Stars: ✭ 67 (+378.57%)
Mutual labels:  push-notifications, push-api
spontit-api-python-wrapper
Send functional, flexible push notifications to iOS, Android, and desktop devices (without your own app or website).
Stars: ✭ 35 (+150%)
Mutual labels:  push-notifications, push-api
mobile-push
A push notification library
Stars: ✭ 21 (+50%)
Mutual labels:  push-notifications
ejabberd mod gcm
Google Cloud Messaging API for Ejabberd (PUSH Messages)
Stars: ✭ 27 (+92.86%)
Mutual labels:  push-notifications
GroundControl
Push notification service for Bitcoin wallets
Stars: ✭ 70 (+400%)
Mutual labels:  push-notifications
apns
Vapor APNS for iOS
Stars: ✭ 59 (+321.43%)
Mutual labels:  push-notifications
food-delivery-ios-app
A food delivery application built using Swift for iOS. The application uses Pushers notifications feature to send push notifications to mobile devices.
Stars: ✭ 36 (+157.14%)
Mutual labels:  push-notifications
react-native-template
An opinionated template to bootstrap your next React Native app with all the time-wasting packages you need to have.
Stars: ✭ 132 (+842.86%)
Mutual labels:  push-notifications
homebridge-http-rgb-push
Homebridge plugin to control a web/http-based RGB device.
Stars: ✭ 16 (+14.29%)
Mutual labels:  push-notifications
VaporGCM
A simple Android GCM/FCM library for Swift/Vapor
Stars: ✭ 25 (+78.57%)
Mutual labels:  push-notifications
react-native-android-notification-listener
React Native Android Notification Listener - Listen for status bar notifications from all applications
Stars: ✭ 87 (+521.43%)
Mutual labels:  push-notifications
FcmNotificationHandler
Android library that helps to construct and launch system tray notifications from FCM Notification messages received when the app is in foreground mimicking the default format and behavior applied when the app is background.
Stars: ✭ 18 (+28.57%)
Mutual labels:  push-notifications
claim-reporter-pwa-poc
Example PWA application with Angular 6 and backend with Node
Stars: ✭ 39 (+178.57%)
Mutual labels:  push-notifications
OneSignal-Ionic-Sample
No description or website provided.
Stars: ✭ 85 (+507.14%)
Mutual labels:  push-notifications
hms-push-serverdemo-java
Java sample code encapsulates APIs of the HUAWEI Push Kit server. It provides many sample programs for your reference or usage.
Stars: ✭ 39 (+178.57%)
Mutual labels:  push-notifications
node-onesignal
Node.js wrapper for the One Signal API
Stars: ✭ 33 (+135.71%)
Mutual labels:  push-notifications
mailrise
An SMTP gateway for Apprise notifications.
Stars: ✭ 352 (+2414.29%)
Mutual labels:  push-notifications
hms-push-serverdemo-php
PHP sample code encapsulates APIs of the HUAWEI Push Kit server.It provides many sample PHP programs about quick access to HUAWEI Push Kit for your reference or usage.
Stars: ✭ 21 (+50%)
Mutual labels:  push-notifications
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+214.29%)
Mutual labels:  push-notifications
pushnotification
Push notifications with Spring Boot and OneSignal
Stars: ✭ 25 (+78.57%)
Mutual labels:  push-notifications

MobPush API for Java

image

MobPush API for Java 为了帮助开发者更方便接入MobPush免费推送SDK,提供完整的API接口的java实现,包含设备操作相关接口、推送操作相关接口以及公共接口。

了解更多 MobPush 免费推送SDK.

优势

免费使用自定义UI稳定服务流程体验数据同步专业技术团队服务

接口

  • 推送接口
    • 发送推送
    • 查询推送(根据batchId)
    • 查询推送(根据workno)
  • 推送统计接口
    • 查询推送统计(根据batchId)
    • 查询推送统计(根据workno)
  • 别名操作接口
    • 查询别名
    • 设置别名
  • 标签操作接口
    • 查询标签
    • 设置标签
  • 公共接口
    • 地理位置信息接口

使用方式

  • maven集成方式

  • 源码编译

    主要需要依赖httpclient.jar 、fastjson.jar,日志相关包可以按需求使用

    下载项目代码后可根据具体项目按照如下方式使用:

  • 如果使用 Maven 构建项目,则需要在你的项目 pom.xml 里增加:

   	<dependency>
   		<groupId>org.apache.httpcomponents</groupId>
   		<artifactId>httpclient</artifactId>
   		<version>4.5.3</version>
   		<scope>compile</scope>
   	</dependency>

   	<dependency>
   		<groupId>org.slf4j</groupId>
   		<artifactId>slf4j-api</artifactId>
   		<version>1.7.7</version>
   	</dependency> 
   	<dependency>
   		<groupId>org.slf4j</groupId>
   		<artifactId>slf4j-log4j12</artifactId>
   		<version>1.7.7</version>
   	</dependency>
   	<dependency>
   		<groupId>log4j</groupId>
   		<artifactId>log4j</artifactId>
   		<version>1.2.17</version>
   	</dependency>

   	<dependency>
   		<groupId>com.alibaba</groupId>
   		<artifactId>fastjson</artifactId>
   		<version>1.2.31</version>
   	</dependency>
  • 如果不使用 Maven 构建项目,则项目 libs/ 目录下有依赖的 jar 可复制到你的项目里去。

使用注意事项

  • 初始化appkey、appSecret
   MobPushConfig.appkey = "moba6b6c6d6";
   MobPushConfig.appSecret = "";

以上是使用时设置的方式,还可以直接引用源码在mob.push.api.MobPushConfig设置

使用示例

发送推送示例片段代码

MobPushConfig.appkey = "moba6b6c6d6";
MobPushConfig.appSecret = "";
PushWork push = new PushWork(PlatEnum.all.getCode(),"test content" , PushTypeEnum.notify.getCode()) //初始化基础信息
				.buildTarget(TargetEnum._1.getCode(), null, null, null, null, null)  // 设置推送范围
				.buildAndroid("Android Title", AndroidNotifyStyleEnum.normal.getCode(), null, true, true, true) //定制android样式
				.bulidIos("ios Title", "ios Subtitle", null, 1, null, null, null, null) //定制ios设置
				.buildExtra(1, "{\"key1\":\"value\"}", 1) // 设置扩展信息
				;
		
PushClient client = new PushClient();
try {
    client.sendPush(push);
 catch (ApiException e) {
    e.getStatus();	   	   //错误请求状态码
    e.getErrorCode();	       //错误状态码
    e.getErrorMessage();        //错误信息 
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].