firebase-cloud-messaging

Can my flutter app be configured at runtime to use a user custom FCM project settings?

梦想与她 提交于 2020-01-16 09:03:30
问题 I have developed a flutter app currently running on android, which uses Firebase Cloud Messaging (FCM) with an embedded google_services.json. However, I would like users to be able to create their own firebase project and for my app to be able to switch to use their project settings at runtime, rather than use my embedded project settings? Can I achieve this in flutter using the existing firebase_messaging (5.1.4) plug in? Or will this need to be customised in android/ios code? I am assuming

Firebase on Cordova doesn't trigger notifications on iOS Devices

人走茶凉 提交于 2020-01-16 01:08:26
问题 I'm making an app for iOS ed Android with Cordova. I've installed this plugin: phonegap-plugin-push and works on Android. So about iOS, i've installed che certificates in the Firebase project into console. Infact when i try to run notifications for testing i see this: 17 app users associated are the testing I've done about the token communications. The certificate was create .p8 certificates from apple developer console, and i think is correct what I done, because we can see the devices

The script resource is behind a redirect, which is disallowed. firebase cloud messaging

て烟熏妆下的殇ゞ 提交于 2020-01-15 11:46:19
问题 Hi from past one month our firebase app started giving this error. "The script resource is behind a redirect, which is disallowed." We've registered the firebase-messaging-sw.js at the root of the server , and it opens in the browser as well. The same code works great in localhost but gives this error on a public domain (cloudflare dNS) https://prnt.sc/orot3j Already tried solutions mentioned here : Firebase: change the location of the service worker Our current code : messaging = firebase

How to make it work NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);

不打扰是莪最后的温柔 提交于 2020-01-15 09:38:05
问题 NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID); was showing the error: Builder (Context) in Builder cannot be applied to (FirebaseMessagingService, java.lang.String) Help me to solve this problem. I tried Notification.Builder notificationBuilder = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID); and NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this); But it was not working in both API 23

Sending Firebase notification with PHP

不问归期 提交于 2020-01-15 01:21:27
问题 everyone! I am having a problem using PHP to send FIrebase notification. When I send it from Firebase console, I get the notification, but when I send it from PHP, I don't receive any notification. DO you have any idea what is the problem? Here is my PHP code: <?php $message = 'ojlaasdasdasd'; $title = 'ojla'; $path_to_fcm = 'https://fcm.googleapis.com/fcm/send'; $server_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5LnDZO2BpC2aoPMshfKwRbJAJfZL8C33qRxxxxxxxxxxxxL6'; $key = 'eqnlxIQ1SWA

Sending Firebase notification with PHP

大憨熊 提交于 2020-01-15 01:20:12
问题 everyone! I am having a problem using PHP to send FIrebase notification. When I send it from Firebase console, I get the notification, but when I send it from PHP, I don't receive any notification. DO you have any idea what is the problem? Here is my PHP code: <?php $message = 'ojlaasdasdasd'; $title = 'ojla'; $path_to_fcm = 'https://fcm.googleapis.com/fcm/send'; $server_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5LnDZO2BpC2aoPMshfKwRbJAJfZL8C33qRxxxxxxxxxxxxL6'; $key = 'eqnlxIQ1SWA

Migrate parse “deviceToken” to FCM registration token

旧巷老猫 提交于 2020-01-14 05:09:05
问题 I have thousands of users on Parse, and we are sending push notifications to them using parse. Now we are migrating to firebase and can't guarantee that all users will open the app so FCM gets the new FCM registration token. The question is can I send to old Parse users given I have their Parse device token (from installation table)? 回答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

Creating Messaging Topic On Cloud Function

折月煮酒 提交于 2020-01-14 04:50:06
问题 I'm trying to create Topic For each newly created groups. So I wrote this function for doing that operation. exports.createGroupTopic = functions.database.ref("groups/{groupid}/id") .onWrite(event=>{ var groupid = event.params.groupid; request({ url: "https://iid.googleapis.com/iid/v1/my_registration_token/rel/topics/topic_name", headers: { 'Content-Type':'application/json', 'Content-Length': 0, 'Authorization':'my API Key' } }, function (error, response, body){ console.log(response); }); });

Firebase - is user deleted from Audience if his User property is changed

左心房为你撑大大i 提交于 2020-01-14 03:44:16
问题 We have two Audiences based on the User Property which value is either true or false . And we send different Push Notifications to these 2 Audiences. At one point user's property value can be changed so I expect him to be deleted from one Audience and appear in another like it is described official docs: Using Remote Config with Analytics audiences has some limitations when audiences are not based on user properties. Specifically, users become permanent members of an audience after they are

Firebase Cloud Messaging and C# server side code

前提是你 提交于 2020-01-13 11:44:35
问题 I am using FCM in my Android and iOS app. The client side code is working correctly because from the Firebase console I can send notifications to both platforms with out any problem. With my C# code I can send notifications successfully to android devices but the notifications never appear on iPhone unless directly coming from the Firebase notification console. I don't know what gives. C# server-side code try { var applicationID = "application_id"; var senderId = "sender_id"; string deviceId