我想知道Firebase云消息传递对于无限用户是否免费?
android firebase google-cloud-messaging google-cloud-platform firebase-cloud-messaging
我正在开发一个Android应用程序,我想开始测试推送通知.从代码的角度来看,我已经准备好了.我目前面临的挑战是,我根本不知道如何从Google获取Google Cloud Messaging API密钥.
网上有大量的教程和视频,显示了如何在大约10秒内完成这项工作,但谷歌最近更新了它的开发人员中心,而且这些教程似乎都不再适用.目前的过程看起来非常麻烦,与我在网上看到的完全不同.
我意识到这几乎不会成为一个编程问题(如果有的话),但是如果没有来自Google的API密钥,我甚至无法开始开发任何东西.
有人能指出我正确的方向吗?
我试图通过web api将SNS messeges发送到android.从http://aws.amazon.com/developers/getting-started/php/下载并安装了SDK
运行sample.php时出现以下错误:
Fatal error: Uncaught exception 'Aws\Common\Exception\InstanceProfileCredentialsException' with message 'Error retrieving credentials from the instance profile metadata server. When you are not running inside of Amazon EC2, you must provide your AWS access key ID and secret access key in the "key" and "secret" options when creating a client or provide an instantiated Aws\Common\Credentials\CredentialsInterface object. ([curl] 28: Connection timed out after 5016 milliseconds [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/)' in C:\xampp\htdocs\aws-php\vendor\aws\aws-sdk-php\src\Aws\Common\InstanceMetadata\InstanceMetadataClient.php:85 Stack trace: #0 C:\xampp\htdocs\aws-php\vendor\aws\aws-sdk-php\src\Aws\Common\Credentials\RefreshableInstanceProfileCredentials.php(52): Aws\Common\InstanceMetadata\InstanceMetadataClient->getInstanceProfileCredentials() #1 C:\xampp\htdocs\aws-php\vendor\aws\aws-sdk-php\src\Aws\Common\Credentials\AbstractRefreshableCredentials.php(54): Aws\Common\Credentials\Refreshable in …Run Code Online (Sandbox Code Playgroud) php amazon-web-services amazon-sns google-cloud-messaging aws-sdk
我的推送服务捕获了一个奇怪的推送消息:
Bundle[{CMD=RST_FULL, from=google.com/iid, android.support.content.wakelockid=1}]
Run Code Online (Sandbox Code Playgroud)
刚刚开始发生,我无法确定哪个代码更改应该归咎于此.有没有人见过这个消息,也许知道它来自哪里以及为什么?
我有火力点云信息的问题,我从设备获取的令牌,并不过,在透过谷歌火力地堡通知控制台发送通知测试,该通知从未登录,也被推到了Android的虚拟设备.对于FCM的文档几乎一模一样,我有以下及一些其它在还有什么你必须做的就是推送通知与火力的工作方式的代码.我已经完成了所有的设置信息了(的build.gradle增加,安装谷歌播放服务等)的文件中规定,但仍然没有消息产生.我按下通知后立即收到一次性错误,指出"I/FA:找不到标签管理器,因此不会被使用",但这是唯一输出的数据,我没有找到与标签相关的任何内容经理要求和谷歌上的FCM.我没有收到对logcat或设备的推送通知的代码有什么问题?请让我知道任何有用的进一步信息.谢谢.
NotificationGenie.java
public class NotificationGenie extends FirebaseMessagingService {
private static final String TAG = "Firebase_MSG";
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
// TODO(developer): Handle FCM messages here.
// If the application is in the foreground handle both data and notification messages here.
// Also if you intend on generating your own notifications as a result of a received FCM
// message, here is where that should be initiated. See sendNotification method below.
sendNotification(remoteMessage.getNotification().getBody());
Log.d(TAG, "From: " + remoteMessage.getFrom());
Log.d(TAG, "Notification …Run Code Online (Sandbox Code Playgroud) android firebase google-cloud-messaging firebase-cloud-messaging
我需要在我的应用程序中实现推送通知功能.探索一些选择.
谷歌最近推荐使用Firebase平台,但这不是一个完全免费的服务.所以我想再次使用GCM.google将来是否会停止对GCM的支持?
android push-notification firebase google-cloud-messaging firebase-cloud-messaging
如果我的应用程序处于打开状态,如何刷新接收gcm推送通知的活动.我有一个活动,其中包含从服务器填充数据的列表视图.我想刷新我的活动(这里再向listview添加一个项目),如果我收到gcm推送通知(其中还包含一些数据).
亲爱的评论员,请仔细阅读问题,我只需刷新列表(如果应用程序已打开且特定活动已打开),否则不需要相同.
在Google Cloud Messaging中,注册ID的最大长度是多少?
我已将我的应用程序上传到谷歌播放,但用户报告了以下异常
java.lang.RuntimeException:WakeLock未锁定C2DM_LIB.当我尝试释放时发生此异常WakeLock.任何人都可以告诉可能是什么问题.
GCM服务器发出的注册ID的最大长度是多少?GCM文档不提供此信息.谷歌搜索显示注册ID本质上不是固定长度,长度可达4K(4096字节).但这些不是谷歌的官方回答.我目前正在接收长度为162个字符的注册ID.有人可以帮忙吗?