google-cloud-messaging

Scaling GCM Push. How often can you perform GCM Push?

强颜欢笑 提交于 2019-12-13 20:11:28
问题 Everybody tells me that polling server for new data is stupid if the server is yours and you should implement push with GCM instead. Well, I agree and have done so but, I was wondering, how often can or should you perform push? I have a simple app where people post stuff to the server and have a feed of everyone else's posts. The method on the server that does the saving to the database also triggers the GCM Push at the end, so Google sends out the push notifications to everybody and

Migration from C2DM to GCM

不问归期 提交于 2019-12-13 16:22:29
问题 I reading this, but I don't understand what I must do. Now my application doing registration in c2dm by this code: String pushId = C2DMessaging.getRegistrationId(this); if(pushId == "") { C2DMessaging.register(this, "email@gmail.com"); } What I must change in this code to do migration from c2dm to gcm? 回答1: First, go through the Getting Started steps. Once you created an API project, you will receive a 'Project ID', as mentioned #4 item on that document: Take note of the value after #project:

GCM unable to start service intent

不想你离开。 提交于 2019-12-13 13:12:33
问题 starting on android P my app is not able to register for a GCM ID. My PushManager code looks like try { GcmClient.CheckDevice(context); GcmClient.CheckManifest(context); String[] senderIds = GcmBroadcastReceiver.SENDER_IDS; foreach (String id in senderIds) { System.Diagnostics.Debug.WriteLine("sender id = " + id); } GcmClient.Register(context, senderIds); if (GcmClient.IsRegistered(context)) { System.Diagnostics.Debug.WriteLine("push registration successfull: " + GcmClient.GetRegistrationId

Error getGoogleAppId failed with status: 10 Android KitKat - GCM and Google Drive

删除回忆录丶 提交于 2019-12-13 11:42:09
问题 I am running this in a Samsung Galaxy S4 mini. KitKat Android. In the application, I use both GCM for messaging, and Google Drive API. I think the error I am getting is from GCM, but I am not sure. Here is LogCat: I/PersonaManager﹕ getPersonaService() name persona_policy I/GMPM﹕ App measurement is starting up I/PersonaManager﹕ getPersonaService() name persona_policy I/MainActivity﹕ onCreate E/GMPM﹕ getGoogleAppId failed with status: 10 E/GMPM﹕ Uploading is not possible. App measurement

Android : Cloud function for Chat

大兔子大兔子 提交于 2019-12-13 10:29:03
问题 I face a difficulty to create the Cloud Function for chatting feature. My firebase design look like the follows : I have created the cloud function , but it doesn't work and no push notification coming to receiverUid . Here is my Cloud Function : // // Start writing Firebase Functions // // https://firebase.google.com/functions/write-firebase-functions // // export const helloWorld = functions.https.onRequest((request, response) => { // response.send("Hello from Firebase!"); // }); let

GCM push notification coming but with empty message

夙愿已清 提交于 2019-12-13 08:59:13
问题 When I submit data through php file it is giving notification to registered phone but there is an empty message only no message content.Mostly tried all tutorial available online but not getting it.Please help. Server Side Code:php file <?php $con = mysql_connect("localhost", "umane", "pass"); if(!$con){ die('MySQL connection failed'); } $db = mysql_select_db("dbname"); if(!$db){ die('Database selection failed'); } $registatoin_ids = array(); $sql = "SELECT * FROM tblname"; $result = mysql

Android push notification GCM

孤者浪人 提交于 2019-12-13 06:26:51
问题 I am working on android GCM for my application to send push notification to users. And I am following this tutorial http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ But in This tutorial its shown that we can send push notification to individual device. But I want to send push notification to all the users at once. So how can I implement this technique. 回答1: I have already faced the same problem and solved it. To send push

Amazon SNS URL works on browser but not from Android app

别来无恙 提交于 2019-12-13 05:35:14
问题 I made the url for amazon SNS. http://sns.ap-northeast-1.amazonaws.com? AWSAccessKeyId=***********&Action=CreatePlatformEndpoint&PlatformApplicationArn=arn%3Aaws%3Asns%3Aap-northeast-1%3A776188326341%3Aapp%2FGCM%2Fmyapplication& SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2016-03-20T23%3A08%3A26.601Z &Token=APA91bFN3NV_cBqPtqc6vUSYm8C6o9m5UMoUAvp3qM6WWPlef5s8G8__RNQi_AljpgTJEq-hWqF7iQYJ-4OXKiRJc1uz5JvzDIXfgWd_5AC08S_m0bOIIdcWW2cMZjAyH7PrXpSu2h9j &Version=2010-03-31&Signature=%2B

GCM Using JSON to send to multiple RegistrationIDs : No notification arrives

╄→尐↘猪︶ㄣ 提交于 2019-12-13 05:34:36
问题 I'm using Android Google Cloud Messaging to send notifications to a device, with c#.net. I got the API Key, RegistrationID and senderID ( Well first method worked no there's nothing wrong with the configuration of GCM). Here's the first method where I want to send the message to just 1 registrationID(check postData, i'm not using Json): public void SendPushNotification(string regID, string message) { { string GoogleAppID = "APIKey"; var SENDER_ID = "SenderID"; var value = message; WebRequest

Is firebase realtime json database suitable for data broadcasting? [closed]

两盒软妹~` 提交于 2019-12-13 05:34:13
问题 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 am considering using firebase as a way to brodcast data messages to many connected users on mobile phone native apps running actively in the foreground. In a "channel" (presumably a node in the database) there might be a new 1kb message every second or so and potentially thousands of users listening in. The