Flutter with GRPC

226 views
Skip to first unread message

Ricardo Julião

unread,
Aug 17, 2022, 9:25:55 AM8/17/22
to grpc.io
Hi Google lovers!
I'm new in all here, and i try to create a example of flutter (on web) with gRPC.
Unfortunately I notice that gRPC on flutter don't support WEB.
I'm doing this wrong?
Why this lib doesn't support WEB?
https://pub.dev/packages/grpc

Piotr Morgwai Kotarbinski

unread,
Aug 21, 2022, 3:53:04 PM8/21/22
to grpc.io
I think "full" gRPC is not yet supported in browsers generally due to browser platform limitations (this might have changed though: you need to verify if this info is up2date). There's a protocol gGRPC-web designed exactly to make up for it and it is definitely supported on flutter:  
https://pub.dev/documentation/grpc/latest/grpc_web/grpc_web-library.html

Furthermore, there's also a higher level abstraction wrapper that automatically switches between "native" gRPC and gRPC-web depending for which platform the build was made:

Hope this helps :)
Reply all
Reply to author
Forward
0 new messages