Code Monkey home page Code Monkey logo

Comments (21)

radoslavirha avatar radoslavirha commented on June 24, 2024 1

@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.

from cordova-plugin-ibeacon.

radoslavirha avatar radoslavirha commented on June 24, 2024

Please update it :) Thanks

from cordova-plugin-ibeacon.

AEiosApp avatar AEiosApp commented on June 24, 2024

@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
cordova.plugins.locationManager.enableBluetooth()

#2 There are plenty of fresh issues reports on the org.altbeacon:android-beacon-library page (in closed state, but not sure if resolved)
https://github.com/AltBeacon/android-beacon-library/issues?q=is%3Aissue+12+is%3Aclosed

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

from cordova-plugin-ibeacon.

radoslavirha avatar radoslavirha commented on June 24, 2024

@AEiosApp I still have some issues with BLUETOOTH_SCAN on android 12. Do you know how to fix it? Thanks

from cordova-plugin-ibeacon.

AEiosApp avatar AEiosApp commented on June 24, 2024

@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

from cordova-plugin-ibeacon.

noahbaron avatar noahbaron commented on June 24, 2024

from cordova-plugin-ibeacon.

radoslavirha avatar radoslavirha commented on June 24, 2024

Hi, I got it. It works fine. But I combine it with cordova-plugin-eddystone which is not working. So my bad. At least app starts. I must to try it with real beacons if it's working.

from cordova-plugin-ibeacon.

AEiosApp avatar AEiosApp commented on June 24, 2024

@noahbaron did you try it on device with Android 12?
It works fine for me on Android 11 device, but not on Android 12

from cordova-plugin-ibeacon.

radoslavirha avatar radoslavirha commented on June 24, 2024

just on simulator, I don't have Android 12. I'll send it to my colleague with Android 12

from cordova-plugin-ibeacon.

noahbaron avatar noahbaron commented on June 24, 2024

from cordova-plugin-ibeacon.

AEiosApp avatar AEiosApp commented on June 24, 2024

Thanks guys! I was trying with SDK 31, will try it with SDK 32

from cordova-plugin-ibeacon.

noahbaron avatar noahbaron commented on June 24, 2024

from cordova-plugin-ibeacon.

mdivya-symplr avatar mdivya-symplr commented on June 24, 2024

@AEiosApp Did it worked with sdk 32?
Mine is also sdk 32. Beacons are not detecting in Android 12/13 devices when we ask user to allow location permission with default android popup along with near by devices permission. Strange thing is if we install app and before opening it if we go to settings and give permission to location manually and opening the app as usual like allowing permission for near by devices and all then beacons are getting detected. Help would be appreciated. Thank You

from cordova-plugin-ibeacon.

mdivya-symplr avatar mdivya-symplr commented on June 24, 2024

Recently, What i have observed is beacons are getting scanned only when we allow permission for PRECISE location.
If we give permission for APPROXIMATE location. beacons are not detected in Android 12/13.
Is it same for you @noahbaron

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: 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: @.>

from cordova-plugin-ibeacon.

steliosm avatar steliosm commented on June 24, 2024

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 what is your cordova environment?

from cordova-plugin-ibeacon.

noahbaron avatar noahbaron commented on June 24, 2024

from cordova-plugin-ibeacon.

steliosm avatar steliosm commented on June 24, 2024

from cordova-plugin-ibeacon.

noahbaron avatar noahbaron commented on June 24, 2024

from cordova-plugin-ibeacon.

steliosm avatar steliosm commented on June 24, 2024

from cordova-plugin-ibeacon.

RN-programmer avatar RN-programmer commented on June 24, 2024

@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
android 10.1.2
SDK 32

I really appreciate if anyone is having a solution for this ibeacon cordova plugin.

from cordova-plugin-ibeacon.

kenjan1974 avatar kenjan1974 commented on June 24, 2024

If your Android 12/13 phone cannot scan beacon devices, try to manually enable the [nearby devices] permission.

[Samsung S21, Android 13]

  • open [Settings/Location]
  • click [App permissions]
  • click [Your APP]
  • Slide to the bottom of the screen
  • click [See all APP permissions]
  • allow [Nearby devices] permission

[Redmi]

  • Setting / Application Setting
  • click [Application Management]
  • click [permission Icon]
  • click [Application Permission Management]
  • click [Nearby devices]
  • click [Your APP]
  • allow [Nearby devices] permission

Or explicitly request user approval in your app before you can look for Bluetooth devices.
https://developer.android.com/guide/topics/connectivity/bluetooth/permissions

from cordova-plugin-ibeacon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.