firebase-cloud-messaging

Swiftui: How can I navigate to a specific NavigationLink when user clicks on push notification?

久未见 提交于 2020-05-07 06:04:27
问题 I am using FCM with my ios push notification. How can I navigate to a specific navigation link when the user taps the push notification. Thank you in advance for your help! I understand that I will handle the push notification tap on this function. func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { let userInfo = response.notification.request.content.userInfo // Print

How to send scheduled message via HTTP POST? [duplicate]

情到浓时终转凉″ 提交于 2020-04-30 07:35:27
问题 This question already has answers here : FCM Schedule delivery date or time of push notification (1 answer) How to send firebase notifications to audience via HTTP (4 answers) Closed 3 years ago . In FB Console, I can schedule the message to be sent at later time. Is this possible to do with HTTP POST from my server? Something like this: { "to" : "/topics/news", "at": "2016-01-13T14:55", "data" : { "message": "sync" } } 回答1: Unfortunately, as of the moment, no such parameter exists that can

Firebase push notification is not generated when app is killed in android?

天涯浪子 提交于 2020-04-18 12:33:15
问题 Sorry for bad english!!! I am developing my final year project where i need a chat box. i have successfully develop the chat system. but there is little bit of problem with notification. When my app is running on device it receives all the notifications but after killing or closing the application no notification arrived on y device. i have tested it on many devices but all in vain. Please help on this because i have to submit this on next monday. public class MyFirebaseMessagingService

Firebase push notification is not generated when app is killed in android?

烂漫一生 提交于 2020-04-18 12:33:03
问题 Sorry for bad english!!! I am developing my final year project where i need a chat box. i have successfully develop the chat system. but there is little bit of problem with notification. When my app is running on device it receives all the notifications but after killing or closing the application no notification arrived on y device. i have tested it on many devices but all in vain. Please help on this because i have to submit this on next monday. public class MyFirebaseMessagingService

Firebase cloud messaging HTTP v1 send error - 400 Client Error: Bad Request for url: https://fcm.googleapis.com/v1/projects/<PROJECT_ID>/messages:send

给你一囗甜甜゛ 提交于 2020-04-18 06:22:09
问题 I try to use Firebase cloud messaging HTTP v1 Here's the Python code which run under Windows import json import requests from google.oauth2.service_account import Credentials import google.auth.transport.requests def _get_access_token(): credentials = Credentials.from_service_account_file( 'C:/yocto/wenote-notification/send_notification/wenote-206215-firebase-adminsdk-9fpls-a3fdd2934c.json', scopes=['https://www.googleapis.com/auth/firebase.messaging'] ) request = google.auth.transport

Firebase Cloud Messaging not showing notification bar when app is open

。_饼干妹妹 提交于 2020-04-17 09:37:02
问题 I tried to test my app with sending the notification via console in firebase cloud messaging, But when my app in the foreground or still running. The notification do not show in the device and the log in the firebase messaging service is triggered. But when i destroy my app, the notification work nicely. This is my manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com

Firebase Cloud Messaging not working with Samsung Internet

爱⌒轻易说出口 提交于 2020-04-17 06:03:39
问题 I'm setting up Firebase Cloud Messaging to do push notifications on the web. It works but only with Chrome (Windows and Android) and Firefox(Android) so far. It's not working on Samsung Internet Browser (the browser that comes pre-installed on Samsung's phones) and I haven't gotten a chance to test on iOS so far. I've tried adding the sender id as gcm_sender_id to the Cloud Function I'm using as well as to the manifest.json file to no avail. Below is how the notification body is set up. //

Flutter firebase push notification not routing to specific page

ぃ、小莉子 提交于 2020-04-16 05:48:13
问题 I am trying to navigate to a specific page when a notification is clicked. The onResume and onMessage callbacks are invoked when I click on the notification and I can see the message in the log screen. However, when I try to navigate to a specific page, I am not able to do that and there is no error message in the log too. P.S. When I used a Navigator key to access the state of the context(since in initState, the navigator cannot be used) I got an error saying no context to build. What is the

How to send push Notification using FCM and Flutter(One to Another Device)?

天涯浪子 提交于 2020-04-11 12:38:25
问题 I have devloped One to one chat system in flutter and want to send push notification to another device using FCM. I have setup all the flutter and firebase messaging requirement. //In InitState() _firebaseMessaging.onTokenRefresh.listen(sendTokenToServer); _firebaseMessaging.getToken(); _firebaseMessaging.configure(onLaunch: (Map<String, dynamic> msg) { print("onLaunch"); Navigator.push( context, MaterialPageRoute(builder: (context) => Message(this.user, this.event)), ); }, onResume: (Map

Firebase push notifications not working properly in some devices

╄→尐↘猪︶ㄣ 提交于 2020-04-10 08:35:30
问题 For push notification am using FCM. Iam facing some problem in VIVO V3 phones. Same code works in other devices (Blackberry,Huawei,Samsung) with all below scenarios I have tested with 3 Scenarios; When app is in foreground. When app is in background. When app is in completely kills. The first 2 condition is working well.Only the problem with 3rd one.When app kills am not getting any notification. The below code using at server side to send Data Notification message, { "to" : "bk3RNwTe3H0:CI2k