-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add support of Android 12 (Google API 31) #474
Comments
Please update it :) Thanks |
@AEiosApp I opened PR with new version. Temporarily you can switch to my repo (remove, add new cordova plugin). I just bumped versions, I'm not sure about consequences.... But it's working and google finally accepted my app. |
@Radik24 Thanks! This will let us build app for API 31 , but looks like we have to avoid using this plugin on Android 12 devices. My code works perfect for iOS and Android 11 device, but wasn't able to make it work on Android 12 device. #1 Enable Bluetooth doesn't work on Android 12 #2 There are plenty of fresh issues reports on the org.altbeacon:android-beacon-library page (in closed state, but not sure if resolved) I think my solution for now will be to check Android version on the device and not to use this feature on Android 12 devices |
@AEiosApp I still have some issues with BLUETOOTH_SCAN on android 12. Do you know how to fix it? Thanks |
@Radik24 nope, I checked all related issues posts on the github of android-beacon-library, but look like they don't have any solution yet for Android 12 |
That’s strange, I built an app that targets SDK 32 and this plugin works
fine, scans for iBeacons no problem. It requires manually adding entries to
AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
Here’s a link to the entire file:
https://github.com/baronbrew/Tilt-Hydrometer-Framework7/blob/master/platforms/android/app/src/main/AndroidManifest.xml
…On Sat, Nov 19, 2022 at 8:04 AM AEiosApp ***@***.***> wrote:
@Radik24 <https://github.com/Radik24> nope, I checked all related issues
posts on the github of *android-beacon-library*, but look like they don't
have any solution yet for Android 12
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3FBMPO4KQ7NYKKZ5J4VTWJD27XANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, I got it. It works fine. But I combine it with |
@noahbaron did you try it on device with Android 12? |
just on simulator, I don't have Android 12. I'll send it to my colleague with Android 12 |
Yes, it runs fine on Android 12 and 13 devices. For example on a Pixel 6
running Android 13.
…On Sat, Nov 19, 2022 at 8:39 AM Radik24 ***@***.***> wrote:
just on simulator, I don't have Android 12. I'll send it to my colleague
with Android 12
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3FBK2T2ONJ2VDSP65UH3WJD7FFANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks guys! I was trying with SDK 31, will try it with SDK 32 |
Great! Let me know if that works.
…On Sat, Nov 19, 2022 at 8:44 AM AEiosApp ***@***.***> wrote:
Thanks guys! I was trying with SDK 31, will try it with SDK 32
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3FBOUR5QDBAK2V7ZTM2TWJD7WHANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@AEiosApp Did it worked with sdk 32? |
Recently, What i have observed is beacons are getting scanned only when we allow permission for PRECISE location.
|
Anyone manage to get this working? |
How are you requesting permissions? Did you confirm the app has precise
location and Bluetooth Scanning permissions? Are you unable to build the
app or are you not getting any scans?
I am using Android Cordova 11.0 and targeting SDK 32.
…On Tue, Dec 6, 2022 at 6:29 AM Stelios Mersinas ***@***.***> wrote:
Anyone manage to get this working?
Tried SDK 30, 31 & 32, added the permissions in the Manifest file but it
never worked on an Android 12 phone.
@noahbaron <https://github.com/noahbaron> what is your cordova
environment?
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3FBM2YKCO223FQJC5BC3WL5EV3ANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi.
I can see those permissions in the manifest file after the app is built.
The first time I run the app, after having uninstalled the previous
version, I get a request for location access. Also, I enabled by hand
"nearby devices" access and verify that the location is precise.
I am able to built the app and run it fine. It works on an older Android
phone (ver 6) fine, but not on the ver 12.
~steliosm
…On Tue, Dec 6, 2022, 16:50 Noah Baron ***@***.***> wrote:
How are you requesting permissions? Did you confirm the app has precise
location and Bluetooth Scanning permissions? Are you unable to build the
app or are you not getting any scans?
I am using Android Cordova 11.0 and targeting SDK 32.
On Tue, Dec 6, 2022 at 6:29 AM Stelios Mersinas ***@***.***>
wrote:
> Anyone manage to get this working?
> Tried SDK 30, 31 & 32, added the permissions in the Manifest file but it
> never worked on an Android 12 phone.
> @noahbaron <https://github.com/noahbaron> what is your cordova
> environment?
>
> —
> Reply to this email directly, view it on GitHub
> <
#474 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAQ3FBM2YKCO223FQJC5BC3WL5EV3ANCNFSM6AAAAAARIW7PLI
>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAISABLASN4D5J5FKC3N2PTWL5HBRANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Did you also update this plugin to use the latest version of Android Beacon
Library?
You can see changes I made to the plugin to take the latest version
https://github.com/baronbrew/cordova-plugin-ibeacon
On Tue, Dec 6, 2022 at 6:59 AM Stelios Mersinas ***@***.***>
wrote:
… Hi.
I can see those permissions in the manifest file after the app is built.
The first time I run the app, after having uninstalled the previous
version, I get a request for location access. Also, I enabled by hand
"nearby devices" access and verify that the location is precise.
I am able to built the app and run it fine. It works on an older Android
phone (ver 6) fine, but not on the ver 12.
~steliosm
On Tue, Dec 6, 2022, 16:50 Noah Baron ***@***.***> wrote:
> How are you requesting permissions? Did you confirm the app has precise
> location and Bluetooth Scanning permissions? Are you unable to build the
> app or are you not getting any scans?
>
> I am using Android Cordova 11.0 and targeting SDK 32.
>
> On Tue, Dec 6, 2022 at 6:29 AM Stelios Mersinas ***@***.***>
> wrote:
>
> > Anyone manage to get this working?
> > Tried SDK 30, 31 & 32, added the permissions in the Manifest file but
it
> > never worked on an Android 12 phone.
> > @noahbaron <https://github.com/noahbaron> what is your cordova
> > environment?
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#474 (comment)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AAQ3FBM2YKCO223FQJC5BC3WL5EV3ANCNFSM6AAAAAARIW7PLI
> >
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#474 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAISABLASN4D5J5FKC3N2PTWL5HBRANCNFSM6AAAAAARIW7PLI
>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3FBJCITH3TPI4Q5E6FM3WL5ID5ANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi Noah.
Changing the android beacon library version to the latest version
(2.19.5-beta9) seems to do the trick!
The app works fine on an android 12 phone as well as on previous android
versions.
My current setup is now:
cordova 11.0.0
android 10.1.2
SDK 32
Thank you for your help Noah!
~steliosm
…On Tue, Dec 6, 2022 at 5:11 PM Noah Baron ***@***.***> wrote:
Did you also update this plugin to use the latest version of Android Beacon
Library?
You can see changes I made to the plugin to take the latest version
https://github.com/baronbrew/cordova-plugin-ibeacon
On Tue, Dec 6, 2022 at 6:59 AM Stelios Mersinas ***@***.***>
wrote:
> Hi.
>
> I can see those permissions in the manifest file after the app is built.
> The first time I run the app, after having uninstalled the previous
> version, I get a request for location access. Also, I enabled by hand
> "nearby devices" access and verify that the location is precise.
>
> I am able to built the app and run it fine. It works on an older Android
> phone (ver 6) fine, but not on the ver 12.
>
>
> ~steliosm
>
> On Tue, Dec 6, 2022, 16:50 Noah Baron ***@***.***> wrote:
>
> > How are you requesting permissions? Did you confirm the app has precise
> > location and Bluetooth Scanning permissions? Are you unable to build
the
> > app or are you not getting any scans?
> >
> > I am using Android Cordova 11.0 and targeting SDK 32.
> >
> > On Tue, Dec 6, 2022 at 6:29 AM Stelios Mersinas ***@***.***>
> > wrote:
> >
> > > Anyone manage to get this working?
> > > Tried SDK 30, 31 & 32, added the permissions in the Manifest file but
> it
> > > never worked on an Android 12 phone.
> > > @noahbaron <https://github.com/noahbaron> what is your cordova
> > > environment?
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#474 (comment)
> > >,
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/AAQ3FBM2YKCO223FQJC5BC3WL5EV3ANCNFSM6AAAAAARIW7PLI
> > >
> > > .
> > > You are receiving this because you were mentioned.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#474 (comment)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AAISABLASN4D5J5FKC3N2PTWL5HBRANCNFSM6AAAAAARIW7PLI
> >
> > .
> > You are receiving this because you commented.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#474 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAQ3FBJCITH3TPI4Q5E6FM3WL5ID5ANCNFSM6AAAAAARIW7PLI
>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAISABNRAYHM42HTBDCEV5TWL5JTVANCNFSM6AAAAAARIW7PLI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@noahbaron : I tried with the below combination. My cordova android app is not detecting any beacons. implementation 'org.altbeacon:android-beacon-library:2.19.5-beta9' or higher. cordova 11.0.0 I really appreciate if anyone is having a solution for this ibeacon cordova plugin. |
If your Android 12/13 phone cannot scan beacon devices, try to manually enable the [nearby devices] permission. [Samsung S21, Android 13]
[Redmi]
Or explicitly request user approval in your app before you can look for Bluetooth devices. |
Build fails for Android, when trying to to build with targetSDKVersion 31
Was able to make it working after updating org.altbeacon:android-beacon-library to latest version 2.19.3
Please, update dependecy
The text was updated successfully, but these errors were encountered: