google-cloud-messaging

Is it inherently dangerous to expose/make public my API key for GCM?

帅比萌擦擦* 提交于 2019-12-12 03:30:51
问题 I am trying to figure out if it would somehow compromise users if the API Key used to send notifications to an app was made public. In what situations might it be dangerous? As far as I can tell, an attacker would also need a valid registration id in order to be able to actually send a notification to a user of the app. If it is unlikely that an attacker gets hold of a registration ID is there any real danger? Are there ways to get hold of a registration ID, which don't involve somehow

SNS Mobile Push

房东的猫 提交于 2019-12-12 03:30:08
问题 I am currently developing an Android app in Xamarin. I am using AWS SNS Push and Google Cloud Messenger (GCM). I've been following this walkthrough pretty closely: http://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/getting-started-sns-android.html The code I've been working with is extremely similar to what's there. However, I have a Registration Intent Service that works as follows: [Service(Exported = false)] public class RegistrationIntentService : IntentService { private

Push Notifications With Firebase, Node.js, and Google Cloud Messaging for iOS app

情到浓时终转凉″ 提交于 2019-12-12 03:30:01
问题 I am trying to use Firebase, Node.js, and Google Cloud Messaging to send push notifications for an iOS app. Below is the Node.js code var Firebase = require('firebase'), gcm = require('node-gcm') ; var pushRef = new Firebase("https://<myapp>.firebaseio.com/ios/queue/tasks"); pushRef.on("child_added", function(snapshot) { console.log("child added event registers"); var notificationData = snapshot.val(); sendNotification(notificationData); snapshot.ref().remove(); }); function sendNotification

difference between deprecated gcm and new gcm which uses google play service

匆匆过客 提交于 2019-12-12 03:28:54
问题 Is deprecated gcm reliable to use now and when probably will be down?I mean gcm which has no depency on google play service(gcm.jar-GCMRegistar version). I tested latest gcm version and found out that the bulit apk is more than 2.0 mb size ,which is very bigger than old gcm.jar. Furthermore the old gcm does not need google play service and some older devices has not installed google play service,so the old gcm can run on more devices. Here is the gradle file: apply plugin: 'com.android

How to get GCM notification messages into an activity in android?

大兔子大兔子 提交于 2019-12-12 03:28:41
问题 Explanation: I am using GCM to send notification to the users.Everything is completed.I was created a server side programming to create a rest for push_message and all the thing is done. When i click on the notification this messages are open into my activity. How can i do to open my messages in my activity? Here is my GCMIntentService.java package com.angelnx.angelnx.mygcm.gcm; import android.app.IntentService; import android.content.Intent; import android.content.SharedPreferences; import

Android: Unable to receive GCM Messages/ Listener not being called

試著忘記壹切 提交于 2019-12-12 03:27:09
问题 I am missing something and I am not sure what considering I followed the guide ie: https://developers.google.com/cloud-messaging/android/client as well as checked my code against: https://github.com/googlesamples/google-services/tree/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart My server side code is correct will successfully send out a GCM message but my android client does not receive anything. I am thinking the issue lies somewhere in the manifest:

GCM registration successful on iphone but not ipad

本秂侑毒 提交于 2019-12-12 03:26:24
问题 I have a weird issue where I receive the following error only on an ipad device: The operation couldn’t be completed. (com.google.iid error 501.) During the GCM registration process to request a gcm token. i.e. GGLInstanceID.sharedInstance().tokenWithAuthorizedEntity(gcmSenderID, scope: kGGLInstanceIDScopeGCM, options: gcmRegistrationOptions, handler: gcmRegistrationHandler) I'm following the example to the letter. The same process works just fine on an iphone. I'm not sure what the

GCM /topics/global works, but to register_id doesn't

穿精又带淫゛_ 提交于 2019-12-12 03:21:39
问题 I am working on a GCM project. Everything works when I use the parameter to send the message to all devices. However, I want the message to go to one specific device using the registration_id. As far as I can read in the documentation, I'm doing as I am supposed to do. When I use "to":"/topics/global" it works as seen below: JSONObject jGcmData = new JSONObject(); JSONObject jData = new JSONObject(); jData.put("message", customer.getToken()); jGcmData.put("to", "/topics/global"); jGcmData.put

DevicePolicyManager, locknow when gcm message received

我的未来我决定 提交于 2019-12-12 03:09:01
问题 I am trying to remotely lock my phone when a gcm PUSH notification with a keyword arrives. Inside the GcmIntentService class, within the onHandleIntent I have included message = extras.getString("message"); if(message.equals("LOCK")){ gcmaction(message); } else{ sendNotification("Message: " + extras.getString("message")); Log.i(TAG, "Message: " + extras.toString()); } So if a message arrives saying LOCK, it should go to the gcmaction method. Otherwise go to the notification method. private

What causses GCM Server to return NotRegistered?

一曲冷凌霜 提交于 2019-12-12 02:53:41
问题 I implemented GCM server like it said in the guide and it worked well. I did all the steps and when I sent an http request to the GCM server it returned a success response. However, every once in a while it gives me a NotRegistered response which makes me get a new registeration ID . I should say that the the app is still under development but I don't see why small changes in the code should effect the registration and I'm working on a GenyMotion emulator if it matters. In the guide it Says: