google-cloud-messaging

Locally stored upstreams when network is down, are not sent on network up on JB & ICS (they are on reboot)

試著忘記壹切 提交于 2019-12-20 01:08:44
问题 Here is my scenario. When network is down, GCM client locally stores device-to-cloud messages (upstream), in a local queue (it's length seems to be 20, although never stated). When this queue is full, messages are locally discarded and the intent contains the message type MESSAGE_TYPE_SEND_ERROR + extras about which messageId was deleted, and error=TooManyMessages . Using the TTL'd version of gcm.send, allows to force upstreams to be always discarded (when network is down) instead of queued

GCM 3.0 notification payload not showing android notification when app is in foreground

萝らか妹 提交于 2019-12-19 21:56:12
问题 When i am sending a gcm message with notification(no data) payload, then the android notification is shown only if my app is in background. If the app is in foreground then no android notification is shown but the onMessageReceived() in GcmListenerService implementation is called with null "message". onMessageReceived() is not called when the app is in background and android notification is shown as expected. Is this the expected behavior or am i missing something? Please let me know in case

File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

旧时模样 提交于 2019-12-19 18:57:26
问题 I have a project with 1 module and 2 applications. The module is used for code parts that both applications uses. Of course I have separate google-services.json files in the app's root folders. The build was working very well last Friday. Now I try to compile and got this error: File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it. :DoToDoSenderApp:compileDebugSources :DoToDoSenderApp:transformClassesWithDexForDebug UNEXPECTED TOP

File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it

℡╲_俬逩灬. 提交于 2019-12-19 18:57:10
问题 I have a project with 1 module and 2 applications. The module is used for code parts that both applications uses. Of course I have separate google-services.json files in the app's root folders. The build was working very well last Friday. Now I try to compile and got this error: File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it. :DoToDoSenderApp:compileDebugSources :DoToDoSenderApp:transformClassesWithDexForDebug UNEXPECTED TOP

rollback/cancel the android-gcm notification

我的未来我决定 提交于 2019-12-19 17:27:11
问题 Is there a way to rollback the notification request placed to GCM server? As in, consider a GCM-message-request is placed to GCM server. If the user sees the message in web before coming online in mobile, the GCM request should be rolled back. And user should not see the notification in mobile. 回答1: There is no built in mechanism for such rollback in the case you describe. You can try implementing it yourself - when your server notices the message was viewed in web, you can send another GCM

Push notifications: Why use Amazon SNS over Google's GCM/FCM?

为君一笑 提交于 2019-12-19 16:54:40
问题 I have created a mobile app for Android and iOS using Phonegap Build. Last year I had nearly finished writing code to use GCM (Google Cloud Messaging) for remote push notifications - which can go out via Apple's APNS too - but the project was shelved. This year the project is resurrected and I find Google has changed everything to Firebase (FCM). I then read some enticing things about Amazon SNS handling notifications. Just when I started to think SNS might be a better option, I noticed you

Clearing app data not clearing GCM token nor GCM subscribing topics

梦想与她 提交于 2019-12-19 10:52:15
问题 I had subscribed to topics from GCM and when I removed all app data by android settings, the GCM token is the same and GCM notification on topics are still available, so I get notifications which I don't want to receive. My questions are: How can I get list all of subscribed topics from GCM? How can I remove all subscribed topics without knowing their names? Should the GCM token be changed after clearing app data or should all subscribed topics be removed automatically in this case? 回答1: You

GCM IntentService how to display a pop up on notification receive

蓝咒 提交于 2019-12-19 10:41:09
问题 I would like to, on receive of a GCM, display a Popup on my current Activity if my app is active. I wanted to access my current activity in GcmIntentService but I dont think it is possible or a good way to proceed... Can anyone help me? Solution In my GcmIntentService.java : @Override protected void onHandleIntent(Intent intent) { ... Intent broadCastIntent = new Intent("client_notifications_broadcast"); broadCastIntent.putExtra("data", extras.getString("other")); LocalBroadcastManager

How can i use older version of google play services?

坚强是说给别人听的谎言 提交于 2019-12-19 09:53:34
问题 I'm using Google Cloud messaging through google play services. The things is it only works on the devices with last version of play services installed, in remaining devices i need to show a dialog to send user to google play to install new version witch i really don't want to do! So how can i avoid this?! I'm trying to use an older version of play services (lets say from 2 years ago) to insure majority of my users don't need to update but it seems impossible with grade and android sdk since

How can i use older version of google play services?

混江龙づ霸主 提交于 2019-12-19 09:52:49
问题 I'm using Google Cloud messaging through google play services. The things is it only works on the devices with last version of play services installed, in remaining devices i need to show a dialog to send user to google play to install new version witch i really don't want to do! So how can i avoid this?! I'm trying to use an older version of play services (lets say from 2 years ago) to insure majority of my users don't need to update but it seems impossible with grade and android sdk since