-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error on Android 6.0 (API 23) #17
Comments
There are several fixes for this problem. First need to get a newer version of Radius.jar from Radius Networks and update the code to support it as the namespaces have changed. http://developer.radiusnetworks.com/2016/04/12/beacon-apps-on-android-6-update.html Then you will need to add code to your application to request the Permissions for LOCATION. Here is the catch, your app will need a custom version of 5.2.0.GA SDK, because it doesn't have the Permissions for Android baked in. For more information, please look here |
I have created a new version locally of the Library to support this, may have to actually use GitHub and create a Pull Request. |
OK, thank you, I solved asking localization allowed after starting the app :) |
The is a checkAvailability which basically says "Is BT on or existing". You can use this function. One thing you could do is setup an interval and call this. Something like this at it's core. Obviously you will need to track that you have shown this otherwise each time the even fires it will show it if the user has not enabled bluetooth and or locations.
Obviously this only works for Bluetooth, but as you now need location, you will need to do the a similar thing for Locations. |
Thank you very much for the advice! It is an excellent solution :) |
@rwuttke would be great if you could provide the complete fix... With the updated radius.jar etc? I've implemented this in an app which already asked for location for other purposes, so I'm curious it will work out of the box, with targetSDK 23 .... I guess posting your updates as pull-requests would really help me and some others... Maybe even a new dist-version, eg. 0.5? kind regards, roeland |
@roelandp I will try to find some time ASAP to get that done. |
The current code in the repository doesn't work with Android SDK 23 + Titanium SDK 5.2.0.GA either. We made some changes to get that working, but haven't tested on Android 6 with the new permissions system. So @rwuttke if you can do the update for Android 6 permissions then great. If not I might be able to help at least with SDK 23 + Titanium 5.2.0.GA support. |
Really? I have built this module inside Android 6 (targetSDK 23) and had it checked via one of our testers with a Nexus 5x Android 6.0.1. In the given app I have a check whether the 'bluetooth' is enabled / BLE works: Ti.API.info(TiBeacons.checkAvailability()); This does actually work and respond upon switching bluetooth on / off (returns either a true / false) and I run this on the given page in a interval (up to a minute) and kills the interval whenever bluetooth is switching on. (and sets the color to 'green' and text to 'Bluetooth OK'). But I must say I do have the new android permissions in this app already built in at a earlier level for:
Because I mainly use this for 'GPS'-based tours. Kind regards, Roeland
|
Hi everyone, I've noticed the same problem, form me android seems to see the region but not the beacons. In fact an android 5 fires the event "proximity" but android 6 no |
@PietroGranati @roelandp @Astrovic @rwuttke I've got the module working in a new Android app on version 6 using 6.2.0.GA and my rebuilt module at: https://github.com/RBAtkins0n/liferay-android-beacons I have this code inside the app to request permission:
And this is what I've got in my tiapp.xml (some of these entries are specific to my app and may not be needed).
|
Instructions are added to the docs. @jamesfalkner this issue can be marked resolved |
I'm trying module on my nexus 5x, but I get this error message in the log:
The text was updated successfully, but these errors were encountered: