-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
[iOs] NSBluetoothAlwaysUsageDescription warning after specifying optional modules #375
Comments
Are you using Phone Gap to build your apps? If so, Phone Gap essentially ignores the preference and downloads the entire plugin. I had to build the iOS version in Xcode. Others have used a forked version of the plugin. (I'd add a link but I can't find it at the moment.) |
I'm using ionic actually and cordova beneath it, with the following command
|
I am having the same issue, any solution? |
Same error for me. |
If you aren't using PhoneGap it may be that the bluetooth plugin is still present. I had to remove the plugin, remove the platform, make sure the preference is set in config.xml, then add the plugin, then add the platform. |
Thank you @attebury it's good for me ! |
Okey, I finally got it. It wasn't enough to just uninstall and re-install the plugins & module but also the platform as well, so for anyone having this issue and to make it as clear as possible, you should
|
@rodrigojrmartinez Thanks. It worked! |
1 similar comment
@rodrigojrmartinez Thanks. It worked! |
The preference cordova.plugins.diagnostic.modules is not working with ionic@2 & cordova@6. |
@molinet88 I suggest updating to latest |
@dpa99c Yes, but I wanted to skip this solution because it's too aggressive to all project dependencies. |
In theory it should work but I can't support such old versions of the plugin so if you're having issues, you'll need to resolve them yourself. |
Sure, it's a mess to use old versions... |
Hi, I'm building an Ionic 4 app meant for both Android and iOs and recently I've been starting to receive a warning from Apple App Store Connect regarding a missing purpose on why I'm using bluetooth information on my App. For my case I'm not using it at all and I've read the 'Specifying modules' section of the readme, so I know this comes by default when installing the plugin.
I've tried to do what it's suggested in this section so as to avoid having this warning
So what I've done now is to add this line over my config.xml
Since this is the only information I've been retrieving for the app. Also I have a merge for Info.plist to specify why I need the location as follows:
I have removed the plugin and uninstall the ionic dependency as well and then reinstall it with the following commands
Which updated my package.json with the latest versions, Then I've build the app for ios just fine, then I check for the ios.json generated file and I can't find the 'NSBluetoothAlwaysUsageDescription' description on the "*-Info.plist" information (though I can see that there are other values such as NSCamaraUsageDescription, NSMicrophoneUsageDescription, etc. which I'm also not using). Then there's an entry for config.xml parents where I can indeed see
At the end when submitting the app to the App Store for testing purposes I still receive the usual warning:
Am I doing something wrong? I wouldn't want to add a description of the use of data I'm not taking into account for my app since it would be a lie and I run the risk for my app to be rejected when publishing it for real. Some advice for avoiding this?
Thanks a lot!
The text was updated successfully, but these errors were encountered: