fluttercommunity / fluttercommunity/flutter_webview_plugin

[iOS] Not working when rootViewController is not FlutterViewController

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

説明

## 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];
}
```

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

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

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, objective-c
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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