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
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
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?
Related Questions in FIREBASE-CLOUD-MESSAGING
- How to implement Google Cloud Messaging - Topic Messaging in Chrome?
- Android Push Notifications: Icon not displaying in notification, white square shown instead
- push notification with cordova and firebase Cloud messaging:registrationID keep changing
- Can not resolve symbol "FirebaseMessagingService"
- Firebase Messaging Unity Plugin shows notifications only in foreground
- How to send activity to Firebase Message value or call activity?
- Android - Firebase notifications not working
- Show Dialog when touch notification on Android
- FCM + Swift 3 - Notifications not appearing
- What is the difference between deviceToken of type Data and Fir InstanceID token of type optional String in Swift - IOS?
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
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
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?
Popular Tags
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.