google-cloud-messaging

Migrate from gcm to fcm in the server

眉间皱痕 提交于 2021-02-08 07:49:08
问题 in this article (https://developers.google.com/cloud-messaging/android/android-migrate-fcm#update-server-endpoints) it says that for migrating from gcm to fcm all you need to do in the server is change the endpoint. but how do i do this? currently i'm using gcm client library for Java. what exactly do i need to do? i couldn't find anywhere instruction how to update the endpoint. do i need to stop using the gcm client library and move to the fcm client library? 回答1: There is no FCM client

Migrate from gcm to fcm in the server

∥☆過路亽.° 提交于 2021-02-08 07:48:57
问题 in this article (https://developers.google.com/cloud-messaging/android/android-migrate-fcm#update-server-endpoints) it says that for migrating from gcm to fcm all you need to do in the server is change the endpoint. but how do i do this? currently i'm using gcm client library for Java. what exactly do i need to do? i couldn't find anywhere instruction how to update the endpoint. do i need to stop using the gcm client library and move to the fcm client library? 回答1: There is no FCM client

How to send message to multiple android devices using FCM in Node js?

烈酒焚心 提交于 2021-02-07 19:49:37
问题 I tried sending message to single device i.e. to single Registration id and it worked fine but when tried to add multiple Registration Ids it gives 'InvalidServerResponse' error. e.g. Works for regTokens = 'regId1'; But doesn't work for regTokens = ['regId1','regId2']; var FCM = require('fcm-node'); // Add API Key var fcm = new FCM('<server-key>'); exports.sendMessage = function (regTokens, messageToSend, callback) { var message = { //this may vary according to the message type (single

How to implement firebase cloud messaging in server side?

社会主义新天地 提交于 2021-02-06 10:20:47
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

How to implement firebase cloud messaging in server side?

老子叫甜甜 提交于 2021-02-06 10:20:25
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

How to implement firebase cloud messaging in server side?

牧云@^-^@ 提交于 2021-02-06 10:20:07
问题 After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googleapis.com/fcm/send but my device doesn't receive any notification. Is there any way to solve this? Or did I miss anything? my cron job is working fine for my devices that is

BroadcastReceiver when app is in background

给你一囗甜甜゛ 提交于 2021-01-28 04:46:42
问题 i am trying to write an app where i do changes to the UI depending on the msgs i send with gcm push notifications and i manged to do so by using BroadcastReceiver onReceive function to implement it but it only work if the app is in foreground but if it was in background or closed nothing happen so any way around that? edit1: in the manifest file if i understood ur question right <receiver android:name="com.google.android.gms.gcm.GcmReceiver" android:exported="true" android:permission="com

Stop application getting notification from fcm/gcm

北城以北 提交于 2021-01-27 12:55:55
问题 I know some android app like chat applications use FCM or GCM from google services to send new messages notification to their users. Now I want to know there is any way from android devices setting to stop getting notifications from FCM OR GCM . Thanks. 回答1: You can not stop FCM/GCM service only on your device. but you can stop overall notifications of an app from AppInfo as shown below: Go to AppInfo > App Notifications and turn off the toggle to disable the notifications. Below is

Plugin with id 'com.google.gms.google-services' not found

南笙酒味 提交于 2020-12-10 07:36:07
问题 I am using google services at the very first time in my app(ionic platform). I am following this doc. While building my app, I got the following error message. Please help out. Thank you. A problem occurred evaluating script. Plugin with id 'com.google.gms.google-services' not found. 回答1: Please add the plugin to your project by updating your top-level build.gradle and your app-level build.gradle files as follows: Add the dependency to your project-level build.gradle: classpath 'com.google