firebase-cloud-messaging

Default sound not playing in Android v9 but working on Andoird v7 - ionic v3 cordova push plugin

烈酒焚心 提交于 2020-01-04 02:02:10
问题 I am using FCM to send notification on my app. below are the screenshots, how I am doing. As you can see I enabled the sound, and it is working on Android v7 but not on my other device with Android v9 Here is the code on my ionic app... pushSetup() { this.push.hasPermission().then((res: any) => { if (res.isEnabled) { console.log("We have permission to send push notifications"); } else { console.log("We do not have permission to send push notifications"); } }); // Create a channel (Android O

Group fcm notifications like whatsapp but allowing multiple group notifications

微笑、不失礼 提交于 2020-01-04 01:59:10
问题 I am not sure whether this is entirely possible but I'll state my requirement. If it is possible then kindly help me figure out how to do it. Let's say I have a gallery kind of an android app. When the user likes or comments on a photo in the gallery, We'd trigger an fcm notification using the code given below value++; NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.notification) .setLargeIcon(rawBitmap) .setContentTitle("MyApp")

Sending FCM push in Node

我的未来我决定 提交于 2020-01-03 20:04:04
问题 I've got problem with sending message to Firebase Cloud Messaging by Node application. request({ url: 'https://fcm.googleapis.com/fcm/send', method: 'POST', headers: { 'Content-Type' :' application/json', 'Authorization': 'key=AIzaSyAF9cvEThRo3ZlWCLuSU5k6W9kk0uumkLM', 'project_id': '83933810320' }, body: JSON.stringify( { "data": {'notification': notification, _id: _id, action: action}, "registration_ids" : registration_ids, "content_available": true, } ) }, function(error, response, body) {

Open particular activity/fragment after clicking on Firebase notification when app is closed

房东的猫 提交于 2020-01-03 16:50:12
问题 I know this question seems duplicate, but for my requirement, I have searched many posts online, but nothing worked for me. My requirement I'm using the Firebase to get the push notifications. When app was opened means everything working fine but my problem is, app is in background/closed if any push notification came means i want to open the particular activity or fragment when clicking on that notification, but it always opening the launcher/main activity. For this, I have tried the

Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

时光怂恿深爱的人放手 提交于 2020-01-03 11:02:30
问题 My app integrates FCM to receive push notifications and it works okay. However, I am facing issue that on installation it crashes randomly. It is very random and occurring on OS 6.0+ devices till latest but randomly occurs. Code wise, in service class only show notification code is written and added service in manifest. I am getting below exception on app loads Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver:

Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

好久不见. 提交于 2020-01-03 11:02:22
问题 My app integrates FCM to receive push notifications and it works okay. However, I am facing issue that on installation it crashes randomly. It is very random and occurring on OS 6.0+ devices till latest but randomly occurs. Code wise, in service class only show notification code is written and added service in manifest. I am getting below exception on app loads Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver:

Send notification to only one user in firebase [closed]

五迷三道 提交于 2020-01-03 08:52:46
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . I have an android app and I want to send notifications to only one user when data is change. How can I do that. Tell ma part of code I put in OnDataChange() Method. 回答1: You can make topic for this user and subscribe to that topic then Firebase allow us to send message to specific topic using topic

Send notification to only one user in firebase [closed]

我怕爱的太早我们不能终老 提交于 2020-01-03 08:52:31
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . I have an android app and I want to send notifications to only one user when data is change. How can I do that. Tell ma part of code I put in OnDataChange() Method. 回答1: You can make topic for this user and subscribe to that topic then Firebase allow us to send message to specific topic using topic

Problems with Google Developer Console - Sender ID for GCM

陌路散爱 提交于 2020-01-03 06:34:31
问题 I'm not a developer, but a graphic that needs to publish a digital kiosk magazine made with twixl platform. I followed the steps of the twixl documentation to create a Sender ID for notifications on Android ( FCM/GCM ). I created an app where I associated a Sender ID (API key) and everything worked. I also have the statistics for a few days in which the app was active. For certificate problems, however, I had to cancel this publication and do another, from the same account ( app@pizzanew.it )

Problems with Google Developer Console - Sender ID for GCM

只愿长相守 提交于 2020-01-03 06:33:19
问题 I'm not a developer, but a graphic that needs to publish a digital kiosk magazine made with twixl platform. I followed the steps of the twixl documentation to create a Sender ID for notifications on Android ( FCM/GCM ). I created an app where I associated a Sender ID (API key) and everything worked. I also have the statistics for a few days in which the app was active. For certificate problems, however, I had to cancel this publication and do another, from the same account ( app@pizzanew.it )