firebase-notifications

Google Analytics for Android. Users that receive notifications are counted as active

北慕城南 提交于 2021-02-07 13:35:53
问题 I am using Google Analytics in my apps and it works correcly. However, if I have, lets say, 100 active users daily, and then I send a notification, I have a peak of 1000 connected users counted as "active". I don't know if there is an easy way to prevent these users to count as active. Most of them will not open the notification and I don't want them to count as active. I want to count only the users that open the app, not all who received the notification. I am using "body" field in the

Google Analytics for Android. Users that receive notifications are counted as active

安稳与你 提交于 2021-02-07 13:34:44
问题 I am using Google Analytics in my apps and it works correcly. However, if I have, lets say, 100 active users daily, and then I send a notification, I have a peak of 1000 connected users counted as "active". I don't know if there is an easy way to prevent these users to count as active. Most of them will not open the notification and I don't want them to count as active. I want to count only the users that open the app, not all who received the notification. I am using "body" field in the

Google Analytics for Android. Users that receive notifications are counted as active

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 13:34:29
问题 I am using Google Analytics in my apps and it works correcly. However, if I have, lets say, 100 active users daily, and then I send a notification, I have a peak of 1000 connected users counted as "active". I don't know if there is an easy way to prevent these users to count as active. Most of them will not open the notification and I don't want them to count as active. I want to count only the users that open the app, not all who received the notification. I am using "body" field in the

Exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

我只是一个虾纸丫 提交于 2021-02-07 08:00:00
问题 for firebase notification code WebRequest tRequest = WebRequest.Create("https://fcm.googleapis.com/fcm/send"); tRequest.Method = "post"; tRequest.ContentType = "application/json"; var data = new{collapse_key = "unassigned", to = deviceToken,data = new {body = message,title = title,sound = "default"} }; message to pass for notifaction on mobile var serializer = new JavaScriptSerializer(); var json = serializer.Serialize(data); Byte[] byteArray = Encoding.UTF8.GetBytes(json); tRequest.Headers

Exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

廉价感情. 提交于 2021-02-07 07:58:44
问题 for firebase notification code WebRequest tRequest = WebRequest.Create("https://fcm.googleapis.com/fcm/send"); tRequest.Method = "post"; tRequest.ContentType = "application/json"; var data = new{collapse_key = "unassigned", to = deviceToken,data = new {body = message,title = title,sound = "default"} }; message to pass for notifaction on mobile var serializer = new JavaScriptSerializer(); var json = serializer.Serialize(data); Byte[] byteArray = Encoding.UTF8.GetBytes(json); tRequest.Headers

Exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

放肆的年华 提交于 2021-02-07 07:57:31
问题 for firebase notification code WebRequest tRequest = WebRequest.Create("https://fcm.googleapis.com/fcm/send"); tRequest.Method = "post"; tRequest.ContentType = "application/json"; var data = new{collapse_key = "unassigned", to = deviceToken,data = new {body = message,title = title,sound = "default"} }; message to pass for notifaction on mobile var serializer = new JavaScriptSerializer(); var json = serializer.Serialize(data); Byte[] byteArray = Encoding.UTF8.GetBytes(json); tRequest.Headers

How to send message from Firebase to device when app is killed? [duplicate]

耗尽温柔 提交于 2021-02-06 11:01:38
问题 This question already has answers here : Android app not receiving Firebase Notification when app is stopped from multi-task tray (6 answers) Closed 4 years ago . I am trying to get familiar with Firebase Notifications. It works fine, but I am stuck with receiving messages from the notification console when the app is not turned on. I know that documentation says that: if your app in foreground or background you can receive message in onMessageReceived method, otherwise user will receive

Changing application server key in push manager subscription

随声附和 提交于 2021-01-28 10:50:35
问题 I implemented web push notifications using service worker. I collected user subscriptions with a particular application server key. Suppose if we change the application server key, then when we get the subscription using "reg.pushManager.getSubscription()", we will get the old subscription information which was created using the old application server key. How to handle this scenario? How to get the new subscription from the user? 回答1: Get the subscription using reg.pushManager

Changing application server key in push manager subscription

早过忘川 提交于 2021-01-28 10:43:18
问题 I implemented web push notifications using service worker. I collected user subscriptions with a particular application server key. Suppose if we change the application server key, then when we get the subscription using "reg.pushManager.getSubscription()", we will get the old subscription information which was created using the old application server key. How to handle this scenario? How to get the new subscription from the user? 回答1: Get the subscription using reg.pushManager

Open activity on firebase notification received in foreground

妖精的绣舞 提交于 2020-12-01 10:05:39
问题 When my application is open and I receive a notification I want to be able to open the activity associated immediately without the need of the user to tap on the notification. This question is very similar: Open app on firebase notification received (FCM) But it opens the app when it is in background, I need to do it when my app is in foreground. From the firebase documentation: Notifications delivered when your app is in the background. In this case, the notification is delivered to the