ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.55k stars 985 forks source link

action buttons for push notification from post request #5404

Closed MarwaAbuEssa closed 5 months ago

MarwaAbuEssa commented 2 years ago

Description

Hi,

I'm using capacitor push notification with google fcm service using https post request from our backend API and everything is working perfect . now I need to add action buttons with input . ex: I need the user when hold on the push notification to display aa button named reply and when select it an input display for the user to reply to the push notification.

like the attached images from MSteams

below is a sample of json data sent at the https post request

{ "to":"cwSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl", "notification" : { "id":"123545", "badge":1, "sound" : "short.wav", "body" : "test body", "title" : "test title", "subtitle":"test again" }, "data" : { "page" : "chat" } }

how can I add the action buttons and the input

Platform(s)

ios capacitor 3.3.4 ionic5

Preferred Solution

MicrosoftTeams-image (25)

Alternatives

Additional Context

jcesarmobile commented 5 months ago

closing in favor of https://github.com/ionic-team/capacitor-plugins/issues/213

ionitron-bot[bot] commented 4 months ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.