We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compilation for Android is failing "error: resource string/plugin_bgloc_content_authority not found"
I use capacitor 4, and followed the instructions as:
import { Injectable } from '@angular/core'; import { BackgroundGeolocationPlugin, Location, } from 'cordova-background-geolocation-plugin'; declare let BackgroundGeolocation: BackgroundGeolocationPlugin;
@Injectable({ providedIn: 'root', }) export class BackgroundService {
constructor() {}
startBackgroundGeolocation() { BackgroundGeolocation.configure({ locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER, desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 50, distanceFilter: 50, notificationTitle: 'Background tracking', notificationText: 'enabled', debug: true, interval: 10000, fastestInterval: 5000, activitiesInterval: 10000, url: 'http://https://csi.mipgenlinea.com/test/recibirBackground.php', httpHeaders: { 'X-FOO': 'bar', }, // customize post properties postTemplate: { lat: '@latitude', lon: '@longitude', foo: 'bar', // you can also add your own properties },
}); BackgroundGeolocation.start();
} }
Please any help or ideas?
I really appreciate
The text was updated successfully, but these errors were encountered:
Sounds like you are missing a string in the app strings table. Here's how I use this plugin: https://github.com/IsraelHikingMap/Site/blob/f5480f43e0f03c104b1fbbffbdcbfe5fa0e74c68/IsraelHiking.Web/src/application/services/geo-location.service.ts
Sorry, something went wrong.
Thanks @HarelM for your reply,
However I'm still confused, where are the app strings table?
Thanks!
In the android configuration files, look in the android folder.
Add these variables inside android/app/src/main/res/values/strings.xml:
<string name="plugin_bgloc_account_name">$ACCOUNT_NAME</string> <string name="plugin_bgloc_account_type">$ACCOUNT_TYPE</string> <string name="plugin_bgloc_content_authority">$CONTENT_AUTHORITY</string>
No branches or pull requests
Compilation for Android is failing "error: resource string/plugin_bgloc_content_authority not found"
I use capacitor 4, and followed the instructions as:
import { Injectable } from '@angular/core';
import {
BackgroundGeolocationPlugin,
Location,
} from 'cordova-background-geolocation-plugin';
declare let BackgroundGeolocation: BackgroundGeolocationPlugin;
@Injectable({
providedIn: 'root',
})
export class BackgroundService {
constructor() {}
startBackgroundGeolocation() {
BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: true,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
url: 'http://https://csi.mipgenlinea.com/test/recibirBackground.php',
httpHeaders: {
'X-FOO': 'bar',
},
// customize post properties
postTemplate: {
lat: '@latitude',
lon: '@longitude',
foo: 'bar', // you can also add your own properties
},
}
}
Please any help or ideas?
I really appreciate
The text was updated successfully, but these errors were encountered: