fluttercommunity / fluttercommunity/flutter_webview_plugin

[iOS] Not working when rootViewController is not FlutterViewController

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

Description

## System info

Issue occurs on: both
Plugin version: all
Flutter doctor output: x

```objc
+ (void)registerWithRegistrar:(NSObject*)registrar {
channel = [FlutterMethodChannel
methodChannelWithName:CHANNEL_NAME
binaryMessenger:[registrar messenger]];

UIViewController *viewController = [UIApplication sharedApplication].delegate.window.rootViewController;
FlutterWebviewPlugin* instance = [[FlutterWebviewPlugin alloc] initWithViewController:viewController];

[registrar addMethodCallDelegate:instance channel:channel];
}
```

Guide de contribution

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

Piste de recherche

Start at the registerWithRegistrar entry point shown in the issue and trace how the plugin obtains and uses the application's rootViewController. Reproduce the failure with a root view controller that is not a FlutterViewController; done means the iOS plugin works in that setup without breaking the existing registration path.

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

Évaluation

Stack technique
ios, objective-c
Domaine
mobile
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

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