Closed narenderreddych closed 1 year ago
Currently I am using Cordova 9.1 for Android
$ cordova -v
11.0.0
$ cordova platform
Installed platforms:
android 10.1.2
ios 6.2.0
compileSdkVersion 31
Here's how I use compileSdkVersion 31
in the SampleApp.
You only need this one line:
ext.cdvSdkVersion="31"
it does not support cordova android@9.1.0?
android 10.1.2 having issues in build-tools so am unable to upgrade it I am using Cordova/javascript
it does not support cordova android@9.1.0?
I doubt it.
android 10.1.2 having issues in build-tools
Likely because you're not using compileSdkVersion 31
You need to upgrade to latest cordova/cordova-android.
Thanks! After removing the plugins you suggested, I successfully installed this plugin
My requirement is to get location details about the app while it's in the background. Here, events are firing and notifications are being received, but the app isn't live
I've added a geofence with exit notification but have not been prompted when leaving the geofence.
Please help me understand how to use cordova-background-geolocation-lt plugin correctly to get location details and to know foreground and background status
I am currently working on a project that requires this scenario. After we see the results we expected, we will purchase a license.
Thank you in advance.
note: still am working on Android platform.
I've added a geofence with exit notification but have not been prompted when leaving the geofence.
On a real device or emulator? Geofences hardly ever fire in the emulator.
debug: true
and LOG_LEVEL_VERBOSE
(see Wiki Debugging)debug: true
, you will hear the Geofence EXIT event.BackgroundGeolocation.onGeofence((event) => {
console.log('[onGeofence] ', event);
});
const state = await BackgroundGeolocation.ready({
debug: true,
BackgroundGeolocation.LOG_LEVEL_VERBOSE,
stopOnTerminate: false,
locationAuthorizationRequest: 'Always'
});
const location = await BackgroundGeolocation.getCurrentPosition();
BackgroundGeolocation.addGeofence({
latitude: location.coords.latitude,
longitude: location.coords.longitude,
radius: 200,
identifier: 'HOME',
notifyOnEntry: true,
notifyOnExit: true
});
Your Environment
cordova -v
): 11.0.0cordova platform ls
): android 9.1#ready
:Installed the plugin and compile it
Expected Behavior
should run the code and give the apk
Actual Behavior
Getting error AAPT: error: resource android:attr/lStar not found in Android I got the following after installing your plugin: AAPT: error: resource android:attr/lStar not found.
Several alternatives, such as removing the diagnostics plugin or removing and re-adding the platform, did not work
Currently I am using Cordova 9.1 for Android
Steps to Reproduce
Context
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```