transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

Missing $BACKGROUND_MODE_LOCATION in UIBackgroundModes #1422

Closed stib closed 7 months ago

stib commented 7 months ago

This is similar to the issue listed here https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/1225 except this is from the cordova plugin and not the capacitor plugin. I get the same warning that $BACKGROUND_MODE_LOCATION needs to be added to UIBackgroundModes in Info.plist

Your Environment

Expected Behavior

Shouldn't get the warning in "ionic cap ios sync".

Actual Behavior

Getting this warning

[capacitor] [warn] Configuration might be missing for cordova-background-geolocation-lt. [capacitor] Add the following to the existing UIBackgroundModes entry of Info.plist: [capacitor]
[capacitor] $BACKGROUND_MODE_LOCATION

The Xcode has the right flags checked as shown in the screenshot below.

image

The only mention I see in the documentation is when installing the plugin pass an empty string to BACKGROUND_MODE_LOCATION when configuring for useSignficantChangesOnly which doesn't apply here.

I have been looking around but not sure what I need to do to address this. Perhaps I am missing some documentation on this somewhere as rest of the documentation is pretty thorough.

Thank you for your help. -Sanjay

christocracy commented 7 months ago

Why are you using the Cordova version in a Capacitor app? There’s a Capacitor version of this plug-in.

stib commented 7 months ago

It's a very old app that I haven't worked on for years and am trying to do the minimum upgrades so it is functional again. So I am trying to minimize the changes I have to make. As I understand it cordova plugins should work fine in a capacitor app.

christocracy commented 7 months ago

Have you followed the specific “Capacitor Installation” instructions in the readme?

I no longer provide support for Cordova plug-in used in Capacitor.

Use the Capacitor version for Capacitor apps.

stib commented 7 months ago

Thank you for clarifying the drop in support.