Skip to content
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

Adding UIBackgroundModes fails #124

Closed
andersborgabiro opened this issue Sep 2, 2017 · 3 comments
Closed

Adding UIBackgroundModes fails #124

andersborgabiro opened this issue Sep 2, 2017 · 3 comments

Comments

@andersborgabiro
Copy link

When I unzip the IPA file, there's no setting of UIBackgroundModes, only NSLocationXxx. Any idea?

    <config-file platform="ios" target="*-Info.plist" parent="UIBackgroundModes">
        <array>
            <string>location</string>
        </array>
    </config-file>

    <config-file platform="ios" target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
        <string>This app requires constant access to your location in order to track your position, even when the screen is off.</string>
    </config-file>

    <config-file platform="ios" target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
        <string>This app will now only track your location when the screen is on and the app is displayed.</string>
    </config-file>
@dpa99c
Copy link
Owner

dpa99c commented Sep 5, 2017

After running cordova prepare ios, do you see the key in the iOS project .plist? Any when you open the project in Xcode, do you see Background Location is checked under Capabilities?

@andersborgabiro
Copy link
Author

I don't use CLI, but rather PhoneGap Build, so I can only see what's in the IPA.

@dpa99c
Copy link
Owner

dpa99c commented Sep 5, 2017

As documented:

This plugin WILL NOT WORK with remote ("Cloud") build environments that do not support the execution of this plugin's hook scripts. This includes:

@dpa99c dpa99c closed this as completed Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants