flutter_inappbrowser 最新用法, flutter_inappbrowser Android ios 没法显示解决办法
解决flutter 集成 flutter_inappbrowser 无法正常显示
flutter_inappbrowser iOS
1.加入依赖
flutter_inappbrowser: 1.2.1
2.修改Run工程的podfile,修改完后执行pod install
target 'Runner' do
use_frameworks! # required by simple_permission
...
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0' # required by simple_permission
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
3.修改info.plist文件
<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
4.修改TRAGETS
flutter_inappbrowser 安卓
找到文件AndroidManifest.xml
路径
android-app-src-main-AndroidManifest.xml
在android:name="io.flutter.app.FlutterApplication"
添加键值对
android:usesCleartextTraffic="true"
iOS
安卓