Ionic Native Android permissions vs diagnostic - ionic-framework

While working on Ionic(Android), i came across issues with android permissions
I found two different plugins :
Diagnostic Plugin
and
Android Permissions
want to know what is the difference between the two, and which plugin to use in an Ionic 3 app.
Also, My platform target is not just android , i want it for bot android and ios.
Thanks.

Related

Any cordova plugin to add WebAuthn API to Android WebView?

We've developed a cordova app that shows one of our websites (which is also accessible using a web browser).
Recently, FIDO2 authentication using WebAuthn has been added to that website. This works fine in the tested browsers (Chrome and Firefox), but not in our cordova application, as it uses Android WebView, which doesn't implement the WebAuthn API.
Does anybody know if there is any cordova plugin to add this API to Android WebView?
Is there any website with information about the Android WebView roadmap (bugs that will be fixed in next release, new features that will be added, ...)?
You're correct that Android WebView doesn't support WebAuthn in Android 13. We hope to address that in the Android 14 timeframe but, for now, you have to inject Javascript hooks and use a Javascript bridge to implement it. It's certainly possible to do but I'm not aware of any packaged solutions that do it.

Generate HarmonyOS (Huawei) build from Flutter project

I am working on one Flutter project. In which, We want to generate builds of Android, iOS, and HarmonyOS (Huawei). But I am not sure does Flutter supports this OS or not. I went through some of the stuff on the internet but was unable to figure out how to generate and what kind of commands were needed. Here, Anyone has previously generated HarmonyOS compatible build from the Flutter project. Please share your thoughts.
For now it is not possible directly from Flutter. Because of the change in architecture brought by Huawei with HarmonyOS it is not anymore an "Android device" and it doesn't run "Android applications".
Now what you can call "native HarmonyOS applications" are *.app files (not *.apk or *.aab)
Most recent answer on Quora to:
Will Harmony OS run Android apps?
Gives the following response:
Answered Jun 4, 2021 by Mahdi Parastech, Software Engineer
Nope, because:
The structure of the APIs are different.
Hongmeng (HarmonyOS) apps are in *.app, Android apps are *.apk
The structure of pages (activities) are different, Hongmeng uses some additional json files and puts pages inside *.har files.
Hongmeng uses Javascript too, and that's the only option in Wearable Hongmeng devices, but Android apps are just written in Java.
source
Apparently you should be able to migrate your native android application to HarmonyOS by using their IDE but the thing is that Flutter was not build for this architecture.
Except if the Flutter team decides for some reason to support HarmonyOS I don't think it will be possible to develop HarmonyOS applications by using Flutter.

Android Studio: should I upgrade to Android embedding v2?

I am actively learning dart/flutter, and using Android Studio. Just practicing to learn as much dart as possible. For now, I manly test my code by outputting into console. When I run the code, I get the warning message below (about upgrading to Android embedding v2), see picture. For now, I am not interested in developing apps for Android nor IOS, I am focusing mainly on web apps.
Is the warning below something I should consider upgrading now to Android embedding v2? Or can it wait until I decide to start testing Android apps?
The main reason why I didn't upgrade, it's because I read the Android embedding v2 upgrade instructions, and it requires to edit some files, and I don't want to risk messing up Android Studio, nor Dart, nor Flutter files. Also, this is the first time I use this IDE.
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project.

Flutter: Intellij does show no device (but no problem in Android Project)

I am trying to set up Flutter in Intellij (2020.1 Community Edition). I installed Dart and Flutter as plug-ins. I also have installed the Flutter SDK as well as the Android SDK.
After downloading an android virtual device (Pixel 2 XL API 27) I wanted to try out to run the Flutter template app, but it fails to recognize the emulator. When I create an Android Project and try to run it with an emulator it runs without any problems.
This post (Flutter : No devices) did not provide me with anything useful.
I solved the issue. I went to File > Project Structure > Project. At Project SDK I selected Android API 28 Platform. Then click Apply and Ok to finish this process. After doing this step you can select the device.
Intellij does that a lot in my system. You had to check Flutter path is set in File | Settings | Languages & Frameworks | Flutter
and Android SDK is set to Android API 29 Platform in File > Project Structure > Project

Appcelerator Titanium: Android SDK doesn't load

I started developing with Titanium and now I really stuck on one part.
I downloaded the Adroid SDK and added the path to Titanium:
/Users/michael/Downloads/android-sdk-mac_86/
I can open e.g. Kitchen Sink in the iPhone Simulator without problems, but when I want to open it in Android then my screen looks like this: Screenshot
Why is down there all the time, even after 2 hours of waiting, the label "loading..." ?
some great advice given here - helped me out.
Switching to TRACE will probably show that Android SDK Platform 1.6 and API 4 is missing.
More info here
1) You can install Android SDK 1.6 (run tools/android from your Android SDK folder and download the older SDK 1.6 from the Google Repository),
and Titanium will detect Android SDK
2) As for Android SDK 2.2, adb moved to platform-tools folder, so you will have to create a link in [your-android-sdk-folder]/tools e.g. :
ln -s ../platform-tools/adb
(full instructions for non-linux here : http://guides.appcelerator.com/en/getting_started.html)
Finally, in the Titanium Test&Package/Run emulator window, you will have the choice between Android SDK 1.6 and 2.2
Try to open your Android_SDK_Dir/tools, run file android to create a new Android Virtual Device. After that, open your Titanium again. Maybe this will solve your issue.
Take a look at your image. Value of SDK listbox is "...loading...". This means you Titanium cannot determine which Android Virtual Device is. So, as I said, try to create new Android Virtual Device first.
having the same issue - have you found a workaround?
found out that after downloading the android sdk - there are other components to be downloaded, which is different from previous versions. Also found some implication that loading the android emulator prior to launching the app from titanium may yield better results.
check the android docs for updating the sdk via the avd manager
load the emulator first video:
http://vimeo.com/10866226
Try setting the Filter from "Info" to "Trace" that may illuminate things.
Most commonly, you may not have the right platforms installed. Just install all of them if that's the case.
add a blank folder android-7 in android/platforms ..n restart titanium ..it worked for me on ubuntu