-
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
isReady() never ever return true!!! - please help #25
Comments
I was also stumbling upon this, tried a couple of things but then gave up as the module seemed to not give any data out, not even errors or something when I tried to debug in android-monitor. Not to disrespect this module or @jamesfalkner at all, but just to help, here is what I did to get Beacons working on latest Ti 8.0.1 --> (just finished this 'whitsundays debugging session'): Hence replaced the 'liferay-android-beacons' with an 'altbeacon version' from https://github.com/Sensimity/android-altbeacon-module/ (original by: git cloned that one and basically vanilla rebuilt the module with my current 8.0.1.GA.
and all worked flawlessly after that on device right now. Worked out of the box following the samples given, and from the Sensity github I even found a commit, which has a "servicebound" event, so don't need to use the "setInterval" to monitor whether iBeaconService has become available. I was not aware, but now I am, that AltBeacon supports multiple "beaconLayouts" and therefore also the Apple's iBeacon format, (as you can see in the Altbeacon Layout) example: ok, hope it works for you too. |
sounds great...
i cloned the module, then rebuild as you said 👍 then took the module from the dist/com.drtech.altbeacon-android-3.0.0.zip included in tiapp.xml then ran the app, crashes on load... -- Start application log ----------------------------------------------------- any chance you could share your built module ? |
i have the module here --> what android are you running on? Did you Let me know if you have success with my module! I'm running (and building) on 8.0.1.GA fyi. |
do you have an email address i can ping you on ? |
@roelandp Thanks for the info on altbeacon! I haven't had time to maintain this project for several years, and am surprised it still even compiles :) (I designed it for a previous job in which I am no longer in, and an app which no longer exists!). |
GA 7.4.1 Tiapp.xml updated as per docs
Ti.API.info('isReady - '+Alloy.Globals.TiBeacons.isReady());
never ever returns true 1
please help
Ti.Android.requestPermissions([ 'android.permission.ACCESS_FINE_LOCATION' ], (e) => {
if (e.success) {
The text was updated successfully, but these errors were encountered: