草庐IT

Messaging

全部标签

android - 如果同时使用 iOS,Google Play Services 8.4.0 会破坏适用于 Android 的 Google Cloud Messaging

有几个帖子描述了这个问题的各个方面,但还没有一个令人满意的答案,所以我试图在这里整理它们,希望得到一个可以解决所有这些问题的权威答案。AfterupdatingGoogleplayservicesto8.4.0pushnotificationsdisplayedbythemselvesAndroidnotificationisnotshowingit'scontentwhenappisnotrunningwhatdoesgcm.notification.e=1standfor,intopushnotificationpayloadonAndroid?问题的要点是,如果您创建仅包含数据的

android - 使用 Firebase Cloud Messaging(适用于 Android)时可以创建子主题吗?

我目前正在开发一款使用新的Firebase云消息系统的应用。现在我看到了FCM的主题特征。我创建了一个主题“新闻”并想添加子主题,例如“新闻/天气”或“新闻/政治”。总共有大约20个子主题。这甚至可以通过FCM实现吗?这是上帝的做法吗? 最佳答案 我通常以前缀开始我的主题,然后是子主题,用_分隔它们。因此,如果我为每个用户设置一个子主题(非常适合发送用户对用户的消息),我最终会得到:/topics/users_puf/topics/users_forj9可能还有更好的办法,希望大家也来解答。

android - Firebase Cloud Messaging Service - 即使应用程序被杀死也能收到通知

如果Android应用被用户或Android故意终止,FirebaseMessagingService是否会在收到消息时检测到通知?我终止了我的应用程序,然后从Firebase控制台发送了一条消息。我无法收到通知。有没有一种方法可以让我在应用程序被终止时收到通知。publicclassYumigoBidMessagingServiceextendsFirebaseMessagingService{privatestaticfinalStringTAG=YumigoBidMessagingService.class.getSimpleName();/***Calledwhenmessag

android - 在 Firebase Cloud Messaging 中,消息 ID 是什么以及我们在哪里使用 addData()

Firebase提供的例子是:YourAndroidappcansendanupstreammessageusingFirebaseMessaging.send:FirebaseMessagingfm=FirebaseMessaging.getInstance();fm.send(newRemoteMessage.Builder(SENDER_ID+"@gcm.googleapis.com").setMessageId(Integer.toString(msgId.incrementAndGet())).addData("my_message","HelloWorld").addDat

android - 设备未从新的 Google Cloud Messaging (NEW GCM) 接收消息

请帮帮我我一直在浏览这个主题,并且仍然在这个新的GCM中学习我的最后一个项目根据此链接使用GCMPushht**://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/但是现在,最后一个GCM(C2DM)已弃用,因此我们不再使用任何GCMRegistrar来,看看这个h**p://developer.android.com/google/gcm/c2dm.html有声明“AndroidCloudtoDeviceMessaging(C

android - 使用 Firebase 和 Google Cloud Messaging 推送通知

我想使用GoogleCloudMessaging在我的应用程序(Android)中发送推送通知。我在后端使用firebase。由于firebase不支持内置推送通知,我使用的是GoogleAppEngine。我对GoogleAppEngine没有任何了解。现在我正在使用谷歌提供的模板发送推送通知。GoogleCloudMessagingTemplateGithub到目前为止,我已经在GoogleAppEngine中部署了我的应用程序,并且我能够向所有已注册的设备发送推送通知(来自Web)我使用GCM模板时获得的HTML页面。我想做的是,监听Firebase数据变化并向不在线或已关闭应用

android - Firebase Cloud Messaging 文档中的 "app server in my own environment"是什么意思?

我无法理解此documentation中使用的“应用服务器在我自己的环境中实现”的具体含义关于如何使用FirebaseCloudMessaging将上游消息发送到“云”.上下文文档说,要发送上游消息,我需要自己的应用服务器,它在HTTP或XMPP中实现两种连接服务器协议(protocol)之一。我迷茫的原因我的期望是,如果我使用Firebase,我不需要创建自己的服务器。所有后端的东西都由他们处理。所以对我来说,当他们说我需要在我自己的环境中创建我自己的应用服务器时,这与我的期望和理解相反,因此让我重新猜测其含义。我特别困惑和询问的是什么应用服务器到底是什么意思?“在我自己的环境中”到

android - 推送通知 - Firebase Control Messaging (FCM) - 无法运行该应用程序(未找到默认 Activity )

我尝试将FCM添加到我的应用程序以发送推送通知。但是我遇到了问题。我按照Googletutorial做所有事情添加到项目build.gradle:buildscript{repositories{google()jcenter()}dependencies{classpath'com.android.tools.build:gradle:3.1.0-alpha05'classpath'com.google.gms:google-services:3.1.1'}}添加到appbuild.gradledependencies{...compile'com.google.firebase:f

android - 如何从 Android 应用程序中的 Google Cloud Messaging 客户端注销

我使用GCM(谷歌云消息传递)和Azure通知中心在xamarin环境中开发了一个Android应用程序。问题是:我不知道如何退订以前的标签。即使我再次卸载安装-该应用程序仍会继续接收我之前订阅的每个标签的通知。也许我需要实现这个功能:protectedoverridevoidOnUnRegistered(Contextcontext,stringregistrationId){thrownewNotImplementedException();} 最佳答案 我认为您需要在Azure通知中心取消注册。protectedoverrid

android - Google Cloud Messaging 是否会向处于待机模式的设备发送消息?

如果Android设备处于屏幕关闭的待机模式,Google云消息传递是否可以向该设备发送消息?或者GCM是否必须等到设备退出待机模式才能接收消息?在文档中它指出:Googleenqueuesandstoresthemessageincasethedeviceisoffline.Whenthedeviceisonline,Googlesendsthemessagetothedevice.但是没有说明离线或在线是什么意思。即使屏幕关闭,设备是否仍在线? 最佳答案 是的移动设备可以在待机模式下接收消息,除非并且直到它连接到互联网。在他们的