Monaca Onsen UI Discord Chat Github Repo

IOS parameter in custom config plugin



  • I seem to be having trouble the the custom config plugin. I am getting an error from the app store saying

    Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data.

    I need to add the NSBluetoothPeripheralUsageDescription to the info.plist with a short summary text, but i cant seem to figure out how to do that in the custom plugin

    I tried

    NSBluetoothPeripheralUsageDescription = BLE connection for Android

    and other ways of typing it, but nothing seems to stick.


  • Monaca

    @jptheripper
    Apple requires you to input a description for asking the user’s permission to use Bluetooth in your app. Therefore, please add the following settings to your config.xml file. Make sure to write your description with the <string> tag:

    <config-file platform="ios" target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">
        <string>
            WRITE YOUR USAGE DESCRIPTION HERE
        </string>
    </config-file>