firebase-cloud-messaging

Firebase notification count restriction by topic on REST API

久未见 提交于 2020-03-05 07:14:07
问题 From my google search, we can send notifications to all users only from FCM console. Currently there is no support for that in REST API. But we can specify a topic in REST API and whoever subscribed to that topic will get the notification. Is there any restriction on user count on a single topic. What if 10k users subscribed to the topic and REST API choose that topic to send the notification. Will FCM send notification to all 10k users? I'm asking this because when i try to send notification

Firebase push notifications not working with iOS

情到浓时终转凉″ 提交于 2020-03-03 06:01:21
问题 I want to implement push notification using Firebase Cloud Messaging I have setup my project and uploaded APN certificate as explained and I am sending Test messages using fcmtoken to my real device my configuration is as follows in AppDelegate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() registerForPushNotifications(app: application) return true } func

How to make a GCM / FCM notification-type message non-collapsible

眉间皱痕 提交于 2020-02-27 09:05:11
问题 Google Cloud Messaging (GCM) support two types of push messages: "notification" messages and "data" messages. According to the documentation, notification messages are collapsible by default, while data messages are non-collapsible by default. In order to make a data message collapsible, you need to specifiy a collapseKey . My question is: How can you make a notification message non-collapsible? Note: The question applies to Firebase Cloud Messaging (FCM) as well. 回答1: The message concepts

Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver on Ionic

我们两清 提交于 2020-02-27 07:23:07
问题 i'm building app with ionic i have add firebase cloud message, everything work fine But today, when i build that show error. ionic cordova platform rm android remove plugins clear & clean cache remove package-lock.js npm i 6 ionic cordova platform add android 7 ionic cordova prepare 8 ionic cordova build android Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED 37 actionable tasks: 7 executed, 30 up-to-date D8: Program type already present: android.support.v4.os

Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver on Ionic

僤鯓⒐⒋嵵緔 提交于 2020-02-27 07:22:26
问题 i'm building app with ionic i have add firebase cloud message, everything work fine But today, when i build that show error. ionic cordova platform rm android remove plugins clear & clean cache remove package-lock.js npm i 6 ionic cordova platform add android 7 ionic cordova prepare 8 ionic cordova build android Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED 37 actionable tasks: 7 executed, 30 up-to-date D8: Program type already present: android.support.v4.os

Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver on Ionic

旧街凉风 提交于 2020-02-27 07:22:12
问题 i'm building app with ionic i have add firebase cloud message, everything work fine But today, when i build that show error. ionic cordova platform rm android remove plugins clear & clean cache remove package-lock.js npm i 6 ionic cordova platform add android 7 ionic cordova prepare 8 ionic cordova build android Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED 37 actionable tasks: 7 executed, 30 up-to-date D8: Program type already present: android.support.v4.os

How import device token into Firebase? I have JSON from parse.com

浪尽此生 提交于 2020-02-25 04:16:57
问题 I'm trying to switch the push message service. The new push service is Firebase. I have JSON with tokens from parse.com, but can't find how to import it in Firebase. 回答1: I'm pretty sure you can't just import the tokens used by parse.com to Firebase Cloud Messaging for use. What should be done is to register your client app users to FCM by adding it to your app. More details can be found in the Migrate your Parse Android App to Firebase (or if you're using iOS) docs: Suggested Migration

Does my web application require SSL for Firebase Cloud Messaging for Web to work? [closed]

独自空忆成欢 提交于 2020-02-25 04:16:31
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . With Firebase Cloud Messaging for Web, 1. Does my web application domain still require SSL? 2. Or only the service worker.js needs to be on an SSL site? if so, can I host the service worker on an SSL site but keep my web application on a non-SSL site? Any feedback is much

Does my web application require SSL for Firebase Cloud Messaging for Web to work? [closed]

两盒软妹~` 提交于 2020-02-25 04:15:43
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . With Firebase Cloud Messaging for Web, 1. Does my web application domain still require SSL? 2. Or only the service worker.js needs to be on an SSL site? if so, can I host the service worker on an SSL site but keep my web application on a non-SSL site? Any feedback is much

Firebase cloud messaging onMessage not triggered in React app even after message is sent

╄→尐↘猪︶ㄣ 提交于 2020-02-24 14:59:21
问题 I am testing out the Firebase Cloud Messaging function in my React app which was bootstrapped with create-react-app. Note that I have already intialized firebase (including admin SDK on server-side) properly and my client side is deployed on https. What I did so far was to: Initialize firebase messaging in firebase.js, and also request for notification permission and listen out for onMessage event const messaging = firebase.messaging(); messaging .requestPermission() .then(() => { console.log