google-cloud-messaging

GCM server using Google app-engine [closed]

老子叫甜甜 提交于 2019-12-20 15:01:11
问题 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 5 years ago . I have just implemented the SDK samples for GCM client and server side. I implemented it with no problems using NetBeans(Glass Fish) as my server side and Eclipse as my client (Android). I now want to explore the use of Google App Engine as my server side. I downloaded the sample from the SDK but cant get it to

Poll vs. Push - Any reasons to avoid Push Notifications?

让人想犯罪 __ 提交于 2019-12-20 14:10:14
问题 I just inherited an Android app project as a (technical) product manager that uses a 5 second timer to poll a remote URL to see if some work initiated by the app has finished. My initial reaction of course was to suggest to replace this with a push/notifications mechanism , preferably Android's built in GCM, so the work is removed from the app on the phone and put on the server side. Surprisingly I met resistance from the development team. A former product manager (my predecessor) seems to

Handle multiple Notifications / Stacking Notifications from GCM

混江龙づ霸主 提交于 2019-12-20 12:36:59
问题 I just implemented GCM and notifications in my Android app, coming from an Apache/PHP-based webserver. The notifications are already working, but I'm stuck at stacking the notifications, as described here. What I'm trying to do I have two types of notifications in my app, using data coming from the GCM Service: Type 1 (Messages): [data] => Array ( [t] => 1 [other data...] ) Type 2 (News): [data] => Array ( [t] => 2 [other data...] ) These 2 types are completely different notifications, and I

push notifications with django and GCM

拥有回忆 提交于 2019-12-20 12:17:08
问题 I have a android client app, and my server is in django. I want to implement push-notifications in the server, to notify the specific users when changes in data related to them are happening, for example. I have found those links: https://django-gcm.readthedocs.org/en/latest/quickstart.html https://github.com/bogdal/django-gcm https://github.com/jleclanche/django-push-notifications Not really sure what which link I need and for what. An example for what I want is: A user makes a request to

Android L permission conflict between release and debug apks

雨燕双飞 提交于 2019-12-20 12:06:09
问题 I've upgraded to Android L and have both a released version of my app in "Google play" and a debug version which we use for development. They are signed with different keys. My problem is that I install the "Google play" version and then when I try installing the debug version, which is defined like so: debug { debuggable true packageNameSuffix ".debug" buildConfigField BOOLEAN, IS_DEV, TRUE } And this is the error I receive: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.app.name

Android L permission conflict between release and debug apks

余生颓废 提交于 2019-12-20 12:05:08
问题 I've upgraded to Android L and have both a released version of my app in "Google play" and a debug version which we use for development. They are signed with different keys. My problem is that I install the "Google play" version and then when I try installing the debug version, which is defined like so: debug { debuggable true packageNameSuffix ".debug" buildConfigField BOOLEAN, IS_DEV, TRUE } And this is the error I receive: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.app.name

GCM API key vs Sender ID

北慕城南 提交于 2019-12-20 10:34:16
问题 I am confused about GCM Sender ID and API key. I'm responsible for building 3rd party server that will send notifications to Android app. Which one do I have to store on server side? API key or Sender ID? Who is responsible for creating both, Android developer or me? 回答1: I've kinda figured it out on my own: API key is generated on console and is used by 3rd party server to authenticate/authorize with GCM. Sender ID is used by Android app to register a physical device with GCM to be able to

GCM How do I detect if app is open and if so pop up an alert box, instead of normal notification flow?

怎甘沉沦 提交于 2019-12-20 10:10:29
问题 I have an app where I want to build 2 different flow's in: 1.a App is open on any activity 1.b App show's an alertbox where user can choose to go to the activity regarding the notification or stay on the current activity. 2.a App is running in background 2.b Notification in notification bar, starts the activity regarding to the notification. I currently have flow 2 working, but cannot find out how to get flow 1 working. Here's some code: In GcmIntentService: @Override protected void

ejabberd and Push Notification

北战南征 提交于 2019-12-20 09:21:58
问题 I have integrate chat system in my iOS and Android app using XMPP. I have used ejabberd 2 in the server side. Chatting sytem works fine. I want to integrate push notification in my chating using APNS and GCM. How can I send a push notification with each chat message ? ejabberd 2 has any API or extensions available to implement this feature ? Help is highly appreciable, 回答1: Please use the below blog , it is very simple and useful, it is works fine for me. http://symmetricinfinity.com/2013/01

Get data from GCM notification

一个人想着一个人 提交于 2019-12-20 09:02:37
问题 Is there a way to get data from "GCM notification". Here is a part of my json string which I send with gcm: {"data":{"id":"123"}} . I need get value of id in my app, but I don't know how ... thanks a lot. 回答1: If you are using the new GCM library, then you need to create a class that extends IntentService, this is where the GCM library will notify you when a GCM message is received. Please take a look at MyIntentService.java sample: @Override public final void onHandleIntent(Intent intent) {