aws-amplify / amplify-flutter

A declarative library with an easy-to-use interface for building Flutter applications on AWS.
https://docs.amplify.aws
Apache License 2.0
1.33k stars 248 forks source link

Feature Request - In-app messaging for Flutter #2905

Open jamilsaadeh97 opened 1 year ago

jamilsaadeh97 commented 1 year ago

Description

I suggest In-App Messaging feature for Amplify Flutter like the one found in React Native.

Categories

Steps to Reproduce

No response

Screenshots

No response

Platforms

Flutter Version

3.7.7

Amplify Flutter Version

1.0.0

Deployment Method

Amplify CLI

Schema

No response

ClemPalf commented 1 year ago

Hi everyone,

I would also love to see this feature added to amplify-flutter. Specifically, I would like to send notifications to active users (opened apps), depending on custom back-end triggers.

I was considering push-notifications, but I don't want to rely on whether the user authorized them.

I was also considering websockets, but having to maintain a channel open for every active app seems like a really suboptimal solution. (Having to deal with the 10 minutes timeout + the cost of the channel that is used >1% of the time).

In app-messaging really seems to be the way to go, but if anyone has a temporary solution, I will gladly hear it.

Cheers,

abdallahshaban557 commented 1 year ago

Hi @ClemPalf - thank you for this feedback! We will for sure take it into consideration - I agree that based on your use case In-App messaging seems to be a good fit. I am curious to hear more about the 10 minute timeout piece - where does that come from?

ClemPalf commented 1 year ago

Hi @abdallahshaban557,
I was speaking of the Idle Connection Timeout set by API gateway on websocket connections.
I guess I could send "pings" to keep it alive, but that feels suboptimal, especially as it will be waiting for a notification that might never occur.

abdallahshaban557 commented 1 year ago

Hi @ClemPalf - got it - that makes sense. Thank you for that feedback!

patrick-hieber commented 10 months ago

@abdallahshaban557 is there already a roadmap when/if in app messaging will be available for Flutter?

abdallahshaban557 commented 10 months ago

Hi @patrick-hieber - I am no longer a part of the Amplify team, but @haverchuck can help in answering questions moving forward on Amplify Flutter!