Outsystems 11Plugin: FirebaseMiddleware
I am trying to send reminder notifications to user everyday, but it seems that if user does not open app, user will get multiple notifications. I do not use separate notifications for each user, because user does not have to login to application. That is why I am using SendNotificationToTopic-method.So is it possible to set this "Expires" option, which is available in Firebase console?
Hi Jay,
That is called TTL, time to live, property in android context and can be set through customization to the plugin unless I missed an input parameter already available for the plugin. Here are the details if you want to understand more about it:
https://firebase.google.com/docs/cloud-messaging/concept-options#ttl
Akshay Puri wrote:
Thank you for pointing that correct attribute:
"android":{ "ttl":"4500s" }, "webpush":{ "headers":{ "TTL":"4500" } }
Any idea where that TTL parameter should be set in FirebaseMiddleware method call?
I think you will have to add the additional structure attribute in the request to send this through like:
Is it supported only for Android or is there a support for iOS also?
I was thinking that does it work, if add that "ttl" and e.g. "86340s" in ExtraData variable and add it in ExtraDataList as item
"apns":{ "headers":{ "apns-expiration":"1604750400" } }