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

Missing $BACKGROUND_MODE_LOCATION #1225

Closed
riderx opened this issue Feb 3, 2021 · 10 comments
Closed

Missing $BACKGROUND_MODE_LOCATION #1225

riderx opened this issue Feb 3, 2021 · 10 comments

Comments

@riderx
Copy link

riderx commented Feb 3, 2021

Your Environment

  • Plugin version: latest
  • Platform: iOS
  • OS version: 14
  • Device manufacturer / model: iphone 12
  • Cordova version (cordova -v): capacitor 2.4.6
  • Plugin config provided to #ready:
[warn] Plugin cordova-background-geolocation-lt might require you to add 
                $BACKGROUND_MODE_LOCATION

Expected Behavior

No warning message

Actual Behavior

when i do cap sync ios i got tis warning :
Screenshot 2021-02-03 at 13 43 06

so tried to add as said :
Screenshot 2021-02-03 at 13 40 42
But even if with this, i still get the warning when i run sync again.

Do you have any clue why ?
it look i do something wrong but not sure what !

Context

I try to install your plugin on capacitor

@christocracy
Copy link
Member

This message does not come from background-geolocation. I must be coming from one of your other plugins.

Open your app in XCode and observe the Signing & Capabilities -> Background Modes section. It should look like this:

@christocracy
Copy link
Member

Did you follow the Capacitor Setup instructions in the README?

@riderx
Copy link
Author

riderx commented Feb 4, 2021

@christocracy thanks for the quick reply, i followed the doc in your module, and this is a fresh start app from blank with only your module, maybe that not working with latest capacitor 2.4.6 ?

@christocracy
Copy link
Member

Have you opened your app in XCode to verify the Background Capabilities are set according to my screenshot above.

I'm sure the plugin works in latest Capacitor. Have you tried it?

@riderx
Copy link
Author

riderx commented Feb 9, 2021

Yes i have the same :)
Screenshot 2021-02-09 at 22 27 52
I use your plugin since 5 years, in my old company You2you, i had many issue comming from my side, but i don't find a way to fix that one alone !

@christocracy
Copy link
Member

Looks good to me.

@riderx
Copy link
Author

riderx commented Feb 17, 2021

@christocracy so i still have the issue !

@alexcroox
Copy link

alexcroox commented Mar 25, 2021

I can confirm I too have the warning with Capacitor v3, having just installed everything for the first time fresh and up to date.

image

image

@alexcroox
Copy link

related to the encoding here maybe?

<preference name="BACKGROUND_MODE_LOCATION" default="&lt;string&gt;location&lt;/string&gt;" />

@christocracy
Copy link
Member

Ignore. Capacitor cannot handle these <preference> values and cannot automatically add the UIBackgroundModes. Add ing the required UIBackgroundModes is detailed in the Capacitor Setup.

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

3 participants