How can i connect android 11 and and android 12 with bluetooth in ionic? - ionic-framework

If I declare in the "AndroidManifest.xml" the permissions for Android 12+, when scanning it does not find those that are Android 11 or lower. I have the same problem the other way around.
I tried declaring in the AndroidManifest.xml the user permissions to be compatible with Android 12 or higher and it does not find the ones that are Android 11 or lower. I also tried declaring for Android 11 and it does not find those that are Android 12 or higher.
enter image description here
Here I declared to allow the two variants depending on which sdk the device has.
I'm using the following library -> text
Capacitor 7.5 and Ionic 6

Related

Jitsi Meeting In Android Api Level 33

I implement
jitsi_meet: ^4.0.0
in flutter.Its working fine in android and Ios both.But when i run into Android Api level 33,Application crash.Here is the error:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
But i cannot use any pending intent and any Broatcast.I also implement this library:
implementation 'androidx.work:work-runtime-ktx:2.7.0
the error was same in android Api Level 33.Other Android device and Ios device application working fine.

how to ensure my flutter application is compatible with android 4.1?

i would like to make possible to install and use my flutter application on a phone which has a android OS version 4.1, but when i run my code on a simulator the result is :
i cannot open the app no matter how many times i try it.
and my api and sdk versions are : minSdkVersion 16 targetSdkVersion 29
is my api version the problem? play store says about this the minimum OS compatible is 4.1 but it does not work

Where is the version specified in Ionic app?

I'm using AppVersion.getVersionNumber() to get the version number of my Ionic app. But where does this number come from?
The problem is that when I run the app on a smartphone through devapp, I get a different version number depending on what OS I have…
iOS (on an iPhone 6): 1.0.2
Android (on a Samsung S10): 1.0.4
Searching around for "version" in my source code, I find this in config.xml (in the root):
<widget version="1.0.3" … >
I don't know if this is relevant, but it is the currently delivered version of the app.
I'm using Ionic 4.10.0
AppVersion cordova plugin reads the app details from the native code of the application.
So the version values that you see, are configured in the native IDE's.
Check these files in your respective platform folders..
ios/App/App.xcodeproj/project.pbxproj the key to look for in this MARKETING_VERSION
android/app/build.gradle the key to look for in this versionName

Programing with Android studio 3.2 and making apk

I'm writing an application with android studio 3.2.
Everything is okay when I install it on an emulator but when I make an apk and install it on real phone, it dosen't run!!
compileSdkVersion 28
minSdkVersion 16
targetSdkVersion 28
I want this app to be installed on android 4.1 or higher!
What changes are needed to run this app?
In your mobile open
setting > about mobile>Build number (press on it 7 times)
after that return to
setting > you will noticed that new choosing add (Developer options ) open it and make USB Debugging "active"
Press 7 times:
Finally: open it and make the USB Debugging active

Ionic how to set Sass variables of a platform like another

I want to set some Sass variables of a platform (for example, those related to the toolbar) and make them have the same values as another platform.
I can do that by changing the value of each variable, but is there a quicker way to do that ?
With the addition of platform specific css this can be accomplished, for example to target the bar-header class on the android platform
.platform-android .bar-header {
text-transform: uppercase;
}
Example of other options, to target specific operating systems
iOS 8 .platform-ios8 The OS on the device is running iOS 8
iOS 8.4 platform-ios8_4 The OS on the device is running iOS 8.4. This
class is applied in addition to platform-ios8
Android 4 .platform-android4 The OS on the device is running Android 4
Android 4.4 .platform-android4_4 The OS on the device is running
Android 4.4. This class is applied, in addition to platform-android4