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 best solutions below
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
- Android: Transferring Data via ContentIntent
- Unable to receive extras in Android Intent
- ACCESS_COARSE_LOCATION merged from play-services-base lib
- How to handle RabbitMQ with mobile apps
- Xamarin Google Cloud Messaging GcmClient.CheckDevice(this) causes runtime error
- Why is my own sender ID getting back an InvalidRegistration message?
- unable to register (com.google.iid error 1005.)
- New GCM google-services.json and plugin needed?
- Xiaomi does not receive a notification when the application is not running
- How to implement Google Cloud Messaging - Topic Messaging in Chrome?
- Is it possible to send push notifications as per user preference(Time) from parse?
- GCM set expiration date for push notifications
- JPush works all over the world?
- Identifying Sender of Upstream GCM Message
- Deleting Repeated Services from Android GCM Config File
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
- Using Azure MobileServices library with my own LAN WebApi
- Fetch new rows - Azure Mobile Services
- Azure mobile services custom authentication intergated with asp net website identity
- App_Data directory not published with Azure Mobile Services
- How do you get the Id field for a newly inserted item using the .NET client for Azure Mobile
- azure method blows up if the records does not exist
- Windows Phone 8.1 universal app, Navigate to a particular on tapping of receive Push Notification
- Connect a Windows Phone 8.1 Store App to an Existing Azure SQL Database
- Android mobile Azure service (SDK) response returning empty array
- AngularJS binding not occurring on page until a user action
- HTML5 Push Notifications - examples of other ways to push
- InvalidOperationException in Mobile Service Initialization
- Azure ios application authentication error
- Unable to connect to azure sql server
- Azure Mobile Services: migrate to non-Azure Windows Server
Related Questions in AZURE-NOTIFICATIONHUB
- Multiple Push-Registrations for one Channel
- Send template-notification to tile and toast once
- Azure Mobile Apps: How to broadcast a cross platform message to Droid + iOS
- Azure Notification Hub direct send java
- Azure Mobile SDK to register Xamarin clients with Notification Hub?
- How to change the NOTIFICATION HUBS billing tier using powershell?
- Xamarin forms Activity has been destroyed
- How to set expiration date for azure notification hub registration android
- How to set time to live to GCM/ FCM payload in notification hub
- azure CreateNotificationHub with Sandbox programmatically
- QuotaExceededException: The remote server returned an error: (403) Forbidden. The request was terminated because the namespace XXX is being throttled
- Azure Notificationhub - PN send working in sandbox but not in production
- azure notification hub send with templateHub
- azure notification hub tag limits
- How to register devices to Azure Notification Hub from server side(with NodeJS sdk) ?
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)
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?
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.