google-cloud-messaging

Google FCM Server: 200 but no notification sent to phone

a 夏天 提交于 2020-02-21 18:25:13
问题 I am working via Postman to send a FCM push notification to my phone that already has the app installed. I have push notifications enabled, the app is on the background, and I have a valid (confirmed) Firebase push token. I'm POSTing to https://fcm.googleapis.com/fcm/send with the headers (Authorization: key=APP_SERVER_KEY, Content-Type: application/json), and my body looks like: { "notification": { "title": "Portugal vs. Denmark", "text": "5 to 1" }, "to": MY_PUSH_TOKEN } I'm getting the

Google App Engine Java and Android Getting Started

徘徊边缘 提交于 2020-02-21 12:53:26
问题 I've been struggling to get the example running from below: https://developers.google.com/eclipse/docs/getting_started The first problem I had was didn't have installed 'Google Cloud Messaging for Android Library' in the Android SDK (obvious I know). But now I have an issue with the auto-generated code in two files in the Android project: GCMIntentService.java and RegisterActivity.java The errors are: The method getDeviceInfo(String) is undefined for the type Deviceinfoendpoint

Google App Engine Java and Android Getting Started

人走茶凉 提交于 2020-02-21 12:49:00
问题 I've been struggling to get the example running from below: https://developers.google.com/eclipse/docs/getting_started The first problem I had was didn't have installed 'Google Cloud Messaging for Android Library' in the Android SDK (obvious I know). But now I have an issue with the auto-generated code in two files in the Android project: GCMIntentService.java and RegisterActivity.java The errors are: The method getDeviceInfo(String) is undefined for the type Deviceinfoendpoint

Google App Engine Java and Android Getting Started

你离开我真会死。 提交于 2020-02-21 12:47:07
问题 I've been struggling to get the example running from below: https://developers.google.com/eclipse/docs/getting_started The first problem I had was didn't have installed 'Google Cloud Messaging for Android Library' in the Android SDK (obvious I know). But now I have an issue with the auto-generated code in two files in the Android project: GCMIntentService.java and RegisterActivity.java The errors are: The method getDeviceInfo(String) is undefined for the type Deviceinfoendpoint

How to update the content of view pager once it is initialized?

人盡茶涼 提交于 2020-02-08 07:20:51
问题 I have a view pager in the MainActivity , this view pager contains two tabs RecentFeed and SavedFeed both uses the same FeedFragment as both has same layout Now I want to update the contents of these fragments when a new gcm message is recieved or there occurs a change in my database here is what have done so far : I created a changelistening interface as follows- public interface OnDatabaseChangeListener { void onChange(); } Then used this in helper class to notify changes as follows private

How to update the content of view pager once it is initialized?

白昼怎懂夜的黑 提交于 2020-02-08 07:20:08
问题 I have a view pager in the MainActivity , this view pager contains two tabs RecentFeed and SavedFeed both uses the same FeedFragment as both has same layout Now I want to update the contents of these fragments when a new gcm message is recieved or there occurs a change in my database here is what have done so far : I created a changelistening interface as follows- public interface OnDatabaseChangeListener { void onChange(); } Then used this in helper class to notify changes as follows private

How to update the content of view pager once it is initialized?

不打扰是莪最后的温柔 提交于 2020-02-08 07:19:21
问题 I have a view pager in the MainActivity , this view pager contains two tabs RecentFeed and SavedFeed both uses the same FeedFragment as both has same layout Now I want to update the contents of these fragments when a new gcm message is recieved or there occurs a change in my database here is what have done so far : I created a changelistening interface as follows- public interface OnDatabaseChangeListener { void onChange(); } Then used this in helper class to notify changes as follows private

FCM returning MismatchSenderId

╄→гoц情女王★ 提交于 2020-02-05 20:35:13
问题 I think I have completed every step necessary to convert my messaging app from GCM to FCM but it is not working. FCM is currently returing MismatchSenderId. I have the following services defined in my AndroidManifest.xml . <service android:name=".MyFcmListenerService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service> <service android:name=".MyFirebaseInstanceIDService"> <intent-filter> <action android:name="com.google.firebase.INSTANCE

FCM returning MismatchSenderId

前提是你 提交于 2020-02-05 20:32:07
问题 I think I have completed every step necessary to convert my messaging app from GCM to FCM but it is not working. FCM is currently returing MismatchSenderId. I have the following services defined in my AndroidManifest.xml . <service android:name=".MyFcmListenerService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service> <service android:name=".MyFirebaseInstanceIDService"> <intent-filter> <action android:name="com.google.firebase.INSTANCE

Is there a point in collecting registration tokens when using only the GCM Topics?

北慕城南 提交于 2020-02-04 03:48:15
问题 I'm currently implementing Google Cloud Messaging into my app. Basically my app has categories and I need my users to be notifed about recurring events in those categories. I decided to use GCM Topics as a simple way to notify all the users subscribed to a specific category (I will have about 200-300 topics). My question is : Since I don't plan on notifying a single user but instead all users subcribed to a specific topic, is there a point in collecting the registration tokens on my server ?