google-cloud-messaging

how to handle different GCM notifications clicks

可紊 提交于 2019-12-12 02:50:55
问题 I have used GCM Push Notifications into my app. Everything is fine. When i get notification and when i click notification I can move other activity.I am passing url link to another activity.but,How to handle click on multiple notifications. Here say when I get 5 notifications and click on any notification I am moving to other activity but the link which I am passing is the first notification url. I am using different notification id NotificationManager notificationManager =

Chrome Desktop Notification doesn't display the message

只愿长相守 提交于 2019-12-12 02:45:32
问题 I'm developing a website that supports desktop notifications. I'm utilizing GCM and Azure Notification Hub to send push messages to end users. I followed this codelab tutorial. When testing I have found that the push notifications do get displayed on the screen, but the message that I have written in the payload is not shown in the notification. So I again went through the codelab, and they have mentioned a body key in the showNotification method. Code self.addEventListener('push', function

GcmListenerService is not called while application stopped. Android GCM

妖精的绣舞 提交于 2019-12-12 02:31:46
问题 My manifest file is as below: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.app"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="com.google.android

MismatchSenderId error from GCM (using GCM push notification)

若如初见. 提交于 2019-12-12 02:27:11
问题 when I try to send message (from server to mobile using GCM push notification) I am getting following error. I have tried the all the solutions that have given in other posts in stackoverflow {"multicast_id":xxxxxx,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]} I have done my registration in GCM Server key 1: xxxxxxxxxx Project ID: xxxxxx In my android code I have set following (my package name is com.revu.revu) a. Manifest file: // When notification

Why is my own sender ID getting back an InvalidRegistration message?

只谈情不闲聊 提交于 2019-12-12 02:24:07
问题 I have been working on implementing GCM in an application and based on Google's examples have been able to get it to work. However, when I try to use my own sender ID and scope, I get back an InvalidRegistration error when I try to send a notification. For example, this works: token = instanceID.getToken(getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null); Where as this does not, I have already double checked the sender ID from the project, in fact, there is

'android.app.Notification$Builder' Class not found

﹥>﹥吖頭↗ 提交于 2019-12-12 02:18:56
问题 Background I'm working to make my app supporting 2.3.3 version (Api level 10), but i got the below error. Log Could not find class 'android.app.Notification$Builder', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.showErrorNotification 回答1: Notification.Builder was added in API level 11. For earlier versions, NotificationCompat.Builder should be used instead. Since the error comes from Google Play Services, use google_play_services_froyo instead of google_play

Google Cloud Message - Notification USB Behavior

家住魔仙堡 提交于 2019-12-12 02:13:11
问题 Sorry, my english is not so good... anyway. I have a android application that uses GCM to receive push notifications. Steps: 1 - User click logon button 2 - Android app save the registration ID ( Working ) 3 - Send to WebService and put in database ( Working) 4 - Server Application (C#) send the message for selected registration id ( Working) 5 - Device receive the notification normally, BUT just if device is CONNECTED ON USB ( * PROBLEM * ) if i dont connect the device on usb, i receive the

C# FCM for Android Push Notification

风格不统一 提交于 2019-12-12 02:09:43
问题 I am trying to use FCM for pushing notifications to Android device but it seems that I am missing something. These are steps that I've followed Create new project in https://console.firebase.google.com From Settings -> Cloud Messaging tab, I got Server key and Sender Id I used this code var regId = "device id"; string SERVER_API_KEY = "Firebase Server key"; var SENDER_ID = "Sender ID"; var value = "Test Notification"; WebRequest tRequest; tRequest = WebRequest.Create("https://fcm.googleapis

Android GCM notification Builder features not working when app is closed

邮差的信 提交于 2019-12-12 01:56:56
问题 I have created an app that is receiving GCM notifications correctly. When I have the app open the notification is ringing and also the notification comes properly as a big box as defined in the code below: NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.mipmap.ic_launcher) // .setLargeIcon(imageBitmap) .setTicker("CheGroup") .setContentTitle(title) .setContentText(message) .setAutoCancel(true) .setDefaults(Notification.DEFAULT_ALL)

TOPICS_MESSAGE_RATE_EXCEEDED when sending more than one message in a short period of time [closed]

孤街醉人 提交于 2019-12-12 01:53:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I need to send more than one message to a single topic in just one second. I have three Android devices and I'm trying to send multiple downstream messages to a topic (the three devices are subscribed to) in a short period of time (one second). Our server does ACK for the three of them. In that moment, we send