I'm using Notification Hub with FCM to send notifications to my Android application. I want to set message priority and time to live property additionally with each notification but notification hub is expecting jsonpayload and tags in SendGcmNativeNotificationAsync method on HubClinet. I am not sure that how to add these additional properties in payload.
How to set time to live to GCM/ FCM payload in notification hub
1.7k views Asked by Rahul Garg At
1
There are 1 answers
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in GOOGLE-CLOUD-MESSAGING
- Bias correction for worldclim data for species distribution modeling?
- Unable to find users to notify with test with Azure Notification Hub version Google (FCM v1)
- Openssl AESNI-GCM table free benchmark
- .NET MAUI Android FireBase service OnMessageReceived strange behavior
- .NET MAUI on push notification click error is thrown: 'Window was already created'
- Flutter app not receiving notification from firebase in specific cases
- Is it possible to filter real-time developer notifications (RTDN) from Play Store
- Problem with Firebase push notification using php
- Google Cloud Pub/Sub integration in iOS
- decrpt data encrypted with aws kms offline
- Flutter getAPNSToken() returns null on real device
- FCM - connected NodeJS, I'm getting this error "code": "app/invalid-credential"
- Is it possible to set Kafka to receive a message in the topic with the name of the file that is uploaded to Google Storage?
- PHP Encrypt AES-256-GCM using Phpseclib and Decrypt with Javascript using crypto.subtle
- App has been flagged for GCM SDK usage even though we no longer use GCM SDK
Related Questions in FIREBASE-CLOUD-MESSAGING
- When using FCM, how to let my server know that the FCM service on the device is shutdown
- Send Push Notification with Firebase from one the device to another
- Why can I receive Firebase Notifications through the console but not through the server?
- Firebase push doesnt receive after init in other process
- Background notification also get muted on removing "sound" from presentationOptions in @capacitor-firebase/messaging?
- .Net Maui Firebase Push Notifications handling of notifications when App is closed/background
- issue of retrieving fcm token?
- NonCollapse Image FCM using Java
- Send push notification to my flutter app from backend
- How to subscribe to a firebase topic from a flutter app when the app is in background/terminated state?
- Flutter: Unstoppable Notification, FCM, Flutter Local Notification
- i want to get the FCM token
- Firebase Cloud Messaging with Flask: How can I send fcm_options link with the message from flask server?
- How to update my service worker for existing web push subscribers?
- Android FCM push notification not launching the application on click
Related Questions in AZURE-MOBILE-SERVICES
- I had an issue with the mobile app in D365 F&O
- What are the ways to implement Biometric (Fingerprint ) Authentication with Azure Ad (B2C) In React Native App (Android And IOS)
- MAUI OfflineSync Add/Delete working but Updating throws error
- How can I change the Id column name in Datasync Client Data object to MyId?
- Microsoft.Datasync.Client DatasyncClient with options.Offlinestore throws PushFailedException
- Syncing Azure Mobile Apps with deleted records
- Is there a way to ignore saving the operations in Azure Mobile Sync on the local, mobile device?
- WinUI 3: Replacement package for Deprecated namespace WindowsAzure.MobileServices
- Is everything from the table returned and the filtration is happening locally?
- Microsoft.Datasync.Client.SQLiteStore.SQLiteException: Unable to configure sqlite3 for URI connection strings
- Microsoft.Datasync.Client DatasyncClient with options.Offlinestore set throws Unable to configure sqlite3 for URI connection strings
- Azure Mobile Apps - Overriding the QueryAsync method with custom code in Table Controller
- ReplaceItemAsync in Azure Mobile Apps and offline sync DatasyncClient
- GetItemsAsync returns no items using .Net MAUI
- Custom queries with SQLiteLocalStore Azure
Related Questions in AZURE-NOTIFICATIONHUB
- How configure the Azure notification hub for testing without paying
- (400) BadRequest using Azure Notification Hub from an Azure Function when Test page is working
- Require payload format to send the notifications with action buttons like accept/reject using azure notification hub
- Is Azure Notification Hub using the FCM Legacy API
- Azure Push Notification Hub is not sending notification on Andriod device using FCM V1
- How to remove tags in Android for Azure's Firebase Cloud Messaging V1 (FCM) Library
- How is a messages sent to a specific user after it has been registred by the BackEnd using Azure Notification Hubs
- Register an iOS device
- What is the payload for register an iOS device?
- Push Notification on iOS with Azure Notification Hub and documentation
- Send push notification on progressive web app hosted on azure
- Device Registration to Azure Notification Hubs
- How to listen to Azure Notifications Hub events in browser?
- Flutter app With azure notification Hub - platform android and iOS platform
- NotificationHubJob is stuck on status "Started"
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
We can add these properties in our custom model in correct format and then convert it to json payload.
Call SendNotification method ans pass your model.Now you can convert your data with json converter but remember use lowercase setting in JsonConverter otherwise there might be expection on device. I have implementation of this in LowercaseJsonSerializer class.