google-cloud-messaging

secured or encrypted push notification messages from MobileFirst server

旧城冷巷雨未停 提交于 2019-12-12 01:49:55
问题 We are developing an Banking Mobile application using MobileFirst Platform Foundation 7.1 which should be much secured. I implemented the normal IBM MobileFirst push notification in our application. Now client requirement is that to send some secured information to the customer as notification, hence want to send secured or encrypted push notification messages to the mobile client from MobileFirst server through GCM or APNS. Is there any built-in MobileFirst API available to fulfill the

Android App crashes when push is received and app is closed

别等时光非礼了梦想. 提交于 2019-12-12 01:44:02
问题 I'm developing an Android & iOS App with cordova. Current Version there is 2.2.0. I've got the following Java code to show the Push Notification: private void putNotification(String title, String message){ try{ Log.w("Push", "putNotification"); MainActivity context = MainActivity.getAppContext(); Log.w("Push", "context is set"); NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Log.w("Push", "notificationManager is set");

Ongoing Notification Disappears When Clearing Memory from the device in android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:42:53
问题 My problem is whenever I clear memory on "Task Manager/RAM" tab of my android device my notification disappears. What can I do to make my ongoing notification stay even if I clear memory? This is the class by which i send the notification :- public class GcmIntentService extends IntentService { public static final int NOTIFICATION_ID = 1; private NotificationManager mNotificationManager; private final static String TAG = "GcmIntentService"; private Context mContext; public GcmIntentService()

IBM Mobilefirst : App gets restarted when I click on the Notification

回眸只為那壹抹淺笑 提交于 2019-12-12 01:38:20
问题 I am developing android native app with MFP Integrated. I have Implemented MFP push notification and it works fine. I get the notification. But when I click the notification my app restarts. The actual issue was I have a splash activity which is launched on my app launch and where I am initializing all my MFP stuff and killing this activity taking the app to login activity. And in My manifest file I am defining my receiver as below. <activity android:name="SplashActivity" android:theme="

Android how to update (UI thread) from other classes (really?)

人走茶凉 提交于 2019-12-12 01:26:59
问题 you may know about Google Cloud Messaging The problem is that when a gcm message triggers by the server, my application receives a bundle from google play services, this happen at GcmBroadcastReceiver.java . Here i can send this data to other classes in order to append some info from the server.. well. I got stuck when i try to update, for example, some views in the UI thread. HOW I CAN DO THIS? Imagine that MainActivity.java is the UI thread when i declare the views, etc. I tried to create

Android - update client' sqlite database using GCM

一笑奈何 提交于 2019-12-11 23:23:19
问题 I am working on an android app with SQLite database. I want to implement the following feature: when there is new data available, clients' app will download the new data to its sqlite database automatically. I read a lot of relate posts, many people recommended that GCM is the best approach to do such function by creating a GCM server to send notification to clients' device. For example, this tutorial. However, it just display the message sent by GCM server on client's app. What should the

POST from Java or JS to GCM

北城以北 提交于 2019-12-11 23:04:05
问题 I know there are many different situations that resemble mine across stackoverflow, but I just couldn't make the connection. What I am trying to do, is to send a simple push notification to the GCM. I found two links for which I try to POST too. Note both these links work in this PHP script i found. https://gcm-http.googleapis.com/gcm/send https://android.googleapis.com/gcm/send I tried to send push notifications from JS to the GCM, but many people have stated that this can not because of

GCM to Chrome. General help. Unable to subscribe / no sender id

那年仲夏 提交于 2019-12-11 20:34:12
问题 So I'm working in VS2013 with .NET and I'm trying to figure out how to get Cloud Messaging(GCM) working for Chrome. What I want is to have it working like this sample: https://simple-push-demo.appspot.com/ So I dont wanna have to work with Android, it just has to work like the sample above where it works in Chrome without having to install an extension/webapp in Store. I've tried many samples and guides and tried changing it but I can't get anything to work. Atm. I'm using this sample code:

Android: Push Notification

有些话、适合烂在心里 提交于 2019-12-11 20:06:14
问题 I am developing an application. In that application i am using the GCM (Push Notification). I took help of this Link 1. and i successfully implemented the client side code. Now to send notification i am using the following link as : Link 2 But the issue is that i am ale to get the notification, but when i click on that nothing happens. What should i do, so that if user click on notification web page or update page etc opens. I used the same code as given in that link. No changes done so far

java.lang.NoClassDefFoundError: com.google.android.gms.common.GooglePlayServicesUtil

[亡魂溺海] 提交于 2019-12-11 19:37:04
问题 I'm trying to make a basic Google Cloud Messaging application, However, I get following error: 02-07 12:53:51.510 642-642/com.youtubemp3downloader E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.google.android.gms.common.GooglePlayServicesUtil at com.youtubemp3downloader.MainActivity.checkPlayServices(MainActivity.java:222) at com.youtubemp3downloader.MainActivity.onCreate(MainActivity.java:53) at android.app.Activity.performCreate(Activity.java:5008) at android