victorbonnet / flutter_web_browser

Plugin for flutter to open web page with Chrome Custom Tabs and SFSafariViewController
MIT License
63 stars 44 forks source link

App crashes when using package on IOS #10

Open britannio opened 5 years ago

britannio commented 5 years ago

The package works as expected on Android but crashes on the ios simulator and on physical devices with this error:

*** First throw call stack:
(
    0   CoreFoundation                      0x000000010ab9b6fb __exceptionPreprocess + 331
    1   libobjc.A.dylib                     0x000000010b19bac5 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010ab9b555 +[NSException raise:format:] + 197
    3   SafariServices                      0x000000010a5435a8 -[SFSafariViewController initWithURL:configuration:] + 105
    4   SafariServices                      0x000000010a543b46 -[SFSafariViewController initWithURL:] + 94
    5   Runner                              0x0000000103a6b0a4 -[FlutterWebBrowserPlugin handleMethodCall:result:] + 788
    6   Flutter                             0x0000000107ea2818 Flutter + 514072
    7   Flutter                             0x0000000107e42476 Flutter + 119926
    8   Flutter                             0x0000000<…>
nambv commented 5 years ago

I meet this problem in iOS device too, can you take a look? @victorbonnet

victorbonnet commented 5 years ago

I am not able to reproduce the crash with the example. On which iOS version are you having the issue?

nambv commented 5 years ago

@victorbonnet I am using simulator device with iOS version is 13.0

zinwalin commented 4 years ago

same here with iOS13 iPhone 6s.