Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on real iOS device #177

Closed
thunshell opened this issue Oct 18, 2019 · 3 comments
Closed

Crash on real iOS device #177

thunshell opened this issue Oct 18, 2019 · 3 comments
Labels

Comments

@thunshell
Copy link

It work when press IconButton on iOS simulator, but crash on real iOS device.

device: iPhone 6,
version: 12.4.1

environment:
sdk: ">=2.1.0 <3.0.0"
flutter_inappbrowser: ^1.2.1

Code bellow:
`
void main(List args) {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);

@OverRide
Widget build(BuildContext context) {
return MaterialApp(
title: 'flutter app',
debugShowCheckedModeBanner: false,
home: TestPage(),
);
}
}

class TestPage extends StatefulWidget {
final String url;
const TestPage({Key key, this.url}):super(key: key);
@OverRide
_TestPageState createState() => _TestPageState();
}

class _TestPageState extends State {

@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Flutter App'),
actions: [
IconButton(icon: Icon(Icons.scanner),
onPressed: ()=>
Navigator.of(context).push(new MaterialPageRoute(builder: (context) => TestPage(url: 'about:blank',))),)
],
),
body: InAppWebView(
initialUrl: widget.url ?? 'https://flutter.dev',
initialOptions: {
'useShouldOverrideUrlLoading': true,
},
shouldOverrideUrlLoading: (c, u){
Navigator.of(context).push(new MaterialPageRoute(builder: (context) => TestPage(url: u,)));
},
),
);
}
}`

@pichillilorenzo
Copy link
Owner

Try the latest version of the plugin. Also, this plugin changed its name to flutter_inappwebview. The current latest version now is 2.1.0+1. So, you can change your dependency influtter_inappwebview: ^2.1.0+1.
However, can you post here the logs you get from Xcode, please?

This was referenced Jul 6, 2020
Copy link

github-actions bot commented Oct 7, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 7, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants