ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

Phonegap Build iOS 13 : NSBluetoothAlwaysUsageDescription #396

Open hooliapps opened 4 years ago

hooliapps commented 4 years ago

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 commented 4 years ago

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

hooliapps commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Solution here https://github.com/dpa99c/cordova-diagnostic-plugin/issues/375#issuecomment-540583995

luigi37 commented 4 years ago

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 commented 4 years ago

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

luigi37 commented 4 years ago

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 commented 4 years ago

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