Page 1 of 1

iBeacon scan app not working

Posted: 20:50, 25 Nov 2014
by peteryxu
Hi,

I was able to successfully run the beacon scan app from Evothings client.
I then tried to package it as an Cordova app, (added the ibeacon plugin), deploy it to iPhone 8. The app came up, not finding any Estimate beacons.
Any steps I might be missing?

Below is the log message i saw inside Xcode:

2014-11-25 14:33:01.228 EstimoteNG[1383:572150] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/857A4C46-920D-461C-8883-BC905A4B855E/Library/Cookies/Cookies.binarycookies
2014-11-25 14:33:01.596 EstimoteNG[1383:572150] Apache Cordova native platform version 3.7.0 is starting.
2014-11-25 14:33:01.597 EstimoteNG[1383:572150] Multi-tasking -> Device: YES, App: YES
2014-11-25 14:33:01.600 EstimoteNG[1383:572150] Unlimited access to network resources
2014-11-25 14:33:01.604 EstimoteNG[1383:572150]

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/docu ... a-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

2014-11-25 14:33:02.318 EstimoteNG[1383:572150] Resetting plugins due to page load.
2014-11-25 14:33:02.490 EstimoteNG[1383:572150] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/B02BB064-B08A-4027-87DA-CCFD6AAFB704/EstimoteNG.app/www/index.html
2014-11-25 14:33:02.563 EstimoteNG[1383:572178] [DOM] registerDelegateCallbackId()
2014-11-25 14:33:02.578 EstimoteNG[1383:572150] peripheralManagerDidUpdateState() state: PeripheralManagerStatePoweredOn
2014-11-25 14:33:02.579 EstimoteNG[1383:572150] didChangeAuthorizationStatus
2014-11-25 14:33:02.579 EstimoteNG[1383:572175] peripheralManagerDidUpdateState: PeripheralManagerStatePoweredOn
2014-11-25 14:33:02.579 EstimoteNG[1383:572150] didChangeAuthorizationStatus: 0 => AuthorizationStatusNotDetermined
2014-11-25 14:33:02.579 EstimoteNG[1383:572175] Converted peripheralManagerDidUpdateState: into peripheralManagerDidUpdateState
2014-11-25 14:33:02.579 EstimoteNG[1383:572150] Converted locationManager:didChangeAuthorizationStatus: into didChangeAuthorizationStatus
2014-11-25 14:33:02.579 EstimoteNG[1383:572175] Invalid callback id received by sendPluginResult
2014-11-25 14:33:02.579 EstimoteNG[1383:572150] Invalid callback id received by sendPluginResult
2014-11-25 14:33:02.579 EstimoteNG[1383:572208] Registering delegate callback ID: LocationManager1748297799
2014-11-25 14:33:02.583 EstimoteNG[1383:572208] [DOM] _onDelegateCallback() null

Re: iBeacon scan app not working

Posted: 03:45, 26 Nov 2014
by peteryxu
mystery solved. It seems plugin version 3.2.2 broke the app. I needed to revert back to version 3.1.2 to make it work.

Re: iBeacon scan app not working

Posted: 15:20, 27 Nov 2014
by micke
Hi Peter, thanks for sharing your findings. That is good to know that cordova-plugin-ibeacon version 3.2.2 has some problems.
Best regards, Mikael

Re: iBeacon scan app not working

Posted: 16:02, 27 Nov 2014
by micke
Hi again, just looked at this commit in cordova-plugin-ibeacon:

https://github.com/petermetz/cordova-pl ... f99260faa1

There is a section about "Breaking Changes" in the change log for 3.2.2, is that in any way related to the problem you experienced?

Mikael