amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

PubSub category for Flutter

Open andrewcrayden opened this issue 2 years ago • 38 comments

The AWS Amplify PubSub category is only available for JavaScript based projects. Is this category on the Flutter roadmap?

andrewcrayden avatar Oct 27 '21 18:10 andrewcrayden

+1 waiting for this feature for a long time

pdt590 avatar Nov 08 '21 13:11 pdt590

+1 please make this happen

Vingtoft avatar Dec 03 '21 14:12 Vingtoft

+1 from me as well, using mqttclient with SigV4 urls is way to much just to authenticate. Iot is fueled by mobile and flutter is already gaining a momentum so i think this is a VERY much needed in order to increase Amplify consumption.

amizer12 avatar Dec 28 '21 23:12 amizer12

we are waiting for this feature anyway, I think they are very important!

miguelflores1993 avatar Jan 06 '22 14:01 miguelflores1993

we are waiting for this feature anyway, I think they are very important!

@flutteresbolivia - We are currently exploring what it would take to enable this for our flutter developers. Can you give me a high level understanding of the use cases you have?

abdallahshaban557 avatar Jan 06 '22 16:01 abdallahshaban557

estamos esperando esta función de todos modos, ¡creo que son muy importantes!

@flutteresbolivia : actualmente estamos explorando lo que se necesitaría para habilitar esto para nuestros desarrolladores de flutter. ¿Puede darme una comprensión de alto nivel de los casos de uso que tiene?

the application that we develop in real time almost 80%! We use services such as Pusher that are paid to meet the client's expectations, but this comes with high prices since the service is expensive.

for the same reason we hope this library to implement in our project, in order to use all the aws services and not third parties

miguelflores1993 avatar Jan 09 '22 19:01 miguelflores1993

Understood! And what features are you currently using with Pusher? @miguelflores1993 ? We just want to make sure we understand how developers would utilize a PubSub category enabled via Flutter.

abdallahshaban557 avatar Jan 11 '22 00:01 abdallahshaban557

we are waiting for this feature anyway, I think they are very important!

@flutteresbolivia - We are currently exploring what it would take to enable this for our flutter developers. Can you give me a high level understanding of the use cases you have?

Mobile application is very important entity in IoT (Internet of Things) that is a hot trend of Industry 4.0. In IoT, we use MQTT using PubSub protocol to connect everything including Mobile App together. That is reason all mobile libs currently support PubSub as well as MQTT (React-native, amplify javascript and so on). AWS has AWS IoT service. I think AWS earns a lot of money from this service. Many big company used AWS IoT for their backend.

pdt590 avatar Jan 11 '22 06:01 pdt590

@pdt590 - thank you for the feedback and context! We are still exploring whether we will support this feature this year. We will update this ticket with our findings as we learn more.

abdallahshaban557 avatar Jan 11 '22 17:01 abdallahshaban557

Also my two cents - pub sub is criticall for me for shadow Updates and state reporting via mqtt, additionally getting most sensor values directly just by subscribing to mqtt topic gives Us information quicker and way more cost Effective without resorting to some lambda hocus pocus for such a simple use case.

W dniu wt., 11.01.2022 o 13:34 Abdallah Shaban @.***> napisał(a):

@pdt590 https://github.com/pdt590 - thank you for the feedback and context! We are still exploring whether we will support this feature this year. We will update this ticket with our findings as we learn more.

— Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-flutter/issues/1006#issuecomment-1010199273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANGCEZEKJVTWJ2LI6IH2DYDUVRS2HANCNFSM5G3BSEWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

amizer12 avatar Jan 11 '22 22:01 amizer12

+1 This is very important feature.

liu731 avatar Apr 11 '22 10:04 liu731

@liu731 - can you please elaborate on what your use cases are for PubSub?

abdallahshaban557 avatar Apr 11 '22 15:04 abdallahshaban557

@liu731 - can you please elaborate on what your use cases are for PubSub?

Thanks for your reply, Pubsub makes it easy to get IoT device status. Currently I have to use mqtt_client and I need to manually sign with SigV4 every time I connect.

liu731 avatar Apr 22 '22 09:04 liu731

+1 for this

j540 avatar Jun 06 '22 13:06 j540

If this a feature you would like to see implemented, please give the issue a 👍. We use that to quickly gauge how much interest there is in an issue. The "+1" comments are much harder to see at a glance. Thank you.

Jordan-Nelson avatar Jul 27 '22 20:07 Jordan-Nelson

We really need it - that will open a do an entire landscape of building mobile apps with IoT Core, is that considered on the roadmap ?

amizer12 avatar Oct 21 '22 08:10 amizer12

@amizer12 - can you give us an idea on the use cases you want to enable?

abdallahshaban557 avatar Oct 21 '22 15:10 abdallahshaban557

Hi, Sure- basically having a pub/sub within this SDK would allow for a direct interaction with devices connected via IoT Core, right now if you wan t to do this with mobile app you need to use flutter mqtt client and on top of that manage the SiGv4 authentication for every login. With Pub/Sub integrated into this SDK this would offload all those things from the devs and allow for faster and smoother IoT mobile app development which is key for the entire connected devices landscape. With pub/sub you can just focus on device shadow CRUD actions and other product specific logic instead of spending a lot of initiall time just on managing interactions between different AWS services..

amizer12 avatar Oct 21 '22 21:10 amizer12

Got it - thank you so much for the feedback @amizer12 ! This is really helpful to help us understand which features we need to prioritize. I can see you already gave a thumbs up to this issue as well which is great! We will keep this issue updated when we have clarity on when it can potentially land.

Have you also explored using subscriptions with AWS Appsync for your IoT use case?

abdallahshaban557 avatar Oct 21 '22 23:10 abdallahshaban557

Hi @abdallahshaban557 many thanks for your reply. Yes - appsync in theory would work but it's way too much additional elements to introduce comparing to a direct communication with IoT Core. For AppSync you would need to add Lambda to update a data set for appsync - that adds at least 2 additional elements to the architecture increasing it's complexity and also drives the cost up. Not mentioning that adding a Lambda will increase a processing time significantly for every simple device state update.

amizer12 avatar Oct 31 '22 17:10 amizer12

@amizer12 - got it - that makes sense! Thank you for sharing this feedback! It is essential to help us prioritize the right features!

abdallahshaban557 avatar Oct 31 '22 19:10 abdallahshaban557

+1 It is a much needed feature. Please make this happen!

UtkarshSingh5474 avatar Apr 15 '23 10:04 UtkarshSingh5474

Hi @UtkarshSingh5474 - can you please provide us with the use cases you are looking to build with PubSub?

abdallahshaban557 avatar Apr 15 '23 18:04 abdallahshaban557

Hi @UtkarshSingh5474 - can you please provide us with the use cases you are looking to build with PubSub?

Hi @abdallahshaban557. Thank you for replying. I am interested in utilizing the AWS Amplify pub/sub feature; however, it is not available in the Flutter SDK. To use this feature, I must use the Flutter MQTT client and manage SiGv4 authentication for each user. Due to this limitation, I am currently developing my IoT mobile application using React Native since AWS Amplify has pub/sub for that platform. I kindly request that you enable the pub/sub feature for the Flutter SDK so that I can build my application using Flutter.

With a direct pub sub implementation in flutter sdk, i can save a lot of costs in computation resources.

UtkarshSingh5474 avatar Apr 16 '23 07:04 UtkarshSingh5474

got it - thank you for the feedback @UtkarshSingh5474!

abdallahshaban557 avatar Apr 17 '23 23:04 abdallahshaban557

+1 for this

dsoltis3 avatar Apr 19 '23 17:04 dsoltis3

That will be awesome +1

bcihanc avatar May 21 '23 19:05 bcihanc

Any updates on this issue?

UtkarshSingh5474 avatar Jun 11 '23 08:06 UtkarshSingh5474

any update for this ?

kalismeras61 avatar Jul 19 '23 18:07 kalismeras61

Hello - we do not have an update yet on this feature. Can you please help us understand which use cases you have for PubSub? @kalismeras61 ?

abdallahshaban557 avatar Jul 19 '23 19:07 abdallahshaban557