google / google/googleapis.dart

[Calendar] Unable to use clientViaUserConsent on Flutter Web

Open
#227 2 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.