fluttercommunity / fluttercommunity/flutter_webview_plugin

Add a geolocationPermissionsRequested event

オープン
#515 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature request
主要言語
Java
スター
1.5k
フォーク
938
PR マージ指標
30日以内にマージされた PR はありません

説明

## Use case

I'd like to be able to request geolocation runtime system permissions from the user when the web page shown in the webview plugin requests geolocation permissions. My code should then be able to tell the web site whether the permissions were given or not.

## Proposal

I'd like to have an event like `geolocationPermissionsRequested` in which I can check/request runtime permissions and return the result of that check/request. Once my (async!) code has finished and the event handler returns (the `Future` finishes), the web page should be informed of the result.

On Android, I'd basically like to implement `onGeolocationPermissionsShowPrompt` myself in Dart code. Only when my code finishes, the `GeolocationPermissions.Callback` should be called (with my result). I don't know if/how this would be done on iOS.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。