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.6k Views Asked by Rahul Garg At
1
There are 1 best solutions below
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
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
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
- 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?
- Xcode 8.1 Push Notifications in swift 2.3 with firebase integration not getting?
- FirebaseInstanceId: background sync failed: PHONE_REGISTRATION_ERROR, retry in 10s/20s/40s
- notification on background firebase show dialog when apps open
- FCM not getting in background after legacy key
- Android Firebase notifications (FCM)
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.