google-cloud-messaging

Android GCM time_to_live issue

我的未来我决定 提交于 2020-01-01 08:50:46
问题 I have a problem related to time_to_live . I get messages when the device is on, but when it is offline I don't get the message or at least it is not sent in the first 15 minutes. I'm sending the message with delay while idle true and time_to_live 2419200. Any ideas what is happening, maybe I misread the documentation. 回答1: From the documentation : delay_while_idle : If included, indicates that the message should not be sent immediately if the device is idle. The server will wait for the

Send GCM message to Particular user

…衆ロ難τιáo~ 提交于 2020-01-01 05:11:11
问题 In my application i want to send notification to a particular user irrespective of the device. User can log into the application from any device. This is the first time i am using GCM. I read the document it says that when the device registered with the GCM server, the device send that unique ID to the server, and then save that value for sending messages. Then how to send notification to a particular user when he log into the application from different devices? 回答1: This unique ID (aka

One server sending push notifications to Android and iOS devices

谁说我不能喝 提交于 2020-01-01 04:57:09
问题 Our organization has an Android app and an iOS app. We want to start pushing notification to these apps. Android has GCM. Apple has APNS. But we want to create an API which will work on both android and iOS. What is the easiest way to setup a server so that when a push notification needs to be sent, it knows exactly which server to send the message to? 回答1: As a little background this is for a university setting where multiple colleges apps as well as distance education may be using the

Parse Push - How to Automatically Open an activity without user action on receiving a push on Android

為{幸葍}努か 提交于 2020-01-01 03:47:26
问题 I have a requirement (android) where my app should run its main activity automatically when a push notification is received without the user clicking on notification in system tray. I am having a map where it shows current location, but in the push, i will receive a location, and i need my map in the main activity to move the camera to the currently received location on receiving the push, and alert the user with a custom sound. All this should happen without the user clicking on anything.

Android Notification- Display full message

梦想的初衷 提交于 2020-01-01 01:13:10
问题 My Android Application has to be able to send short alerts out to a large group of people. The obvious place to do this is in the notification center. The full notification shows up in the ticker without a problem, but in the notification center a user can only see the first couple words and then an elipsis. The notifications are not long at all, just 10-15 words at the most. How can I make the text wrap down to a new line? My code to build the notifications is here NotificationCompat.Builder

Android Wear app resulting in getGoogleAppId failed with status error

99封情书 提交于 2019-12-31 13:24:06
问题 I have an Android Wear app which was working fine on my Moto360. It access Google Play Services and GCM APIs in the Google Admin console. Then I tried to use another watch (LG G Watch). Because I can only pair one watch at any time with my phone, I had to "forget" the moto360 in order to pair with the LG G Watch. Now I cannot seem to connect to Google App API (GCM or play services). I am getting the following error: I/GMPM ( 2746): App measurement is starting up E/GMPM ( 2746): getGoogleAppId

Android Wear app resulting in getGoogleAppId failed with status error

让人想犯罪 __ 提交于 2019-12-31 13:22:33
问题 I have an Android Wear app which was working fine on my Moto360. It access Google Play Services and GCM APIs in the Google Admin console. Then I tried to use another watch (LG G Watch). Because I can only pair one watch at any time with my phone, I had to "forget" the moto360 in order to pair with the LG G Watch. Now I cannot seem to connect to Google App API (GCM or play services). I am getting the following error: I/GMPM ( 2746): App measurement is starting up E/GMPM ( 2746): getGoogleAppId

GCM Topics or Downstream Messaging

◇◆丶佛笑我妖孽 提交于 2019-12-31 05:21:10
问题 I'm trying to add GCM to my app which is one of those general social apps with feeds, posts, comments. Think facebook. I read the post for Sending Messages to Topics: https://developers.google.com/cloud-messaging/topic-messaging which says: Based on the publish/subscribe model, topic messaging supports up to one million subscriptions per app. 1 million subscriptions to a topic is actually very little. That could be used up quickly if one subscribes to different posts. For example, with

Android push service, implementing the gcm server side

夙愿已清 提交于 2019-12-31 04:39:07
问题 I am all new to the android push world and I have been struggling a little, for couple of days now. I created and implemented the GCM client side of it without a problem. I also created my google cloud project, enabled android push notif.s and got my Project Number , Project ID and API Key . So far so good, then I wanted to get to the implementing the server side of it but for some reason I have no idea what I should do, where should I write the code? Is it going to be a web service like

User push notifications in cordova 3.3

孤街浪徒 提交于 2019-12-31 04:08:33
问题 I want to implement notifications in android using 3.3 cordova, I'm new at this. I have tried several tutorials but without success. Could explain a simple way to implement it step by step? Thank You 回答1: Cordova Push Notifications Plugin for Android, iOS and WP8 This plugin is for use with Cordova, and allows your application to receive push notifications on both Android and iOS devices. The Android implementation uses Google's GCM (Google Cloud Messaging) service, whereas the iOS version is