`
fanfq
  • 浏览: 267776 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Android Server Push - GCM

 
阅读更多
http://developer.android.com/guide/google/gcm/demo.html


尼玛,客户端始终连接不上,果断放弃。。。

有朋友测试成功的吗?分享一下的。
分享到:
评论
3 楼 fanfq 2014-06-04  
Jocson 写道
http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/
http://developer.android.com/google/gcm/notifications.html#response
多测试测试应该就行了,我的是有返回发送成功的信息哦。


你的网络环境能提供下吗?我这个还是很久以前玩的了,家里是电信的宽带,没有测试成功所以就一直丢着没有弄。
2 楼 Jocson 2014-05-21  
返回的Json值"{\"multicast_id\":-1,\"success\":1,\"failure\":0,\"canonical_ids\":1,\"results\":[{\"message_id\":\"fake_message_id\",\"registration_id\":\"APA91bFRZgWDPOsTXpCPrIPROYq7lU0g7CC88GgJLiiPx6FvAmUUTyqG_mNznwxBAQ78udaiaG6XEl4KQg3s4t7GndZr0IE-sZGD9ObZUNqhr3gITAHI2ugm_14kYMPoLwvXLJpEW9pC1NUomkBLfE8tyo1LbHmkgw\"}]}"
1 楼 Jocson 2014-05-21  
http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/
http://developer.android.com/google/gcm/notifications.html#response
多测试测试应该就行了,我的是有返回发送成功的信息哦。

相关推荐

    Android Server Push - Urban Airship

    **Android Server Push - Urban Airship** 在Android应用开发中,Server Push技术是一种常见的实时通信方式,它允许服务器主动向客户端推送消息,而无需客户端持续轮询。Urban Airship是一款流行的推送服务提供商,...

    Server-push-to-Android.rar_Android push_push

    "Server-push-to-Android.rar_Android push_push"这个压缩包文件聚焦于服务端向Android设备进行数据推送的技术方案,其中包含了一份名为“服务端向Android推送数据解决方案总结.pdf”的文档。以下是对这一主题的详细...

    Android代码-Push

    With the Push Server OK, open the file Config.java and change the addresses of your server and the GCM Sender ID: public static class ADRESSES { public static final String SERVER_URL = ...

    gcm-android-push-notifications:带有Android推送通知的Google Cloud Message .....

    【标题】"gcm-android-push-notifications"涉及的是在Android平台上使用Google Cloud Messaging(GCM)来实现远程推送通知的功能。GCM是Google提供的一项服务,允许应用开发者向Android设备发送消息,即使应用在后台...

    AndroidPush11-29.zip

    3. **集成FCM**:要在Android应用中使用FCM,首先需要在Google Developer Console中创建一个新的项目并启用FCM服务,获取Server Key和Sender ID。然后在应用的AndroidManifest.xml文件中添加必要的权限和服务声明。 ...

    Laravel开发-laravel-push-notification

    在本文中,我们将深入探讨如何使用Laravel框架的laravel-push-notification包来向移动设备(如iOS设备通过Apple Push Notification Service (APN) 和Android设备通过Google Cloud Messaging (GCM))发送推送通知。...

    push-server:发送 iOS 和 Android 推送通知的服务器

    【标题】:“push-server:iOS 和 Android 推送通知服务器” 在移动应用开发中,推送通知是连接用户和应用的重要手段。"push-server" 是一个专门为 iOS 和 Android 设备设计的推送通知服务,用于帮助开发者向用户的...

    AndroidPush_ServiceAndClient

    首先,Android Push主要依赖于第三方推送服务,如Google的Firebase Cloud Messaging (FCM)服务,以前称为Google Cloud Messaging (GCM)。FCM是Google提供的一种免费服务,可以向Android、iOS甚至Web应用推送通知或...

    push-notification-library:使用PHP将推送通知发送到Android和IOS设备

    随时贡献!安装composer require push-notification/push-notification-... 要求: PHP 5.6以上PHP Curl和OpenSSL模块可用支持: APNS(苹果) GCM(Android)和FCM(Android)设置.env上提供商的

    javaee-push-notification-server:JavaEE后端推送通知服务器

    javaee-push-notification-server JavaEE后端推送通知服务器GCM Android用于将推送消息发送到Android设备的REST API: 有效负载的HTTP POST方法: {“ appKey”:“ appKey_xyz”,“ gcmMessage”:{“ data”:{...

    push-receiver:用于订阅GCMFCM并在节点进程中接收通知的库

    用于订阅GCM / FCM并在节点进程中接收通知的库。 对于 ,您可以改用 ,它提供了一个方便的包装器。 有关更多详细信息,请参。 什么时候应该使用push-receiver ? 我想接收在桌面应用程序中使用Firebase Cloud ...

    使用android push notification service 实现即时通知

    在Android平台上,实现即时通知通常会借助Google的云消息推送服务(Google Cloud Messaging,简称GCM),但在iOS系统中,对应的则是Apple Push Notification service(APNs)。然而,这里提到的"android apns"可能是...

    android Push功能(Channel)

    在Android平台上,Push功能指的是应用程序接收远程服务器推送的消息服务,通常用于实时通知用户有新的信息、活动或更新。"Channel"在这里是指Android的通知渠道,这是Android Oreo(8.0)及更高版本引入的一项特性,...

    android push notification 下载即可运行

    1. GCM(Google Cloud Messaging)与FCM(Firebase Cloud Messaging):早期,Android设备使用GCM接收云端消息,但现在已经由FCM取代,FCM提供了更多功能,如自定义消息、消息分发优化等。 2. 服务端与客户端:实现...

    push-app-android:推送应用 - 安卓应用

    可以使用HTTP REST API,或者使用Google提供的gcm-server.jar库。消息可以包含标题、正文、图标等信息,甚至可以携带自定义数据,以便在客户端处理。 为了确保推送消息的可靠性和性能,要考虑到以下几点: 1. 使用...

    Android Push Notification实现信息推送完整包

    本文将详细介绍如何实现Android Push Notification,包括服务器端(Server)和客户端(Client)的设置以及操作配置流程。 1. 服务器端(Server)实现 服务器端负责发送推送通知到Google的云消息服务(GCM,现在...

    androidpn-server-app-master

    "androidpn-server-app-master" 是一个基于Android的推送通知服务(Push Notification)的项目,它采用了Tomcat作为服务器端的应用程序容器。这个项目的核心目标是为Android设备提供实时的消息推送功能,使得应用...

    aerogear-android-1.4.0-source-release.zip_Windows编程_Java_

    AeroGear for Android provides support for integrating with push. Currently only using Google’s Cloud Messaging (GCM) with the [AeroGear UnifiedPush Server]...

    androidpn-server-0.5.0-bin、androidpn-client-0.5.0、androidpn-demoapp-0.5.0

    AndroidPN,全称为Android Push Notification服务,是一种基于Google Cloud Messaging (GCM) 技术的开源项目,旨在为Android应用程序提供推送通知服务。这个项目包括三个主要组件:服务器端(androidpn-server)、...

Global site tag (gtag.js) - Google Analytics