fluttercommunity / fluttercommunity/flutter_webview_plugin

Property supportMultipleWindows of Android WebView needs to have onCreateWindow implemented

Ouverte
#569 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
ANDROID enhancement
Langage dominant
Java
Étoiles
1.5k
Forks
938
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Issue occurs on: Android
Plugin version: 0.3.8
Flutter doctor output:

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale en-RO)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)

• No issues found!
```

I am trying to implement login with Facebook. During the process, Facebook needs to open a new window and then to do the redirect. On Android native you would set supportMultipleWindows to true on the WebView and you would catch the onCreateWindow() callback and open the url in a new WebView.

I tried setting supportMultipleWindows: true on the WebViewScaffold but then pressing the Login Facebook button does not do anything.

The documentation on Android WebView says that if you set supportMultipleWindows: true you NEED to override onCreateWindow(). Is this possible with your plugin? Am I missing something obvious? Why would you have the supportMultipleWindows property on the WebViewScaffold but not support for the corresponding onCreateWindow()?

Any help is greatly appreciated because I am stuck.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Aucun fichier, test ou point d’entrée n’est nommé. Commencez par suivre la gestion par Android WebViewScaffold de supportMultipleWindows et du callback onCreateWindow ; c’est terminé lorsque le flux de connexion Facebook ouvre la nouvelle fenêtre et termine sa redirection sur Android.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
android, dart, java
Domaine
mobile
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.