google-cloud-messaging

Some device dont's receive push notification

℡╲_俬逩灬. 提交于 2019-12-13 02:29:37
问题 I implemented GCM push notification with play services 8.4 and sending via php with high priority. In my Android 4.3 I receive the message, even if after a few minutes while a J5 Samsung with Android 5.1 can take several hours and sometimes is not even received. I followed the google implementation guidelines for the gcm. In diagnosing GCM for the J5 of the message tracking token it is indicated as received by GCM but nothing else. J5 on other applications (whatsapp) receive notifications

Android GCM Push notifications not received on some latest OS (Oreo and Pie)

纵饮孤独 提交于 2019-12-13 02:27:28
问题 We're using GCM for push notification for our app with target release to 26. But on some devices with OS(Oreo and Pie) notifications are not received. We have implemented push notification channels as well.For mostly users it worked but some users face this issue. Details: Play services GCM version: 11.0.4 compileSdkVersion 26 targetSdkVersion 26 Any help would be appreciated. Thanks 来源: https://stackoverflow.com/questions/54017617/android-gcm-push-notifications-not-received-on-some-latest-os

Could not find com.google.firebase:firebase-core:9.0.0?

假如想象 提交于 2019-12-13 02:22:41
问题 In my app, I am trying to use gcm services, but I cannot even get gradle to compile. I keep getting the message that I am missing 'firebase core' though I have no idea how to install this. This is my top-level gradle file: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath "io.realm:realm-gradle-plugin:1.1.0" classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.google.gms:google-services:3.0.0' } }

Migrating from GCM to latest FCM but get the same Token

六月ゝ 毕业季﹏ 提交于 2019-12-13 02:14:14
问题 I used to upgrade my other APP from GCM to FCM, and when the user already installed the App on their device, the first time they open after migration, I assumed they get FCM token that is different from the original GCM token (Sorry I'm not very sure, it's a long time ago). In that App, the FCM version is 11.8.0. And now in my current migrating App, I'm migrating from GCM to the latest FCM version which is 17.3.4. When I tried to just copy and paste my code, I found out I need to make some

Android - Push notification blank when not on top of the bar

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 02:09:48
问题 I'm having a small issue with android push notifications If there are 3 Notifications and only one of these displays the title and the message. The one which is on the top of the bar. If anyone has any idea what might be the issue please let me know Refer image on this link, this is how i am able to receive notifications http://postimg.org/image/3z4a21ssp/ public void createNotification(Context context, Bundle extras) { NotificationManager mNotificationManager = (NotificationManager)

google gcm raw_data (payload encryption) , push event not received

时光怂恿深爱的人放手 提交于 2019-12-13 02:08:06
问题 I need some help because i never receive push event in my serviceworker after payload encryption. First case without payload encrypted In this case, I receive push event in service worker: Request is : curl -s --header "Authorization: key=MY_KEY" --header "Content-Type: application/json" --header "TTL:86400" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"elmll0-ynBY:APA91bFe7xBGti92H4yrWo2bJT6aMY3IKo3j54yRGtS0NNQYpkqmI5f14EKSPz6_GCEs2PaX6zCD3Lvk

Link of class 'Lcom/google/android/gms/gcm/GcmReceiver;' failed

岁酱吖の 提交于 2019-12-13 02:06:03
问题 it's been two days that I'm on this Issue I'm trying to integrate GCM on an android app on eclipse environment. Everything works like a charm but once I have to receive the push notification message I have 03-07 12:19:43.725: W/dalvikvm(4364): Unable to resolve superclass of Lcom/google/android/gms/gcm/GcmReceiver; (331) 03-07 12:19:43.725: W/dalvikvm(4364): Link of class 'Lcom/google/android/gms/gcm/GcmReceiver;' failed 03-07 12:19:43.730: D/AndroidRuntime(4364): Shutting down VM 03-07 12:19

How to register android device for receiving Push notifications via App Engine backend?

点点圈 提交于 2019-12-13 01:24:51
问题 I have created the sample android project with Android app and App Engine as a backend using this tutorial. But on the step 2.4, I am stuck in showing push notifications from GCM backend. When I debug, I found that there are 0 registered device in my RegistrastionRecord. So, how to correctly register the app for receiving push notifications using App Engine local backend? I got this error: Failed to complete token refresh com.google.api.client.googleapis.json.GoogleJsonResponseException: 404

how to put the settings functionality for GCM Push Notification on/off inside the app in android?

女生的网名这么多〃 提交于 2019-12-13 00:44:26
问题 I am integrating GCM notification, this is working fine. Now i am adding toggle button of on/off notification.I stops/start service but no success. Please suggest how to manage service and receiver? my code is below. public class GCMIntentService extends GCMBaseIntentService { private static final String TAG = "GCMIntentService"; public GCMIntentService() { super("123456789123"); } /** * Method called on device registered **/ @Override protected void onRegistered(Context context, String

PendingIntent not working when adding extras in intent

你说的曾经没有我的故事 提交于 2019-12-13 00:34:15
问题 I have GCMIntentService implemented and whenever i get the push notification i need to show the notification in notification menu and open an activity with some bundle values in the intent. I can see the notification in the notification menu but clicking on it just doesn't do anything. Following is the code which i am using :- mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE); Intent i = new Intent(this, ChatDetail.class); Bundle b = new Bundle()