google / google/googleapis.dart
[Calendar] Unable to use clientViaUserConsent on Flutter Web
Open
documentation
enhancement
- Dominant language
- Dart
- Stars
- 419
- Forks
- 136
- Avg merge
- 1h 21m
- Merged PRs (30d)
- 5
Description
I am trying to create a client for obtaining permissions for a user's Google Calendar.
A snippet of the code is:
```
await clientViaUserConsent(myClientID,
[CalendarApi.calendarScope], launch)
```
Where `launch` is a function from https://pub.dev/packages/url_launcher.
Everything works on Android and iOS, yet, on a web browser, I get the error
`Error: Unsupported operation: ServerSocket.bind`
Package versions:
googleapis: 1.0.0
googleapis_auth: 0.2.12+1
Contributor guide
Assessment
This issue has not been assessed yet.