Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Phonegap Build iOS 13 : NSBluetoothAlwaysUsageDescription #396

Open
hooliapps opened this issue Oct 13, 2019 · 9 comments
Open

Phonegap Build iOS 13 : NSBluetoothAlwaysUsageDescription #396

hooliapps opened this issue Oct 13, 2019 · 9 comments

Comments

@hooliapps
Copy link

Hello,

I have this error when i submit the app to App Store. NSBluetoothAlwaysUsageDescription key is missing in the info-plist.

I think hat the problem come from AdMob SDK (cordova-admob-sdk), a dependency of cordova-plugin-admob-free.

Do you know what is the reason of usage (framework CoreBlueTooth in AdMob SDK) please ? Or there is any solution please ?

@jespertheend
Copy link

I had the same issue but I thought it was caused by cordova-ios (apache/cordova-ios#685)
A temprary workaround seems to be to remove CoreBluetooth.framework from the Xcode project in the general tab.

@hooliapps
Copy link
Author

I had the same issue but I thought it was caused by cordova-ios (apache/cordova-ios#685)
A temprary workaround seems to be to remove CoreBluetooth.framework from the Xcode project in the general tab.

Thanks for your response, but i use Phonegap Build and i cannot remove the framework.

@jespertheend
Copy link

I’m not tok familiar with phonegap but I think it’s quite similar to cordova. I am using cordova build as well. But when I publish the app to appstoreconnect I do it through Xcode. In my case I Have to open the .xcworkspace file in platforms/ios/ then in Xcode click on the blue project icon in the top left. And then under the general tab you can select CoreBluetooth.framework and click the '-' symbol.
image

@soniaAguilarPeiron
Copy link

soniaAguilarPeiron commented Oct 16, 2019

I've resolved this problem adding to Info.plist : "NSBluetoothAlwaysUsageDescription", with String value: "App would like to use your bluetooth for communication purposes".
After that this error was not shown again for my app while publishing.

@eomonteiro
Copy link

@luigi37
Copy link

luigi37 commented Jan 28, 2020

I’m not tok familiar with phonegap but I think it’s quite similar to cordova. I am using cordova build as well. But when I publish the app to appstoreconnect I do it through Xcode. In my case I Have to open the .xcworkspace file in platforms/ios/ then in Xcode click on the blue project icon in the top left. And then under the general tab you can select CoreBluetooth.framework and click the '-' symbol.
image

I think "italia57" is referring to the Phonegap Build which is fully online so he/she has no access to Xcode...

I'm also seeing this issue since I added cordova-plugin-admob-free... any full solution?

@jespertheend
Copy link

Ah I wasn't aware that phonegap didn't allow for modifying Xcode projects. Is it also not possible to modify Info.plist?

@luigi37
Copy link

luigi37 commented Jan 28, 2020

Well... actually "phonegap" in the sense of the CLI is (to my knowledge) very similar to cordova and as such should allow modifying the code. What "italia57" is referring to is "phonegap build" which allows you to build an app in the cloud without the need for a mac (https://build.phonegap.com/). You basically upload the content of your cordova app and it builds it for you... At the moment soniaAguilarPeiron's solution seems the only workaround (but it's a workaround which might stop working if Apple changes anything)

@luigi37
Copy link

luigi37 commented Jan 28, 2020

Your solution worked for me with XCode but would be great if removing the framework wouldn't be needed...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants