I'm encountering an issue with my release apk. I am uploading it to a scanner that checks for vulnerabilities, and it is telling me that "Allowing Debuggable Webviews Allows Unintended Access to Device Data". However, I'm building the app in release mode (using flutter build apk --release), and never manually set the WebView widget to be debuggable. After doing some googling, it seems that building the app in release mode will set the tag android:debuggable=false which ought to disable all debugging, including in the webview. I am using webview_flutter 4.0.2, and tried adding a call to AndroidWebViewController.enableDebugging(false) as well as downgrading the package to 3.0.4, but neither has resolved the issue.
Does anyone know what could cause a flutter webview in release mode to still be classified as debuggable?
Related
How can I use AppCode for the ios-specific parts of my Flutter plugin?
I've created the plugin with flutter create --template=plugin --platforms=ios myplugin
The command doesn't generate an XCode project or workspace for the plugin itself but it includes an example app for which it does generate these. Running flutter build ios in example then creates symlinks to the plugin code in example/ios/.symlinks that I can use to edit the actual Swift code with auto completion, code navigation etc. When I open these files in AppCode however, I get the below error and no coding assistance is available at all:
I previously used AppCode quite a lot to maintain some Flutter plugins' iOS code (but switched jobs and didn't need AppCode or Xcode). However, I recently started making a free app, and also wanted to contribute to a Flutter plugin for iOS, I wanted AppCode again. I got AppCode working again, so I wanted to share.
In your flutter directory:
For editing/debugging/running Flutter apps' iOS code: run appcode ios
For Flutter plugins, run appcode example/ios (not appcode ios)
Some principles:
The files don't show up immediately, use Command + Shift + O to find your file. Then Opt + F1 to show it in the project navigator.
Built at least once using flutter run or Xcode (to make sure configuration is set up).
You cannot escape Xcode. Xcode and AppCode are complementary. Find the balance 😂🤓. Refactoring code, debugging the application, searching and reading code works really well in AppCode. Xcode does reading configuration better or debugging builds.
If you get random errors (e.g. everything fails but the error is build failed in AppCode, you should open in Xcode or build/run the flutter app for iOS: flutter run and read the error messages.
If you want to debug both Flutter and iOS simultaneously, start the iOS debugger, then "Flutter attach" in android studio (maybe this is possible in VSCode too, but I don't use that).
Here's an example screenshot of AppCode with debugger working. You might be curious if telemetry flag you set in Flutter was actually being set in the iOS side... maybe there's a bug. But I take privacy seriously and confirm the telemetry is disabled. I also watch network traffic sometimes. 😂. If you're interested, you can then follow that to it's dependencies (manually, using by reading package.swift), and find out it is set to true by default.
UserDefaults.standard.register(defaults: [
#keyPath(UserDefaults.MGLMapboxMetricsEnabled): true
])
I've developed a Flutter app but when I create its apk, it's run perfectly on first installation and after that I close my app and rerun then it is not showing any pages.
You might need to check the logs to see what is happening. Use Logcat extreme for checking the logs on your android device.
My flutter application is running on an Android TV emulator in Android Studio, but it's not working on an actual Android TV (4.4.4).
minSdk version seems to be 16 in my flutter app. App gets installed in Android TV with no errors or any issues, but when try to open it nothing happens. Any help?
I don't know what else I should provide for more clarification, let me know if anything more needed like my whole code.
My issue resolved by making a release version with certificate added into app. The compiler build app version won't work with actual tv with my experience.
I didn't had a android tv with myself, so needed to goto a shop frequently for checking my app.
When debugging my Flutter app on my Iphone X that was just upgraded to IOS 13, I can no longer see any debugging information, including no console logs. It also only compiled and loaded once, and now it only loads a white screen and never loads.
Have tried using Master channel but didn't work on that either. Used flutter clean, flutter get packages and flutter upgrade on the stable channel and still no luck.
I am making an app which uses the admob-free plugin.
I am using version 0.12.1 because latest version makes the build crash.
When deploying to android, everything works fine, test ads are showing up. Unfortunately, when deploying to ios, nothing happens: at first I had admob.js.map missing (error 404) and I resolved it by generating the map file and placing it to the right folder.
Now, I have no error but nothing is showing up: interstitual nor banner. Even the little space for the banner is not shown.
How can I make this plugin work? Thanks