petermetz / cordova-plugin-ibeacon

An iBeacon plugin for Phonegap / Cordova 3.x and upwards. Supports both iOS and Android (contributions are welcome)
Apache License 2.0
726 stars 373 forks source link

isBluetoothEnabled on iOS only version 3.4.0 #223

Open NicoloBeltrame opened 8 years ago

NicoloBeltrame commented 8 years ago

Hello Peter, I again tried the version 3.4.0 with iOS 9.3.1 and the result of the function is always false. I did the test with GapDebug.

Unfortunately I do not have a chance to do other tests.

Thank you

cattura

jtkeyva commented 8 years ago

Sorry to hijack, but how did you get 3.4 installed? It keeps wanting to install 3.3 and failing. Thx

bflopez commented 8 years ago

Bump

bflopez commented 8 years ago

Found this plugin. Works. https://github.com/255kb/cordova-plugin-bluetooth-status

NicoloBeltrame commented 8 years ago

@jtkeyva 3.4.0 on npm: https://www.npmjs.com/package/cordova-plugin-ibeacon

xorox commented 8 years ago

Had the same issue. You need to activate Location updates in xcode under the tab capabilities...

hkcity1111 commented 8 years ago

I have some problem too in 3.4.1 version on iOS 9.3.2. When I am using 3.3 and XCode 6. I did not have such problem. For appstore deployment, someone said that apple will not approve the app if you active location update but are not providing location service. Is there any way to fix the problem? Thanks a lot

withwind8 commented 8 years ago

@hkcity1111 Yes, App Store reject my app for the reason you said(Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location.) But isBluetoothEnabled method in this plugin need it. So i use cordova-plugin-bluetooth-status instead of it.