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
655 stars 277 forks source link

Plugin fails to initialize. Cannot read property 'onLocation' of undefined OR breaks Phonegap main app object #827

Closed StevenMapes closed 5 years ago

StevenMapes commented 5 years ago

Your Environment

Expected Behavior

BackgroundGeolocation should start

Actual Behavior

Uncaught Exceptions

When just running these steps within the deviceReady

var bgGeo = window.BackgroundGeolocation;
console.log("STEP 1");

bgGeo.onLocation(function(location) {
    console.log('[location] -', location);
});
console.log("STEP 2");

The first console.log is called but then the following Exception is triggered

Exception:TypeError: Cannot read property 'onLocation' of undefined

When the entire example code is implemented it then breaks the main Cordova app object

ReferenceError: app is not defined

Steps to Reproduce

  1. Create new Cordova project
  2. Install Plugins
  3. Copy example code for Cordova
  4. Run phonegap server
  5. Connect from mobile client
  6. View error in console
christocracy commented 5 years ago

Seems the plugin is not installed correctly. You're running this on an actual device?

christocracy commented 5 years ago

Do you have some phonegap build logs?

StevenMapes commented 5 years ago

Thank's for the swift reply. I'm really keen to use this app for a few projects I just need to be sure that it will work before buying the licenses so any help will be appreciated. I should note that this is my first time building an Phonegap/Cordova app so please excuse any stupid questions on my part.

Plugin was installed using cordova plugin add cordova-background-geolocation-lt

It's running on a handset via the PhoneGap app. I'm developing within the Webstorm IDE and using the PhoneGap/Cordova debugger using server and android then connecting to it from the handset to load the app onto the device as it's faster for testing than running a full build which I've been doing through build.phonegap.com for the app which I've developed using the main geolocation plugin but since that's extremely buggy for Android right now I'm looking for an urgent solution so I can complete a project in the next few days.

I've just run the code through build.phonegap.com and it builds without any errors in terms of logs however when I then install the APK the app hangs initialising which will be the ReferenceError: app is not defined error as it's the same experience as when I am debugging

These are the contents of the platforms/android/project.properties file as I've seen that listed else where as causing issues:

# Project target.
target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-plugin-background-fetch/dev-build.gradle
cordova.system.library.1=com.google.android.gms:play-services-location:16.0.0
cordova.system.library.2=com.android.support:appcompat-v7:27.1.1
cordova.gradle.include.2=cordova-background-geolocation-lt/dev-build.grad
StevenMapes commented 5 years ago

Ah actually it appears to be building on Android 6 from the logs, which is odd. Where do I go about checking and correcting that?

Build Date: 2018-11-08 18:01:05 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-device@~1.1.6" via npm
Installing "cordova-plugin-device" at "1.1.7" for android
Fetching plugin "cordova-plugin-dialogs@~1.3.3" via npm
Installing "cordova-plugin-dialogs" at "1.3.4" for android
Fetching plugin "cordova-plugin-file@~4.3.3" via npm
Installing "cordova-plugin-file" at "4.3.3" for android
Fetching plugin "cordova-plugin-compat@^1.0.0" via npm
Installing "cordova-plugin-compat" at "1.2.0" for android

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

to config.xml in order for the application to find previously stored files.
Fetching plugin "cordova-plugin-globalization@~1.0.7" via npm
Installing "cordova-plugin-globalization" at "1.0.9" for android
Fetching plugin "cordova-plugin-inappbrowser@~1.7.1" via npm
Installing "cordova-plugin-inappbrowser" at "1.7.2" for android
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-splashscreen@^5.0.2" via npm
Installing "cordova-plugin-splashscreen" at "5.0.2" for android
Fetching plugin "cordova-plugin-network-information@~1.3.3" via npm
Installing "cordova-plugin-network-information" at "1.3.4" for android
Fetching plugin "cordova-plugin-geolocation@^2.4.3" via npm
Installing "cordova-plugin-geolocation" at "2.4.3" for android
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Fetching plugin "cordova-background-geolocation-lt@^2.14.0" via npm
Installing "cordova-background-geolocation-lt" at "2.14.0" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=7.0.0
Skipping 'cordova-background-geolocation-lt' for android
--------------------------------------------------------------------------------
PROJECT PROPERTIES
--------------------------------------------------------------------------------
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-25
android.library.reference.1=CordovaLib
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at build_8oc0a7bsevlk8rb2r823pgael.run(/project/build.gradle:156)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.
ModuleDependency.getConfiguration() has been deprecated and is scheduled to be removed in Gradle 4.0. Use ModuleDependency.getTargetConfiguration() instead.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareProjectCordovaLibUnspecifiedReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:incrementalReleaseJavaCompilationSafeguard
:compileReleaseJavaWithJavac
:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /project/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:mergeReleaseShaders
:compileReleaseShaders
:generateReleaseAssets
:mergeReleaseAssets
:transformClassesWithDexForRelease
:mergeReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForRelease
:processReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease
:packageRelease
:assembleRelease
:cdvBuildRelease

BUILD SUCCESSFUL

Total time: 2.441 secs
Built the following apk(s): 
    /project/build/outputs/apk/project-release-unsigned.apk
Starting application signing
updating: META-INF/MANIFEST.MF
   adding: META-INF/HOMECARE.SF
   adding: META-INF/HOMECARE.RSA
  signing: AndroidManifest.xml
  signing: assets/www/cordova.js
  signing: assets/www/cordova_plugins.js
  signing: assets/www/css/font_awesome/css/font-awesome.css
  signing: assets/www/css/font_awesome/css/font-awesome.min.css
  signing: assets/www/css/font_awesome/fonts/FontAwesome.otf
  signing: assets/www/css/font_awesome/fonts/fontawesome-webfont.eot
  signing: assets/www/css/font_awesome/fonts/fontawesome-webfont.svg
  signing: assets/www/css/font_awesome/fonts/fontawesome-webfont.ttf
  signing: assets/www/css/font_awesome/fonts/fontawesome-webfont.woff
  signing: assets/www/css/font_awesome/fonts/fontawesome-webfont.woff2
  signing: assets/www/css/index.css
  signing: assets/www/css/ionicons/css/ionicons.css
  signing: assets/www/css/ionicons/css/ionicons.min.css
  signing: assets/www/css/ionicons/fonts/ionicons.eot
  signing: assets/www/css/ionicons/fonts/ionicons.svg
  signing: assets/www/css/ionicons/fonts/ionicons.ttf
  signing: assets/www/css/ionicons/fonts/ionicons.woff
  signing: assets/www/css/material-design-iconic-font/css/material-design-iconic-font.css
  signing: assets/www/css/material-design-iconic-font/css/material-design-iconic-font.min.css
  signing: assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot
  signing: assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.svg
  signing: assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf
  signing: assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff
  signing: assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2
  signing: assets/www/css/onsen-css-components.min.css
  signing: assets/www/css/onsenui-core.min.css
  signing: assets/www/css/onsenui-fonts.css
  signing: assets/www/css/onsenui.min.css
  signing: assets/www/img/logo.png
  signing: assets/www/img/nursingdirect.png
  signing: assets/www/index.html
  signing: assets/www/js/homecare/db.js
  signing: assets/www/js/homecare/geolocation.js
  signing: assets/www/js/homecare/network-monitor.js
  signing: assets/www/js/homecare/page.js
  signing: assets/www/js/homecare/user.js
  signing: assets/www/js/index.js
  signing: assets/www/js/jquery-3.3.1.min.js
  signing: assets/www/js/localforage-cordovasqlitedriver.es6.js
  signing: assets/www/js/localforage-cordovasqlitedriver.js
  signing: assets/www/js/localforage.min.js
  signing: assets/www/js/onsenui.d.ts
  signing: assets/www/js/onsenui.js
  signing: assets/www/js/onsenui.min.js
  signing: assets/www/phonegap.js
  signing: assets/www/plugins/cordova-plugin-device/www/device.js
  signing: assets/www/plugins/cordova-plugin-dialogs/www/android/notification.js
  signing: assets/www/plugins/cordova-plugin-dialogs/www/notification.js
  signing: assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js
  signing: assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js
  signing: assets/www/plugins/cordova-plugin-file/www/Entry.js
  signing: assets/www/plugins/cordova-plugin-file/www/File.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileEntry.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileError.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileReader.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileSystem.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js
  signing: assets/www/plugins/cordova-plugin-file/www/FileWriter.js
  signing: assets/www/plugins/cordova-plugin-file/www/Flags.js
  signing: assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js
  signing: assets/www/plugins/cordova-plugin-file/www/Metadata.js
  signing: assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js
  signing: assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js
  signing: assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js
  signing: assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js
  signing: assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js
  signing: assets/www/plugins/cordova-plugin-file/www/fileSystems.js
  signing: assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js
  signing: assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js
  signing: assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js
  signing: assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js
  signing: assets/www/plugins/cordova-plugin-globalization/www/GlobalizationError.js
  signing: assets/www/plugins/cordova-plugin-globalization/www/globalization.js
  signing: assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js
  signing: assets/www/plugins/cordova-plugin-network-information/www/Connection.js
  signing: assets/www/plugins/cordova-plugin-network-information/www/network.js
  signing: assets/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js
  signing: assets/www/spec/helper.js
  signing: assets/www/spec/index.js
  signing: assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
  signing: assets/www/spec/lib/jasmine-1.2.0/jasmine-html.js
  signing: assets/www/spec/lib/jasmine-1.2.0/jasmine.css
  signing: assets/www/spec/lib/jasmine-1.2.0/jasmine.js
  signing: classes.dex
  signing: res/drawable-hdpi-v4/ic_action_next_item.png
  signing: res/drawable-hdpi-v4/ic_action_previous_item.png
  signing: res/drawable-hdpi-v4/ic_action_remove.png
  signing: res/drawable-mdpi-v4/ic_action_next_item.png
  signing: res/drawable-mdpi-v4/ic_action_previous_item.png
  signing: res/drawable-mdpi-v4/ic_action_remove.png
  signing: res/drawable-xhdpi-v4/ic_action_next_item.png
  signing: res/drawable-xhdpi-v4/ic_action_previous_item.png
  signing: res/drawable-xhdpi-v4/ic_action_remove.png
  signing: res/drawable-xxhdpi-v4/ic_action_next_item.png
  signing: res/drawable-xxhdpi-v4/ic_action_previous_item.png
  signing: res/drawable-xxhdpi-v4/ic_action_remove.png
  signing: res/mipmap-hdpi-v4/icon.png
  signing: res/mipmap-ldpi-v4/icon.png
  signing: res/mipmap-mdpi-v4/icon.png
  signing: res/mipmap-xhdpi-v4/icon.png
  signing: res/mipmap-xxhdpi-v4/icon.png
  signing: res/mipmap-xxxhdpi-v4/icon.png
  signing: res/mipmap/icon.png
  signing: res/xml/config.xml
  signing: resources.arsc
jar signed.

Warning: 
The signer's certificate is self-signed.
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2046-02-25) or after any future revocation date.
Finished application signing
Verifying alignment of /project/build/outputs/apk/project-release.apk (4)...
      50 META-INF/MANIFEST.MF (OK - compressed)
    3724 META-INF/HOMECARE.SF (OK - compressed)
    7503 META-INF/HOMECARE.RSA (OK - compressed)
    8689 AndroidManifest.xml (OK - compressed)
    9917 assets/www/cordova.js (OK - compressed)
   27477 assets/www/cordova_plugins.js (OK - compressed)
   28568 assets/www/css/font_awesome/css/font-awesome.css (OK - compressed)
   36104 assets/www/css/font_awesome/css/font-awesome.min.css (OK - compressed)
   43240 assets/www/css/font_awesome/fonts/FontAwesome.otf (OK - compressed)
  153724 assets/www/css/font_awesome/fonts/fontawesome-webfont.eot (OK - compressed)
  252096 assets/www/css/font_awesome/fonts/fontawesome-webfont.svg (OK - compressed)
  388249 assets/www/css/font_awesome/fonts/fontawesome-webfont.ttf (OK - compressed)
  486529 assets/www/css/font_awesome/fonts/fontawesome-webfont.woff (OK - compressed)
  584556 assets/www/css/font_awesome/fonts/fontawesome-webfont.woff2 (OK - compressed)
  661788 assets/www/css/index.css (OK - compressed)
  663449 assets/www/css/ionicons/css/ionicons.css (OK - compressed)
  672367 assets/www/css/ionicons/css/ionicons.min.css (OK - compressed)
  680701 assets/www/css/ionicons/fonts/ionicons.eot (OK - compressed)
  749458 assets/www/css/ionicons/fonts/ionicons.svg (OK - compressed)
  852234 assets/www/css/ionicons/fonts/ionicons.ttf (OK - compressed)
  961859 assets/www/css/ionicons/fonts/ionicons.woff (OK - compressed)
 1028899 assets/www/css/material-design-iconic-font/css/material-design-iconic-font.css (OK - compressed)
 1043203 assets/www/css/material-design-iconic-font/css/material-design-iconic-font.min.css (OK - compressed)
 1051291 assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot (OK - compressed)
 1093730 assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.svg (OK - compressed)
 1153982 assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf (OK - compressed)
 1204928 assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff (OK - compressed)
 1254071 assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2 (OK - compressed)
 1292224 assets/www/css/onsen-css-components.min.css (OK - compressed)
 1308450 assets/www/css/onsenui-core.min.css (OK - compressed)
 1311060 assets/www/css/onsenui-fonts.css (OK - compressed)
 1311241 assets/www/css/onsenui.min.css (OK - compressed)
 1313908 assets/www/img/logo.png (OK)
 1351398 assets/www/index.html (OK - compressed)
 1355024 assets/www/js/homecare/db.js (OK - compressed)
 1355364 assets/www/js/homecare/geolocation.js (OK - compressed)
 1357302 assets/www/js/homecare/network-monitor.js (OK - compressed)
 1365955 assets/www/js/index.js (OK - compressed)
 1368143 assets/www/js/jquery-3.3.1.min.js (OK - compressed)
 1398583 assets/www/js/localforage-cordovasqlitedriver.es6.js (OK - compressed)
 1400316 assets/www/js/localforage-cordovasqlitedriver.js (OK - compressed)
 1402130 assets/www/js/localforage.min.js (OK - compressed)
 1411203 assets/www/js/onsenui.d.ts (OK - compressed)
 1419469 assets/www/js/onsenui.js (OK - compressed)
 2149706 assets/www/js/onsenui.min.js (OK - compressed)
 2226780 assets/www/phonegap.js (OK - compressed)
 2244365 assets/www/plugins/cordova-plugin-device/www/device.js (OK - compressed)
 2245759 assets/www/plugins/cordova-plugin-dialogs/www/android/notification.js (OK - compressed)
 2246829 assets/www/plugins/cordova-plugin-dialogs/www/notification.js (OK - compressed)
 2248687 assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js (OK - compressed)
 2250232 assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js (OK - compressed)
 2251453 assets/www/plugins/cordova-plugin-file/www/Entry.js (OK - compressed)
 2253994 assets/www/plugins/cordova-plugin-file/www/File.js (OK - compressed)
 2255265 assets/www/plugins/cordova-plugin-file/www/FileEntry.js (OK - compressed)
 2256713 assets/www/plugins/cordova-plugin-file/www/FileError.js (OK - compressed)
 2257593 assets/www/plugins/cordova-plugin-file/www/FileReader.js (OK - compressed)
 2260777 assets/www/plugins/cordova-plugin-file/www/FileSystem.js (OK - compressed)
 2261850 assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js (OK - compressed)
 2262829 assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js (OK - compressed)
 2263547 assets/www/plugins/cordova-plugin-file/www/FileWriter.js (OK - compressed)
 2266284 assets/www/plugins/cordova-plugin-file/www/Flags.js (OK - compressed)
 2267105 assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js (OK - compressed)
 2267768 assets/www/plugins/cordova-plugin-file/www/Metadata.js (OK - compressed)
 2268615 assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js (OK - compressed)
 2269840 assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js (OK - compressed)
 2270916 assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js (OK - compressed)
 2271682 assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js (OK - compressed)
 2272890 assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js (OK - compressed)
 2273815 assets/www/plugins/cordova-plugin-file/www/fileSystems.js (OK - compressed)
 2274534 assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js (OK - compressed)
 2275898 assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js (OK - compressed)
 2277590 assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js (OK - compressed)
 2278414 assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js (OK - compressed)
 2279520 assets/www/plugins/cordova-plugin-globalization/www/GlobalizationError.js (OK - compressed)
 2280333 assets/www/plugins/cordova-plugin-globalization/www/globalization.js (OK - compressed)
 2283655 assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js (OK - compressed)
 2285223 assets/www/plugins/cordova-plugin-network-information/www/Connection.js (OK - compressed)
 2285981 assets/www/plugins/cordova-plugin-network-information/www/network.js (OK - compressed)
 2287466 assets/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js (OK - compressed)
 2288160 assets/www/spec/helper.js (OK - compressed)
 2288905 assets/www/spec/index.js (OK - compressed)
 2289963 assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE (OK - compressed)
 2290691 assets/www/spec/lib/jasmine-1.2.0/jasmine-html.js (OK - compressed)
 2294642 assets/www/spec/lib/jasmine-1.2.0/jasmine.css (OK - compressed)
 2296238 assets/www/spec/lib/jasmine-1.2.0/jasmine.js (OK - compressed)
 2311488 classes.dex (OK - compressed)
 2417208 res/drawable-hdpi-v4/ic_action_next_item.png (OK)
 2417572 res/drawable-hdpi-v4/ic_action_previous_item.png (OK)
 2417928 res/drawable-hdpi-v4/ic_action_remove.png (OK)
 2418244 res/drawable-mdpi-v4/ic_action_next_item.png (OK)
 2418556 res/drawable-mdpi-v4/ic_action_previous_item.png (OK)
 2418864 res/drawable-mdpi-v4/ic_action_remove.png (OK)
 2419136 res/drawable-xhdpi-v4/ic_action_next_item.png (OK)
 2419532 res/drawable-xhdpi-v4/ic_action_previous_item.png (OK)
 2419924 res/drawable-xhdpi-v4/ic_action_remove.png (OK)
 2420272 res/drawable-xxhdpi-v4/ic_action_next_item.png (OK)
 2420744 res/drawable-xxhdpi-v4/ic_action_previous_item.png (OK)
 2421216 res/drawable-xxhdpi-v4/ic_action_remove.png (OK)
 2421620 res/mipmap-hdpi-v4/icon.png (OK)
 2423088 res/mipmap-ldpi-v4/icon.png (OK)
 2423904 res/mipmap-mdpi-v4/icon.png (OK)
 2424916 res/mipmap-xhdpi-v4/icon.png (OK)
 2426368 res/mipmap-xxhdpi-v4/icon.png (OK)
 2430032 res/mipmap-xxxhdpi-v4/icon.png (OK)
 2435820 res/mipmap/icon.png (OK)
 2436822 res/xml/config.xml (OK - compressed)
 2438548 resources.arsc (OK)
Verification succesful
christocracy commented 5 years ago

You're not using cordova-android@7.0.0 -- You're building with cordova-android@6.1.2.

Installing "cordova-background-geolocation-lt" at "2.14.0" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=7.0.0

The last version of my plugin supporting cordova-android@6.x is 2.11.0. Show me your config.xml

christocracy commented 5 years ago

PhoneGap reference

<preference name="phonegap-version" value="cli-8.0.0" />
StevenMapes commented 5 years ago

Thanks.

I've put that through another build but get the same issue. Build log at the end, though that has enabled the plugin this time.

When I test locally I still receive this, phonegap] [console.log] ReferenceError: app is not defined where app is object defined within index.js

var aApp = {
    initialize: function() {
        this.bindEvents();
    },
    bindEvents: function() {
        document.addEventListener('deviceready', this.onDeviceReady, false);
    },
    onDeviceReady: function(e) {
        app.receivedEvent('deviceready');
                try {
                    myOnDeviceReady();
                } catch (e) {
                    alert(e);
                    console.log(e);
                }

Where the myOnDeviceReady function is a copy of the onDeviceReady from your example just wrapped to trigger from there.

I am finding that if I comment out this section

    // bgGeo.onHttp(response => {
    //     console.log(['http] - ', response.success, response.status, response.responseText);
    // });
    // alert(5);

Then things get further and the myOnDeviceReady function is triggered but then then I receive an error of [phonegap] [console.log] TypeError: Cannot read property 'onLocation' of undefined

Here is the state of that function

// Like any Cordova plugin, you must wait for deviceready before referencing the plugin.
function myOnDeviceReady() {
    // 1.  Listen to events
    alert(1);
    var bgGeo = window.BackgroundGeolocation;
    alert(2);

    bgGeo.onLocation(function(location) {
        console.log('[location] -', location);
    });
    alert(3);

    bgGeo.onMotionChange(function(event) {
        console.log('[motionchange] -', event.isMoving, event.location);
    });
    alert(4);

    // bgGeo.onHttp(response => {
    //     console.log(['http] - ', response.success, response.status, response.responseText);
    // });
    // alert(5);

    bgGeo.onProviderChange(function(event) {
        console.log('[providerchange] -', event.status, event.enabled, event.gps, event.network);
    });
    alert(6);

    // 2. Execute #ready method:
    bgGeo.ready({
        reset: true,
        debug: true,
        logLevel: bgGeo.LOG_LEVEL_VERBOSE,
        desiredAccuracy: bgGeo.DESIRED_ACCURACY_HIGH,
        distanceFilter: 10,
        url: 'http://my.server.com/locations',
        autoSync: true,
        stopOnTerminate: false,
        startOnBoot: true
    }, function(state) {    // <-- Current state provided to #configure callback
        // 3.  Start tracking
        console.log('BackgroundGeolocation is configured and ready to use');
        if (!state.enabled) {
            bgGeo.start().then(function() {
                console.log('- BackgroundGeolocation tracking started');
            });
        }
    });
    alert(7);

    // NOTE:  Do NOT execute any API methods which will access location-services
    // until the callback to #ready executes!
    //
    // For example, DO NOT do this here:
    //
    // bgGeo.getCurrentPosition();   // <-- NO!
    // bgGeo.start();                // <-- NO!
}

So you can see that it's a copy just with some alerts and logs around so that I can see how far it goes. It gets past the alert(2) before hitting the error

Here is the new build log

Build Date: 2018-11-08 18:19:49 +0000
--------------------------------------------------------------------------------
PREPARE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
Generating platform-specific config.xml from defaults for android at /app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, ../platform_www] to ../app/src/main/assets/www
  mkdir ../app/src/main/assets/www/cordova-js-src
  mkdir ../app/src/main/assets/www/cordova-js-src/android
  copy  ../platform_www/cordova-js-src/android/nativeapiprovider.js ../app/src/main/assets/www/cordova-js-src/android/nativeapiprovider.js (new file)
  copy  ../platform_www/cordova-js-src/android/promptbasednativeapi.js ../app/src/main/assets/www/cordova-js-src/android/promptbasednativeapi.js (new file)
  copy  ../platform_www/cordova-js-src/exec.js ../app/src/main/assets/www/cordova-js-src/exec.js (new file)
  copy  ../platform_www/cordova-js-src/platform.js ../app/src/main/assets/www/cordova-js-src/platform.js (new file)
  mkdir ../app/src/main/assets/www/cordova-js-src/plugin
  mkdir ../app/src/main/assets/www/cordova-js-src/plugin/android
  copy  ../platform_www/cordova-js-src/plugin/android/app.js ../app/src/main/assets/www/cordova-js-src/plugin/android/app.js (new file)
  copy  ../platform_www/cordova.js ../app/src/main/assets/www/cordova.js (updated file)
  mkdir ../app/src/main/assets/www/css/font_awesome
  mkdir ../app/src/main/assets/www/css/font_awesome/css
  copy  www/css/font_awesome/css/font-awesome.css ../app/src/main/assets/www/css/font_awesome/css/font-awesome.css (new file)
  copy  www/css/font_awesome/css/font-awesome.min.css ../app/src/main/assets/www/css/font_awesome/css/font-awesome.min.css (new file)
  mkdir ../app/src/main/assets/www/css/font_awesome/fonts
  copy  www/css/font_awesome/fonts/FontAwesome.otf ../app/src/main/assets/www/css/font_awesome/fonts/FontAwesome.otf (new file)
  copy  www/css/font_awesome/fonts/fontawesome-webfont.eot ../app/src/main/assets/www/css/font_awesome/fonts/fontawesome-webfont.eot (new file)
  copy  www/css/font_awesome/fonts/fontawesome-webfont.svg ../app/src/main/assets/www/css/font_awesome/fonts/fontawesome-webfont.svg (new file)
  copy  www/css/font_awesome/fonts/fontawesome-webfont.ttf ../app/src/main/assets/www/css/font_awesome/fonts/fontawesome-webfont.ttf (new file)
  copy  www/css/font_awesome/fonts/fontawesome-webfont.woff ../app/src/main/assets/www/css/font_awesome/fonts/fontawesome-webfont.woff (new file)
  copy  www/css/font_awesome/fonts/fontawesome-webfont.woff2 ../app/src/main/assets/www/css/font_awesome/fonts/fontawesome-webfont.woff2 (new file)
  copy  www/css/index.css ../app/src/main/assets/www/css/index.css (updated file)
  mkdir ../app/src/main/assets/www/css/ionicons
  mkdir ../app/src/main/assets/www/css/ionicons/css
  copy  www/css/ionicons/css/ionicons.css ../app/src/main/assets/www/css/ionicons/css/ionicons.css (new file)
  copy  www/css/ionicons/css/ionicons.min.css ../app/src/main/assets/www/css/ionicons/css/ionicons.min.css (new file)
  mkdir ../app/src/main/assets/www/css/ionicons/fonts
  copy  www/css/ionicons/fonts/ionicons.eot ../app/src/main/assets/www/css/ionicons/fonts/ionicons.eot (new file)
  copy  www/css/ionicons/fonts/ionicons.svg ../app/src/main/assets/www/css/ionicons/fonts/ionicons.svg (new file)
  copy  www/css/ionicons/fonts/ionicons.ttf ../app/src/main/assets/www/css/ionicons/fonts/ionicons.ttf (new file)
  copy  www/css/ionicons/fonts/ionicons.woff ../app/src/main/assets/www/css/ionicons/fonts/ionicons.woff (new file)
  mkdir ../app/src/main/assets/www/css/material-design-iconic-font
  mkdir ../app/src/main/assets/www/css/material-design-iconic-font/css
  copy  www/css/material-design-iconic-font/css/material-design-iconic-font.css ../app/src/main/assets/www/css/material-design-iconic-font/css/material-design-iconic-font.css (new file)
  copy  www/css/material-design-iconic-font/css/material-design-iconic-font.min.css ../app/src/main/assets/www/css/material-design-iconic-font/css/material-design-iconic-font.min.css (new file)
  mkdir ../app/src/main/assets/www/css/material-design-iconic-font/fonts
  copy  www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot ../app/src/main/assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot (new file)
  copy  www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.svg ../app/src/main/assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.svg (new file)
  copy  www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf ../app/src/main/assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf (new file)
  copy  www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff ../app/src/main/assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff (new file)
  copy  www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2 ../app/src/main/assets/www/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2 (new file)
  copy  www/css/onsen-css-components.min.css ../app/src/main/assets/www/css/onsen-css-components.min.css (new file)
  copy  www/css/onsenui-core.min.css ../app/src/main/assets/www/css/onsenui-core.min.css (new file)
  copy  www/css/onsenui-fonts.css ../app/src/main/assets/www/css/onsenui-fonts.css (new file)
  copy  www/css/onsenui.min.css ../app/src/main/assets/www/css/onsenui.min.css (new file)
  delete ../app/src/main/assets/www/img/cordova.png (no source)
  copy  www/img/logo.png ../app/src/main/assets/www/img/logo.png (updated file)
  copy  www/index.html ../app/src/main/assets/www/index.html (updated file)
  mkdir ../app/src/main/assets/www/js/test
  copy  www/js/test/db.js ../app/src/main/assets/www/js/test/db.js (new file)
  copy  www/js/test/geolocation.js ../app/src/main/assets/www/js/test/geolocation.js (new file)
  copy  www/js/test/network-monitor.js ../app/src/main/assets/www/js/test/network-monitor.js (new file)
  copy  www/js/test/page.js ../app/src/main/assets/www/js/test/page.js (new file)
  copy  www/js/test/user.js ../app/src/main/assets/www/js/test/user.js (new file)
  copy  www/js/index.js ../app/src/main/assets/www/js/index.js (updated file)
  copy  www/js/jquery-3.3.1.min.js ../app/src/main/assets/www/js/jquery-3.3.1.min.js (new file)
  copy  www/js/localforage-cordovasqlitedriver.es6.js ../app/src/main/assets/www/js/localforage-cordovasqlitedriver.es6.js (new file)
  copy  www/js/localforage-cordovasqlitedriver.js ../app/src/main/assets/www/js/localforage-cordovasqlitedriver.js (new file)
  copy  www/js/localforage.min.js ../app/src/main/assets/www/js/localforage.min.js (new file)
  copy  www/js/onsenui.d.ts ../app/src/main/assets/www/js/onsenui.d.ts (new file)
  copy  www/js/onsenui.js ../app/src/main/assets/www/js/onsenui.js (new file)
  copy  www/js/onsenui.min.js ../app/src/main/assets/www/js/onsenui.min.js (new file)
  mkdir ../app/src/main/assets/www/res
  copy  www/res/.pgbomit ../app/src/main/assets/www/res/.pgbomit (new file)
  mkdir ../app/src/main/assets/www/res/icon
  mkdir ../app/src/main/assets/www/res/icon/android
  copy  www/res/icon/android/drawable-hdpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-hdpi-icon.png (new file)
  copy  www/res/icon/android/drawable-ldpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-ldpi-icon.png (new file)
  copy  www/res/icon/android/drawable-mdpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-mdpi-icon.png (new file)
  copy  www/res/icon/android/drawable-xhdpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-xhdpi-icon.png (new file)
  copy  www/res/icon/android/drawable-xxhdpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-xxhdpi-icon.png (new file)
  copy  www/res/icon/android/drawable-xxxhdpi-icon.png ../app/src/main/assets/www/res/icon/android/drawable-xxxhdpi-icon.png (new file)
  mkdir ../app/src/main/assets/www/res/icon/ios
  copy  www/res/icon/ios/icon-40.png ../app/src/main/assets/www/res/icon/ios/icon-40.png (new file)
  copy  www/res/icon/ios/icon-40@2x.png ../app/src/main/assets/www/res/icon/ios/icon-40@2x.png (new file)
  copy  www/res/icon/ios/icon-50.png ../app/src/main/assets/www/res/icon/ios/icon-50.png (new file)
  copy  www/res/icon/ios/icon-50@2x.png ../app/src/main/assets/www/res/icon/ios/icon-50@2x.png (new file)
  copy  www/res/icon/ios/icon-60.png ../app/src/main/assets/www/res/icon/ios/icon-60.png (new file)
  copy  www/res/icon/ios/icon-60@2x.png ../app/src/main/assets/www/res/icon/ios/icon-60@2x.png (new file)
  copy  www/res/icon/ios/icon-60@3x.png ../app/src/main/assets/www/res/icon/ios/icon-60@3x.png (new file)
  copy  www/res/icon/ios/icon-72.png ../app/src/main/assets/www/res/icon/ios/icon-72.png (new file)
  copy  www/res/icon/ios/icon-72@2x.png ../app/src/main/assets/www/res/icon/ios/icon-72@2x.png (new file)
  copy  www/res/icon/ios/icon-76.png ../app/src/main/assets/www/res/icon/ios/icon-76.png (new file)
  copy  www/res/icon/ios/icon-76@2x.png ../app/src/main/assets/www/res/icon/ios/icon-76@2x.png (new file)
  copy  www/res/icon/ios/icon-small.png ../app/src/main/assets/www/res/icon/ios/icon-small.png (new file)
  copy  www/res/icon/ios/icon-small@2x.png ../app/src/main/assets/www/res/icon/ios/icon-small@2x.png (new file)
  copy  www/res/icon/ios/icon-small@3x.png ../app/src/main/assets/www/res/icon/ios/icon-small@3x.png (new file)
  copy  www/res/icon/ios/icon.png ../app/src/main/assets/www/res/icon/ios/icon.png (new file)
  copy  www/res/icon/ios/icon@2x.png ../app/src/main/assets/www/res/icon/ios/icon@2x.png (new file)
  mkdir ../app/src/main/assets/www/res/icon/windows
  copy  www/res/icon/windows/Square150x150Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square150x150Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square150x150Logo.scale-240.png ../app/src/main/assets/www/res/icon/windows/Square150x150Logo.scale-240.png (new file)
  copy  www/res/icon/windows/Square30x30Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square30x30Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square310x310Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square310x310Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square44x44Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square44x44Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square44x44Logo.scale-240.png ../app/src/main/assets/www/res/icon/windows/Square44x44Logo.scale-240.png (new file)
  copy  www/res/icon/windows/Square70x70Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square70x70Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square71x71Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Square71x71Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Square71x71Logo.scale-240.png ../app/src/main/assets/www/res/icon/windows/Square71x71Logo.scale-240.png (new file)
  copy  www/res/icon/windows/StoreLogo.scale-100.png ../app/src/main/assets/www/res/icon/windows/StoreLogo.scale-100.png (new file)
  copy  www/res/icon/windows/StoreLogo.scale-240.png ../app/src/main/assets/www/res/icon/windows/StoreLogo.scale-240.png (new file)
  copy  www/res/icon/windows/Wide310x150Logo.scale-100.png ../app/src/main/assets/www/res/icon/windows/Wide310x150Logo.scale-100.png (new file)
  copy  www/res/icon/windows/Wide310x150Logo.scale-240.png ../app/src/main/assets/www/res/icon/windows/Wide310x150Logo.scale-240.png (new file)
  mkdir ../app/src/main/assets/www/res/icon/wp8
  copy  www/res/icon/wp8/ApplicationIcon.png ../app/src/main/assets/www/res/icon/wp8/ApplicationIcon.png (new file)
  copy  www/res/icon/wp8/Background.png ../app/src/main/assets/www/res/icon/wp8/Background.png (new file)
  mkdir ../app/src/main/assets/www/res/screen
  mkdir ../app/src/main/assets/www/res/screen/android
  copy  www/res/screen/android/drawable-land-hdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-hdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-land-ldpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-ldpi-screen.png (new file)
  copy  www/res/screen/android/drawable-land-mdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-mdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-land-xhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-xhdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-land-xxhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-xxhdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-land-xxxhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-land-xxxhdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-hdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-hdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-ldpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-ldpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-mdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-mdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-xhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-xhdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-xxhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-xxhdpi-screen.png (new file)
  copy  www/res/screen/android/drawable-port-xxxhdpi-screen.png ../app/src/main/assets/www/res/screen/android/drawable-port-xxxhdpi-screen.png (new file)
  mkdir ../app/src/main/assets/www/res/screen/ios
  copy  www/res/screen/ios/Default-568h@2x~iphone.png ../app/src/main/assets/www/res/screen/ios/Default-568h@2x~iphone.png (new file)
  copy  www/res/screen/ios/Default-667h.png ../app/src/main/assets/www/res/screen/ios/Default-667h.png (new file)
  copy  www/res/screen/ios/Default-736h.png ../app/src/main/assets/www/res/screen/ios/Default-736h.png (new file)
  copy  www/res/screen/ios/Default-Landscape-736h.png ../app/src/main/assets/www/res/screen/ios/Default-Landscape-736h.png (new file)
  copy  www/res/screen/ios/Default-Landscape@2x~ipad.png ../app/src/main/assets/www/res/screen/ios/Default-Landscape@2x~ipad.png (new file)
  copy  www/res/screen/ios/Default-Landscape~ipad.png ../app/src/main/assets/www/res/screen/ios/Default-Landscape~ipad.png (new file)
  copy  www/res/screen/ios/Default-Portrait@2x~ipad.png ../app/src/main/assets/www/res/screen/ios/Default-Portrait@2x~ipad.png (new file)
  copy  www/res/screen/ios/Default-Portrait~ipad.png ../app/src/main/assets/www/res/screen/ios/Default-Portrait~ipad.png (new file)
  copy  www/res/screen/ios/Default@2x~iphone.png ../app/src/main/assets/www/res/screen/ios/Default@2x~iphone.png (new file)
  copy  www/res/screen/ios/Default~iphone.png ../app/src/main/assets/www/res/screen/ios/Default~iphone.png (new file)
  mkdir ../app/src/main/assets/www/res/screen/windows
  copy  www/res/screen/windows/SplashScreen.scale-100.png ../app/src/main/assets/www/res/screen/windows/SplashScreen.scale-100.png (new file)
  copy  www/res/screen/windows/SplashScreenPhone.scale-240.png ../app/src/main/assets/www/res/screen/windows/SplashScreenPhone.scale-240.png (new file)
  mkdir ../app/src/main/assets/www/res/screen/wp8
  copy  www/res/screen/wp8/screen-portrait.jpg ../app/src/main/assets/www/res/screen/wp8/screen-portrait.jpg (new file)
  mkdir ../app/src/main/assets/www/spec
  copy  www/spec/helper.js ../app/src/main/assets/www/spec/helper.js (new file)
  copy  www/spec/index.js ../app/src/main/assets/www/spec/index.js (new file)
  mkdir ../app/src/main/assets/www/spec/lib
  mkdir ../app/src/main/assets/www/spec/lib/jasmine-1.2.0
  copy  www/spec/lib/jasmine-1.2.0/MIT.LICENSE ../app/src/main/assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE (new file)
  copy  www/spec/lib/jasmine-1.2.0/jasmine-html.js ../app/src/main/assets/www/spec/lib/jasmine-1.2.0/jasmine-html.js (new file)
  copy  www/spec/lib/jasmine-1.2.0/jasmine.css ../app/src/main/assets/www/spec/lib/jasmine-1.2.0/jasmine.css (new file)
  copy  www/spec/lib/jasmine-1.2.0/jasmine.js ../app/src/main/assets/www/spec/lib/jasmine-1.2.0/jasmine.js (new file)
Wrote out android application name "testApp" to /app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.7): 10007
Wrote out Android package name "uk.co.jigsawtech.test.dev" to /app/src/main/java/uk/co/jigsawtech/test/dev/testApp.java
Updating icons at ../app/src/main/res
  copy  www/res/icon/android/drawable-hdpi-icon.png ../app/src/main/res/mipmap-hdpi/icon.png (updated file)
  copy  www/res/icon/android/drawable-ldpi-icon.png ../app/src/main/res/mipmap-ldpi/icon.png (updated file)
  copy  www/res/icon/android/drawable-mdpi-icon.png ../app/src/main/res/mipmap-mdpi/icon.png (updated file)
  copy  www/res/icon/android/drawable-xhdpi-icon.png ../app/src/main/res/mipmap-xhdpi/icon.png (updated file)
  copy  www/res/icon/android/drawable-xxhdpi-icon.png ../app/src/main/res/mipmap-xxhdpi/icon.png (updated file)
  copy  www/res/icon/android/drawable-xxxhdpi-icon.png ../app/src/main/res/mipmap-xxxhdpi/icon.png (updated file)
Updating splash screens at ../app/src/main/res
  copy  www/res/screen/android/drawable-land-hdpi-screen.png ../app/src/main/res/drawable-land-hdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-land-ldpi-screen.png ../app/src/main/res/drawable-land-ldpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-land-mdpi-screen.png ../app/src/main/res/drawable-land-mdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-land-xhdpi-screen.png ../app/src/main/res/drawable-land-xhdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-land-xxhdpi-screen.png ../app/src/main/res/drawable-land-xxhdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-land-xxxhdpi-screen.png ../app/src/main/res/drawable-land-xxxhdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-hdpi-screen.png ../app/src/main/res/drawable-port-hdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-ldpi-screen.png ../app/src/main/res/drawable-port-ldpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-mdpi-screen.png ../app/src/main/res/drawable-port-mdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-xhdpi-screen.png ../app/src/main/res/drawable-port-xhdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-xxhdpi-screen.png ../app/src/main/res/drawable-port-xxhdpi/screen.png (updated file)
  copy  www/res/screen/android/drawable-port-xxxhdpi-screen.png ../app/src/main/res/drawable-port-xxxhdpi/screen.png (updated file)
This app does not have additional resource files defined
Prepared android project successfully
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-device@~1.1.6" via npm
Installing "cordova-plugin-device" at "1.1.7" for android
Android Studio project detected
Fetching plugin "cordova-plugin-dialogs@~1.3.3" via npm
Installing "cordova-plugin-dialogs" at "1.3.4" for android
Android Studio project detected
Fetching plugin "cordova-plugin-file@~4.3.3" via npm
Installing "cordova-plugin-file" at "4.3.3" for android
Fetching plugin "cordova-plugin-compat@^1.0.0" via npm
Installing "cordova-plugin-compat" at "1.2.0" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement: 
      <6.3.0
Skipping 'cordova-plugin-compat' for android
Android Studio project detected

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

to config.xml in order for the application to find previously stored files.
Fetching plugin "cordova-plugin-globalization@~1.0.7" via npm
Installing "cordova-plugin-globalization" at "1.0.9" for android
Android Studio project detected
Fetching plugin "cordova-plugin-inappbrowser@~1.7.1" via npm
Installing "cordova-plugin-inappbrowser" at "1.7.2" for android
Android Studio project detected
Fetching plugin "cordova-plugin-whitelist@^1.3.3" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
Android Studio project detected

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-splashscreen@^5.0.2" via npm
Installing "cordova-plugin-splashscreen" at "5.0.2" for android
Android Studio project detected
Fetching plugin "cordova-plugin-network-information@~1.3.3" via npm
Installing "cordova-plugin-network-information" at "1.3.4" for android
Android Studio project detected
Fetching plugin "cordova-plugin-geolocation@^2.4.3" via npm
Installing "cordova-plugin-geolocation" at "2.4.3" for android
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Installing "cordova-plugin-compat" at "1.2.0" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement: 
      <6.3.0
Skipping 'cordova-plugin-compat' for android
Android Studio project detected
Fetching plugin "cordova-background-geolocation-lt@^2.14.0" via npm
Installing "cordova-background-geolocation-lt" at "2.14.0" for android
Fetching plugin "cordova-plugin-background-fetch@~5.4.1" via npm
Installing "cordova-plugin-background-fetch" at "5.4.1" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
Android Studio project detected
--------------------------------------------------------------------------------
PROJECT PROPERTIES
--------------------------------------------------------------------------------
# This file was originally created by the Android Tools, but is now
# used by cordova-android to manage the state of the various third party
# libraries used in your application

# This is the Library Module that contains the Cordova Library, this is not
# required when using an AAR

# This is the application project.  This is only required for Android Studio Gradle projects

# Project target.
target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-plugin-background-fetch/dev-build.gradle
cordova.system.library.1=com.google.android.gms:play-services-location:16.0.0
cordova.system.library.2=com.android.support:appcompat-v7:27.1.1
cordova.gradle.include.2=cordova-background-geolocation-lt/dev-build.gradle
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Android Studio project detected
studio
:wrapper

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Exception while marshalling /opt/android-sdk/build-tools/26.0.3/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/extras/google/instantapps/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-28/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/build-tools/26.0.3/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/extras/google/instantapps/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /opt/android-sdk/platforms/android-28/package.xml. Probably the SDK is read-only
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at build_973w2bsnzc0edkkq0w4ezi8d4.run(/app/build.gradle:145)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseRenderscript
:CordovaLib:checkReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processReleaseManifest
:CordovaLib:javaPreCompileRelease
:CordovaLib:processReleaseJavaRes NO-SOURCE
:app:preBuild UP-TO-DATE
:app:preReleaseBuild
:app:compileReleaseAidl
:CordovaLib:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript
:app:checkReleaseManifest
:app:generateReleaseBuildConfig
:app:prepareLintJar
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests
:app:processReleaseManifest
:app:splitsDiscoveryTaskRelease
:app:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:app:mergeReleaseAssets
:CordovaLib:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNativeLibsWithMergeJniLibsForRelease
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForRelease
:app:mergeReleaseJniLibFolders
:app:processReleaseJavaRes NO-SOURCE
:app:validateSigningRelease
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:processReleaseResources
:app:generateReleaseSources
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /app/src/main/java/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:app:compileReleaseSources
:app:transformClassesWithStackFramesFixerForRelease
:app:transformClassesWithDesugarForRelease
:app:transformClassesWithPreDexForRelease
:app:transformDexWithDexForRelease
:app:transformNativeLibsWithMergeJniLibsForRelease
:app:transformResourcesWithMergeJavaResForRelease
:app:packageRelease
:app:lintVitalRelease
:app:assembleRelease
:app:cdvBuildRelease

BUILD SUCCESSFUL in 37s
46 actionable tasks: 46 executed
Built the following apk(s): 
    /app/build/outputs/apk/release/app-release.apk
StevenMapes commented 5 years ago

Your help is greatly appreciated. Your plugin looks like it is perfect for what I need (background location services) so I'm very keen to figure this out so I can purchase a license or two

christocracy commented 5 years ago

It's just a mistake in my example code. I forgot to translate the Typescript.

bgGeo.onHttp(function(response) {
  console.log('[http] ', response);
});
StevenMapes commented 5 years ago

Thanks @christocracy I've changed that and yet I still only get the second alert and then the message "TypeError: Cannot read property "onLocation" of undefined.

When I run the compiled APK I get all the way through past the alert(7) then the app crashes but I believe that is down to another plugin not being compatible now which is being initialised after

Is there anything else I could be doing wrong for it to not work locally?

I've double checked these

Installed platforms:
  android 7.0.0
  browser 5.0.4
  ios 4.5.5
Available platforms: 
  osx ~4.0.1
  windows ~5.0.0
  www ^3.12.0

$ phonegap -v
8.0.0

And phonegap build is showing cli-8.0.0 (4.5.4 / 7.0.0 / 5.0.0)

I plan on removing cordova-plugin-geolocation once I refactor the code to use your plugin instead but I'm a bit stuck at the moment

christocracy commented 5 years ago

In chrome, open Javascript Console for your app with the following url: chrome://inspect/#devices

In the Javascript console, enter:

>window.BackgroundGeolocation
christocracy commented 5 years ago

and also:

>window.location.reload
christocracy commented 5 years ago

You're not running your app in the browser at all, are you?

The plugin only works on real devices or simulators.

StevenMapes commented 5 years ago

I'm using the Phonegap Developer App on the phone to test (https://play.google.com/store/apps/details?id=com.adobe.phonegap.app).

StevenMapes commented 5 years ago

When testing in a browser it actually gets past the 7 steps

window.BackgroundGeolocation {LOG_LEVEL_OFF: 0, LOG_LEVEL_ERROR: 1, LOG_LEVEL_WARNING: 2, LOG_LEVEL_INFO: 3, LOG_LEVEL_DEBUG: 4, …}

window.location.reload ƒ reload() { [native code] }

From Chrome

Error: exec proxy not found for :: BackgroundGeolocation :: addLocationListener
(index):418 Error: exec proxy not found for :: BackgroundGeolocation :: addMotionChangeListener
(index):418 Error: exec proxy not found for :: BackgroundGeolocation :: addHttpListener
(index):418 Error: exec proxy not found for :: BackgroundGeolocation :: addProviderChangeListener
(index):418 Error: exec proxy not found for :: BackgroundGeolocation :: ready
(index):1 Uncaught (in promise) Missing Command Error

  | Promise.catch (async) |   |  
-- | -- | -- | --
  | ready | @ | BackgroundGeolocation.js:54
  | myOnDeviceReady | @ | index.js:116
  | (anonymous) | @ | index.js:52
  | Promise.then (async) |   |  
  | onDeviceReady | @ | index.js:44
  | Channel.fire | @ | cordova.js:798
  | (anonymous) | @ | cordova.js:229
  | setTimeout (async) |   |  
  | fireDocumentEvent | @ | cordova.js:224
  | (anonymous) | @ | cordova.js:1163
  | f | @ | cordova.js:645
  | Channel.fire | @ | cordova.js:798
  | (anonymous) | @ | network.js:78
  | callbackFromNative | @ | cordova.js:291
  | callbackSuccess | @ | cordova.js:271
  | onSuccess | @ | cordova.js:970
  | (anonymous) | @ | network.js:43
  | setTimeout (async) |   |  
  | getConnectionInfo | @ | network.js:42
  | module.exports | @ | cordova.js:997
  | NetworkConnection.getInfo | @ | network.js:48
  | (anonymous) | @ | network.js:59
  | Channel.fire | @ | cordova.js:798
  | (anonymous) | @ | cordova.js:1157
  | f | @ | cordova.js:645
  | Channel.fire | @ | cordova.js:798
  | (anonymous) | @ | cordova.js:1144
  | onScriptLoadingComplete | @ | cordova.js:1574
  | scriptLoadedCallback | @ | cordova.js:1591
  | (anonymous) | @ | cordova.js:1545
  | load (async) |   |  
  | exports.injectScript | @ | cordova.js:1531
  | injectIfNecessary | @ | cordova.js:1543
  | handlePluginsObject | @ | cordova.js:1596
  | (anonymous) | @ | cordova.js:1625
  | (anonymous) | @ | cordova.js:1545
  | load (async) |   |  
  | exports.injectScript | @ | cordova.js:1531
  | injectIfNecessary | @ | cordova.js:1543
  | exports.load | @ | cordova.js:1623
  | (anonymous) | @ | cordova.js:1143
  | setTimeout (async) |   |  
  | (anonymous) | @ | cordova.js:1142
  | build | @ | cordova.js:51
  | require | @ | cordova.js:66
  | (anonymous) | @ | cordova.js:1862
  | (anonymous) | @ | cordova.js:1864
christocracy commented 5 years ago

Anything here? https://forums.adobe.com/thread/2303975

christocracy commented 5 years ago

I don't think this "PhoneGap Developer App" is. It's probably not able to be used.

This plugin implements native iOS and Android APIs including:

The plugin will only work in a real iOS / Android device or Simulator.

StevenMapes commented 5 years ago

Thanks Chris. I thought it was as I've used most of those through it before but I'll setup another emulator/simulator to test with today to see if that helps.

StevenMapes commented 5 years ago

I can confirm that it is an issue somewhere within the Phonegap Developer App not as having removed the legacy plugins I can now build the app without any errors so that it works on Android as well as through phonegap whilst cordova-background-geolocation-lt is disabled so I'm going to close this and migrate my app over to use the services now. Thank you for your help

StevenMapes commented 5 years ago

I'm reopening this as I'm back having troubles again.

The app now builds without any errors and runs when I don't enable this plugin but as soon as the plugin its triggered it gets part of the way through the setup and then crashes the app.

Below is the onDeviceReady function copied from the main Cordova example but with the correction you posted yesterday. You'll noticed that I changed the console.log calls into alerts this so the compiled app is easier to debug as I don't know how to get console data from a built app and when I run it via the chrome remote device tools i have the same issues as before.

function myOnDeviceReady() {
    // 1.  Listen to events
    var bgGeo = window.BackgroundGeolocation;

    bgGeo.onLocation(function(location) {
        alert('[location] -' + location);
    });

    bgGeo.onMotionChange(function(event) {
        alert('[motionchange] - isMoving[' + event.isMoving + ']' + ', location['+event.location + ']');
    });

    bgGeo.onHttp(function(response) {
        alert('[http] ' + response );
    });

    bgGeo.onProviderChange(function(event) {
        alert("providerchange");
        alert(event);
        //alert('[providerchange] - Status ['+ event.status + '] , Enabled[' + event.enabled + '] , GPS[' + event.gps + '] , Network[' +event.network + ']');
    });

    // 2. Execute #ready method:
    try {
        bgGeo.ready({
            reset: true,
            debug: true,
            logLevel: bgGeo.LOG_LEVEL_VERBOSE,
            desiredAccuracy: bgGeo.DESIRED_ACCURACY_HIGH,
            distanceFilter: 10,
            url: window.BASE_ENDPOINT + '/locations',
            autoSync: true,
            stopOnTerminate: false,
            startOnBoot: true
        }, function(state) {    // <-- Current state provided to #configure callback
            // 3.  Start tracking
            alert('BackgroundGeolocation is configured and ready to use');
            alert(state.enabled);
            if (!state.enabled) {
                bgGeo.start().then(function() {
                    alert('- BackgroundGeolocation tracking started');
                });
            }
        });
    } catch (e) {
        alert(e);
    }

The alerts get as far as

            alert('BackgroundGeolocation is configured and ready to use');
            alert(state.enabled);

With the latter returning false so it's then dropping into the bg.start() call which causes the app to crash

christocracy commented 5 years ago

Capture exception via $ adb logcat

StevenMapes commented 5 years ago

Hi @christocracy I know that this will sound really stupid but I'm not sure I understand. I'm not compiling the code locally and it's being installed onto the phone through the PlayStore from the APK as an internal test build so i'm not sure I understand running a log capture on my development machine will help as how will the phone connect to it or is there a setting within the Android Developer options on the phone to forward debugging over USB to the daemon on port 5037?

I'm not using Android Studios for any of this

christocracy commented 5 years ago

You need to be able to capture native logs from the device:

https://stackoverflow.com/questions/17683484/how-to-capture-cordova-log

StevenMapes commented 5 years ago

Whilst I set-up logging it's not likely to be something as simple as because I have not purchased a license yet is it?

StevenMapes commented 5 years ago

Here is the full log from application launch through to error which appears to be related to background service permissions if I am reading it correctly.

11-09 13:06:49.120 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.434 15015-15015/? D/FoldersTransitionController: onInterceptTouchEvent# not in folders mode
11-09 13:06:56.475 15015-15015/? D/Launcher: onClick
11-09 13:06:56.476 15015-15015/? D/Launcher: onClickAppShortcut
11-09 13:06:56.478 1305-4922/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=uk.co.jigsawtech.test.dev/.testApp bnds=[851,1097][1058,1431] (has extras)} from uid 10075 pid 15015
11-09 13:06:56.483 601-601/? W//system/bin/hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
11-09 13:06:56.483 1305-4922/? E/ANDR-PERF-JNI: Iop tryGetService failed
11-09 13:06:56.486 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.489 15015-15015/? D/Launcher.PERF: startActivity(Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=uk.co.jigsawtech.test.dev/.testApp bnds=[851,1097][1058,1431] (has extras) }) takes 13 ms
11-09 13:06:56.489 15015-15015/? D/Stats: Intent.getPackage() is null. therefore try to get package name from componentName.getPackageName(): uk.co.jigsawtech.test.dev
11-09 13:06:56.489 15015-16508/? D/Stats: SaveStats doInBackground...
11-09 13:06:56.490 15015-15015/? D/Launcher: onPause
11-09 13:06:56.492 1305-1352/? D/RestartProcessManager: Update Total Launch Times :uk.co.jigsawtech.test.dev
11-09 13:06:56.492 1305-1352/? D/RestartProcessManager: updateSelf :  uk.co.jigsawtech.test.dev, size : 30
11-09 13:06:56.492 1305-1352/? D/RestartProcessManager: Increase Total Launch Time : uk.co.jigsawtech.test.dev, times : 21, index : 29
11-09 13:06:56.492 1305-1352/? D/RestartProcessManager: Last Running Package : uk.co.jigsawtech.test.dev , start time 1541768816492
11-09 13:06:56.498 1305-2668/? I/ActivityManager: Start proc 16509:uk.co.jigsawtech.test.dev/u0a157 for activity uk.co.jigsawtech.test.dev/.testApp
11-09 13:06:56.505 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.511 15015-16508/? D/GridItemProvider: saveToolBoxItemsToPreference: jsonStr= [{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"uk.co.jigsawtech.test.dev.testApp","mPackage":"uk.co.jigsawtech.test.dev"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"uk.co.jigsawtech.test.dev"},"itemType":0,"launchCount":28,"restored":4,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.android.settings.Settings","mPackage":"com.android.settings"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.android.settings"},"itemType":0,"launchCount":108,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.oneplus.contacts.activities.OPPeopleActivity","mPackage":"com.android.contacts"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.android.contacts"},"itemType":0,"launchCount":25,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.android.vending.AssetBrowserActivity","mPackage":"com.android.vending"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.android.vending"},"itemType":0,"launchCount":95,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"md5f0702f468598c68ce18586502249fb40.KeePass","mPackage":"keepass2android.keepass2android"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"keepass2android.keepass2android"},"itemType":0,"launchCount":87,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.adobe.phonegap.app.MainActivity","mPackage":"com.adobe.phonegap.app"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.adobe.phonegap.app"},"itemType":0,"launchCount":107,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.google.android.apps.chrome.Main","mPackage":"com.android.chrome"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.android.chrome"},"itemType":0,"launchCount":3181,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.oneplus.camera.OPCameraActivity","mPackage":"com.oneplus.camera"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.oneplus.camera"},"itemType":0,"launchCount":489,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.android.calendar.AllInOneActivity","mPackage":"com.google.android.calendar"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.google.android.calendar"},"itemType":0,"launchCount":297,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.okcupid.okcupid.activity.MainActivity","mPackage":"com.okcupid.okcupid"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.okcupid.okcupid"},"itemType":0,"launchCount":974,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.whatsapp.Main","mPackage":"com.whatsapp"},"mContentUserHint":-2,"mFlags":270532608,"mPackage":"com.whatsapp"},"itemType":0,"launchCount":463,"restored":0,"serialNumber":0},{"id":0,"intent":{"mAction":"android.intent.action.MAIN","mCategories":["android.intent.category.LAUNCHER"],"mComponent":{"mClass":"com.instagram.android.activity.MainTabActivity","mPackage":"com.instagra
11-09 13:06:56.513 16509-16529/? I/zygote64: The ClassLoaderContext is a special shared library.
11-09 13:06:56.522 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.529 16509-16509/? I/CordovaLog: Changing log level to DEBUG(3)
11-09 13:06:56.529 16509-16509/? I/CordovaActivity: Apache Cordova native platform version 7.0.0 is starting
11-09 13:06:56.529 16509-16509/? D/CordovaActivity: CordovaActivity.onCreate()
11-09 13:06:56.532 1305-4922/? D/ActivityManager: # addPackageDependency # packageName=com.android.chrome -> proc: ProcessRecord{9e3ebce 16509:uk.co.jigsawtech.test.dev/u0a157}
11-09 13:06:56.534 16509-16509/? I/WebViewFactory: Loading com.android.chrome version 70.0.3538.80 (code 353808052)
11-09 13:06:56.534 1305-2668/? D/ActivityManager: # addPackageDependency # packageName=com.android.chrome -> proc: ProcessRecord{9e3ebce 16509:uk.co.jigsawtech.test.dev/u0a157}
11-09 13:06:56.545 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.547 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.553 15015-15015/? D/RecyclerViewWrapper: onWindowVisibilityChanged:8
11-09 13:06:56.557 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.558 16509-16509/? I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<uO>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController;
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class android.webkit.WebViewFactory.getWebViewProviderClass(java.lang.ClassLoader) (WebViewFactory.java:129)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class android.webkit.WebViewFactory.getProviderClass() (WebViewFactory.java:457)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.webkit.WebViewFactoryProvider android.webkit.WebViewFactory.getProvider() (WebViewFactory.java:195)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.webkit.WebViewFactoryProvider android.webkit.WebView.getFactory() (WebView.java:2530)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.ensureProviderCreated() (WebView.java:2525)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.setOverScrollMode(int) (WebView.java:2590)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.View.<init>(android.content.Context) (View.java:4609)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int) (View.java:4758)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.ViewGroup.<init>(android.content.Context, android.util.AttributeSet, int, int) (ViewGroup.java:597)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.widget.AbsoluteLayout.<init>(android.content.Context, android.util.AttributeSet, int, int) (AbsoluteLayout.java:55)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:643)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:588)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:571)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:558)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:76)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Constructor.newInstance0(java.lang.Object[]) (Constructor.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:334)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:206)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:202)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:146)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:224)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void uk.co.jigsawtech.test.dev.testApp.onCreate(android.os.Bundle) (testApp.java:39)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Activity.performCreate(android.os.Bundle, android.os.PersistableBundle) (Activity.java:7041)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7032)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1231)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2864)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2989)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1688)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.os.Looper.loop() (Looper.java:164)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6753)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:482)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:807)
11-09 13:06:56.559 16509-16509/? I/zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.TracingController" on path: DexPathList[[zip file "/data/app/com.android.chrome-PE6LTG1byIAopG19Jx1JKw==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-PE6LTG1byIAopG19Jx1JKw==/lib/arm64, /data/app/com.android.chrome-PE6LTG1byIAopG19Jx1JKw==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class android.webkit.WebViewFactory.getWebViewProviderClass(java.lang.ClassLoader) (WebViewFactory.java:129)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Class android.webkit.WebViewFactory.getProviderClass() (WebViewFactory.java:457)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.webkit.WebViewFactoryProvider android.webkit.WebViewFactory.getProvider() (WebViewFactory.java:195)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.webkit.WebViewFactoryProvider android.webkit.WebView.getFactory() (WebView.java:2530)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.ensureProviderCreated() (WebView.java:2525)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.setOverScrollMode(int) (WebView.java:2590)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.View.<init>(android.content.Context) (View.java:4609)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int) (View.java:4758)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.view.ViewGroup.<init>(android.content.Context, android.util.AttributeSet, int, int) (ViewGroup.java:597)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.widget.AbsoluteLayout.<init>(android.content.Context, android.util.AttributeSet, int, int) (AbsoluteLayout.java:55)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:643)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:588)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:571)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:558)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context, android.util.AttributeSet) (SystemWebView.java:47)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebView.<init>(android.content.Context) (SystemWebView.java:43)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.engine.SystemWebViewEngine.<init>(android.content.Context, org.apache.cordova.CordovaPreferences) (SystemWebViewEngine.java:76)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Constructor.newInstance0(java.lang.Object[]) (Constructor.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:334)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaWebViewImpl.createEngine(android.content.Context, org.apache.cordova.CordovaPreferences) (CordovaWebViewImpl.java:80)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebViewEngine org.apache.cordova.CordovaActivity.makeWebViewEngine() (CordovaActivity.java:206)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at org.apache.cordova.CordovaWebView org.apache.cordova.CordovaActivity.makeWebView() (CordovaActivity.java:202)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.CordovaActivity.init() (CordovaActivity.java:146)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void org.apache.cordova.CordovaActivity.loadUrl(java.lang.String) (CordovaActivity.java:224)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void uk.co.jigsawtech.test.dev.testApp.onCreate(android.os.Bundle) (testApp.java:39)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Activity.performCreate(android.os.Bundle, android.os.PersistableBundle) (Activity.java:7041)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7032)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1231)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2864)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2989)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1688)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.os.Looper.loop() (Looper.java:164)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6753)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:482)
11-09 13:06:56.559 16509-16509/? I/zygote64:     at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:807)
11-09 13:06:56.564 16509-16509/? I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 7236-7238)
11-09 13:06:56.571 16509-16509/? I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
11-09 13:06:56.572 16509-16509/? I/cr_LibraryLoader: Expected native library version number "70.0.3538.80", actual native library version number "70.0.3538.80"
11-09 13:06:56.575 16509-16539/? W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
11-09 13:06:56.577 16509-16509/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
11-09 13:06:56.579 16509-16509/? W/ResourceType: Failure getting entry for 0x7f1204f5 (t=17 e=1269) (error -2147483647)
11-09 13:06:56.581 16545-16545/? E//system/bin/webview_zygote32: Failed to make and chown /acct/uid_99049: Permission denied
11-09 13:06:56.581 16545-16545/? E/Zygote: createProcessGroup(99049, 0) failed: Permission denied
11-09 13:06:56.582 16545-16545/? W//system/bin/webview_zygote32: Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
11-09 13:06:56.587 1305-2668/? I/ActivityManager: Start proc 16545:com.android.chrome:sandboxed_process0/u0i49 for webview_service uk.co.jigsawtech.test.dev/org.chromium.content.app.SandboxedProcessService0
11-09 13:06:56.595 16569-16569/? W/Zygote: child_detach_binder close binder 
11-09 13:06:56.595 16569-16569/? E/asset: setgid: Operation not permitted
11-09 13:06:56.614 16545-16566/? I//system/bin/webview_zygote32: The ClassLoaderContext is a special shared library.
11-09 13:06:56.619 1305-3517/? D/ConnectivityService: listenForNetwork for uid/pid:10157/16509 NetworkRequest [ LISTEN id=127, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
11-09 13:06:56.619 1305-1760/? D/ConnectivityService: rematching NetworkAgentInfo [WIFI () - 105]
11-09 13:06:56.619 1305-1760/? D/ConnectivityService:  network has: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&FOREGROUND LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -40]
11-09 13:06:56.622 16545-16545/? I/cr_ChildProcessService: Creating new ChildProcessService pid=16545
11-09 13:06:56.640 16509-16509/? D/SystemWebViewEngine: CordovaWebView is running on device made by: OnePlus
11-09 13:06:56.642 16509-16509/? D/PluginManager: init()
11-09 13:06:56.643 16509-16509/? W/WhitelistPlugin: Found <access launch-external> within config.xml. Please use <allow-intent> instead.
11-09 13:06:56.644 16509-16509/? I/chatty: uid=10157(uk.co.jigsawtech.test.dev) identical 4 lines
11-09 13:06:56.644 16509-16509/? W/WhitelistPlugin: Found <access launch-external> within config.xml. Please use <allow-intent> instead.
11-09 13:06:56.681 16509-16582/? D/OpenGLRenderer: HWUI GL Pipeline
11-09 13:06:56.702 16509-16509/? D/FileUtils: Unrecognized extra filesystem identifier: assets
11-09 13:06:56.702 16509-16509/? D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)
11-09 13:06:56.706 16509-16568/? W/cr_media: Requires BLUETOOTH permission
11-09 13:06:56.707 16509-16584/? I/Adreno: QUALCOMM build                   : 4bff8b9, Ida6448821d
                                           Build Date                       : 06/14/18
                                           OpenGL ES Shader Compiler Version: EV031.22.00.01
                                           Local Branch                     : 
                                           Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.4.R1.08.01.00.309.061
                                           Remote Branch                    : NONE
                                           Reconstruct Branch               : NOTHING
11-09 13:06:56.709 16509-16509/? D/CordovaActivity: Started the activity.
11-09 13:06:56.710 16509-16509/? D/CordovaActivity: Resumed the activity.
11-09 13:06:56.712 16509-16584/? I/Adreno: PFP: 0x005ff087, ME: 0x005ff063
11-09 13:06:56.717 1305-2668/? D/ConnectivityService: listenForNetwork for uid/pid:10157/16509 NetworkRequest [ LISTEN id=128, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
11-09 13:06:56.717 1305-1760/? D/ConnectivityService: rematching NetworkAgentInfo [WIFI () - 105]
11-09 13:06:56.717 1305-1760/? D/ConnectivityService:  network has: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&FOREGROUND LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -40]
11-09 13:06:56.718 16509-16584/? I/zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
11-09 13:06:56.725 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.727 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.729 16509-16582/? I/OpenGLRenderer: Initialized EGL, version 1.4
11-09 13:06:56.729 16509-16582/? D/OpenGLRenderer: Swap behavior 2
11-09 13:06:56.731 16509-16584/? D/libGLESv2: Successfully load libGLESv2_oneplus.so, this=0x7e2a231008
11-09 13:06:56.733 16509-16582/? D/libGLESv1: Successfully load libGLESv2_oneplus.so, this=0x7e281ae008
11-09 13:06:56.734 16509-16582/? D/OpenGLRenderer: Successfully load libhwui_plugin.so, this=0x7e280fe558
11-09 13:06:56.736 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.741 16545-16578/? I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 7399-7400)
11-09 13:06:56.741 16545-16578/? I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
11-09 13:06:56.741 16545-16578/? I/cr_LibraryLoader: Expected native library version number "70.0.3538.80", actual native library version number "70.0.3538.80"
11-09 13:06:56.744 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
11-09 13:06:56.745 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
11-09 13:06:56.745 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
11-09 13:06:56.745 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
11-09 13:06:56.746 16509-16584/? W/VideoCapabilities: Unsupported mime video/divx
11-09 13:06:56.750 16509-16584/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
11-09 13:06:56.750 16509-16584/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
11-09 13:06:56.752 16509-16584/? W/VideoCapabilities: Unsupported mime video/x-ms-wmv
11-09 13:06:56.752 16509-16584/? W/VideoCapabilities: Unsupported mime video/x-ms-wmv
11-09 13:06:56.753 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.756 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
11-09 13:06:56.756 16509-16584/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
11-09 13:06:56.760 16509-16584/? I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
11-09 13:06:56.763 826-826/? D/SurfaceFlinger: duplicate layer name: changing uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp to uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp#1
11-09 13:06:56.765 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.770 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.776 16509-16509/? D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)

                                                       [ 11-09 13:06:56.784 16509:16582 D/         ]
                                                       Successfully load libGraphicBuffer_oneplus.so, this=0x7e2a0eb1c8
11-09 13:06:56.788 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.789 2366-2366/? D/StatusBar: useDarkText:false, lockDarkText:false, useDarkTheme:false
11-09 13:06:56.790 1305-1605/? D/WindowManager: mDockBottom 2034

                                                [ 11-09 13:06:56.795 16509:16582 E/         ]
                                                Cannot load libgui-plugin
11-09 13:06:56.796 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.803 1305-1605/? I/chatty: uid=1000(system) android.anim identical 2 lines
11-09 13:06:56.806 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.809 1305-1370/? I/ActivityManager: Displayed uk.co.jigsawtech.test.dev/.testApp: +314ms
11-09 13:06:56.809 601-601/? W//system/bin/hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
11-09 13:06:56.809 1305-1370/? E/ANDR-PERF-JNI: Iop tryGetService failed
11-09 13:06:56.810 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.817 15015-15015/? D/Launcher: onStop
11-09 13:06:56.970 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:56.987 1305-1605/? I/chatty: uid=1000(system) android.anim identical 2 lines
11-09 13:06:56.988 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:57.001 16509-16509/? D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
11-09 13:06:57.043 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:06:57.044 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:06:57.044 826-826/? D/SurfaceFlinger: duplicate layer name: changing uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp to uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp#2
11-09 13:06:57.045 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:06:57.061 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:57.193 1305-1620/? I/SettingsState: [PERSIST START] 
11-09 13:06:57.193 1305-1620/? I/SettingsState: file:settings_system.xml
11-09 13:06:57.203 1305-1620/? I/SettingsState: [PERSIST END]
11-09 13:06:57.062 1305-1605/? I/chatty: uid=1000(system) android.anim identical 1 line
11-09 13:06:57.103 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:58.488 806-854/? E/ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/scsi_host/host0/../../../clkscale_enable with 1
                                                       return value 2
11-09 13:06:59.217 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:06:59.419 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:59.436 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:06:59.712 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:00.000 1305-1632/? V/AlarmManager: Triggering alarm #0: 3 when =9235591 package =android operation =*alarm*:android.intent.action.TIME_TICK flags =0x1
11-09 13:06:59.713 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:00.013 3096-3096/? I/DigitalWidgetViewsFactory: mAdapter.getCount() = 1
11-09 13:07:00.030 2366-2588/? I/ClockCtrl:  schedule next: 59970
11-09 13:07:00.030 2366-2588/? I/KeyguardUpdateMonitor: onTimeChanged
11-09 13:07:00.030 2366-2366/? D/KeyguardUpdateMonitor: handleTimeUpdate
11-09 13:07:00.035 2366-2366/? I/Clock: onTimeChanged
11-09 13:07:00.039 2366-2366/? I/DateView: onTimeChanged
11-09 13:07:00.040 3096-3108/? I/DigitalWidgetViewsFactory: mAdapter.getCount() = 1
11-09 13:07:00.041 3096-4201/? I/DigitalWidgetViewsFactory: getViewAt  position = 0
11-09 13:07:00.043 3096-4201/? I/DigitalWidgetViewsFactory: updateView left view !!!
11-09 13:07:00.044 3096-4201/? I/DigitalWidgetViewsFactory: updateView right view !!!
11-09 13:07:01.224 805-2569/? V/LocSvc_HIDL_IzatProvider: [onLocationChanged][71] [HS] =>>>> [HC]
11-09 13:07:01.225 1305-2586/? V/LocSvc_HIDL_IzatProvider_jni: [onLocationChanged][136] [HC] <<= [HS]
11-09 13:07:01.226 805-2569/? V/LocSvc_HIDL_IzatProvider: [onLocationChanged][71] [HS] =>>>> [HC]
11-09 13:07:01.226 1305-2586/? V/LocSvc_HIDL_IzatProvider_jni: [onLocationChanged][136] [HC] <<= [HS]
11-09 13:07:01.694 29649-16269/? I/NetworkChangeJob: Minute: 0
11-09 13:07:02.333 1305-1632/? V/AlarmManager: Triggering alarm #0: 3 when =9237924 package =com.google.android.gms operation =*alarm*:com.google.android.gms/.lockbox.LockboxAlarmReceiver flags =0x0
11-09 13:07:02.490 2578-4044/? W/arqp: Empty context buffer. Thus might mean that the context is not synced down.
11-09 13:07:02.490 2578-4044/? W/armt: Empty context model while retrieving upload opt-in status!
11-09 13:07:02.717 1305-3517/? D/WindowManager: mDockBottom 2034
11-09 13:07:02.739 16509-16509/? D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
11-09 13:07:02.805 16509-16621/? D/NetworkManager: toLower : wifi
11-09 13:07:02.805 16509-16621/? D/NetworkManager: wifi : wifi
11-09 13:07:02.805 16509-16621/? D/NetworkManager: Connection Type: wifi
11-09 13:07:02.805 16509-16621/? D/NetworkManager: Connection Extra Info: "HUAWEI-B310-30EB"
11-09 13:07:02.821 16509-16509/? D/NetworkManager: toLower : wifi
11-09 13:07:02.821 16509-16509/? D/NetworkManager: wifi : wifi
11-09 13:07:02.821 16509-16509/? D/NetworkManager: Connection Type: wifi
11-09 13:07:02.821 16509-16509/? D/NetworkManager: Connection Extra Info: "HUAWEI-B310-30EB"
11-09 13:07:02.828 16509-16621/? I/App: WARNING: Back Button Default Behavior will be overridden.  The backbutton event will be fired!
11-09 13:07:02.893 16509-16621/? I/TSLocationManager: ╔═════════════════════════════════════════════
                                                      ║ LICENSE VALIDATION FAILURE
                                                      ╠═════════════════════════════════════════════
                                                      ╟─ uk.co.jigsawtech.test.dev
11-09 13:07:02.894 16509-16621/? D/EventBus: No subscribers registered for event class com.transistorsoft.locationmanager.event.SettingsFailureEvent
11-09 13:07:02.894 16509-16621/? D/EventBus: No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent
11-09 13:07:02.905 16509-16621/? I/TSLocationManager: [c.t.l.adapter.TSConfig print] 
                                                      ╔═════════════════════════════════════════════
                                                      ║ TSLocationManager version: 2.14.1 (282)
                                                      ╠═════════════════════════════════════════════
                                                      {
                                                        "activityRecognitionInterval": 10000,
                                                        "allowIdenticalLocations": false,
                                                        "autoSync": true,
                                                        "autoSyncThreshold": 0,
                                                        "batchSync": false,
                                                        "debug": true,
                                                        "deferTime": 0,
                                                        "desiredAccuracy": -1,
                                                        "desiredOdometerAccuracy": 100,
                                                        "disableElasticity": false,
                                                        "disableStopDetection": false,
                                                        "distanceFilter": 10,
                                                        "elasticityMultiplier": 1,
                                                        "enableHeadless": false,
                                                        "enableTimestampMeta": false,
                                                        "extras": {},
                                                        "fastestLocationUpdateInterval": 10000,
                                                        "forceReloadOnBoot": false,
                                                        "forceReloadOnGeofence": false,
                                                        "forceReloadOnHeartbeat": false,
                                                        "forceReloadOnLocationChange": false,
                                                        "forceReloadOnMotionChange": false,
                                                        "forceReloadOnSchedule": false,
                                                        "foregroundService": false,
                                                        "geofenceInitialTriggerEntry": true,
                                                        "geofenceProximityRadius": 1000,
                                                        "geofenceTemplate": "",
                                                        "headers": {},
                                                        "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask",
                                                        "heartbeatInterval": -1,
                                                        "httpRootProperty": "location",
                                                        "httpTimeout": 60000,
                                                        "isMoving": false,
                                                        "locationTemplate": "",
                                                        "locationTimeout": 60,
                                                        "locationUpdateInterval": 1000,
                                                        "locationsOrderDirection": "ASC",
                                                        "logLevel": 5,
                                                        "logMaxDays": 3,
                                                        "maxBatchSize": -1,
                                                        "maxDaysToPersist": 1,
                                                        "maxRecordsToPersist": -1,
                                                        "method": "POST",
                                                        "minimumActivityRecognitionConfidence": 75,
                                                        "notificationColor": "",
                                                        "notificationLargeIcon": "",
                                                        "notificationPriority": 0,
                                                        "notificationSmallIcon": "",
                                                        "notificationText": "Location Service activated",
                                                        "notificationTitle": "",
                                                        "params": {},
                                                        "persist": true,
                                                        "schedule": [],
                                                        "startOnBoot": true,
                                                        "stationaryRadius": 25,
                                                        "stopAfterElapsedMinutes": 0,
                                                        "stopOnStationary": false,
                                                        "stopOnTerminate": false,
                                                        "stopTimeout": 5,
                                                        "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
                                                        "url": "https:\/\/a3b91af7.ngrok.io\/\/locations",
                                                        "enabled": false,
                                                        "schedulerEnabled": false,
                                                        "trackingMode": 1,
                                                        "odometer": 0,
                                                        "isFirstBoot": false
                                                      }
                                                      ╔═════════════════════════════════════════════
                                                      ║ DEVICE SENSORS
                                                      ╠═════════════════════════════════════════════
                                                      ╟─ ✅  ACCELEROMETER: {Sensor name="BMI160 Accelerometer", vendor="BOSCH", version=2062600, type=1, maxRange=39.22661, resolution=0.0023956299, power=0.18, minDelay=2500}
                                                      ╟─ ✅  GYROSCOPE: {Sensor name="BMI160 Gyroscope", vendor="BOSCH", version=2062600, type=4, maxRange=34.906586, resolution=0.0010681152, power=0.9, minDelay=2500}
                                                      ╟─ ✅  MAGNETOMETER: {Sensor name="AK09911 Magnetometer", vendor="AKM", version=1, type=2, maxRange=4911.9995, resolution=0.5996704, power=2.4, minDelay=20000}
                                                      ╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="Significant Motion Detector", vendor="QTI", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.17999268, minDelay=-1}
                                                      ╚═════════════════════════════════════════════
11-09 13:07:02.923 16509-16621/? D/TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:07:02.931 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:02.932 16509-16621/? D/TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:07:02.933 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:02.939 16509-16621/? D/EventBus: No subscribers registered for event class com.transistorsoft.locationmanager.event.ConfigChangeEvent
11-09 13:07:02.939 16509-16621/? D/EventBus: No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent
11-09 13:07:02.947 16509-16621/? I/TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>] 
                                                        ✅  Google Play Services: connected (version code:12451000)
11-09 13:07:02.948 16509-16519/? I/zygote64: Do partial code cache collection, code=28KB, data=22KB
11-09 13:07:02.948 16509-16519/? I/zygote64: After code cache collection, code=28KB, data=22KB
11-09 13:07:02.948 16509-16519/? I/zygote64: Increasing code cache capacity to 128KB
11-09 13:07:02.962 16509-16621/? D/TSLocationManager: [c.t.locationmanager.data.a.c a] 
                                                        ✅  Opened database
11-09 13:07:02.973 16509-16621/? D/TSLocationManager: [c.t.locationmanager.data.a.c prune] 
                                                        ℹ️  PRUNE -1 days
11-09 13:07:02.992 16509-16621/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
11-09 13:07:02.995 16509-16621/? D/TSLocationManager: [c.t.locationmanager.data.a.a f] 
                                                        ✅  Opened database
11-09 13:07:03.013 16509-16621/? D/TSLocationManager: $ addLocationListener()
11-09 13:07:03.019 16509-16621/? D/TSLocationManager: $ addMotionChangeListener()
11-09 13:07:03.020 16509-16621/? D/TSLocationManager: $ addHttpListener()
11-09 13:07:03.021 16509-16621/? D/TSLocationManager: $ addProviderChangeListener()
11-09 13:07:03.023 16509-16621/? D/TSLocationManager: $ ready()
11-09 13:07:03.034 16509-16621/? D/TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:07:03.046 16509-16621/? D/TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:07:03.055 16509-16621/? D/TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true
11-09 13:07:03.062 16509-16621/? W/PluginManager: THREAD WARNING: exec() call to BackgroundGeolocation.ready blocked the main thread for 39ms. Plugin should use CordovaInterface.getThreadPool().
11-09 13:07:03.083 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:03.084 1305-4922/? I/chatty: uid=1000(system) Binder:1305_17 identical 1 line
11-09 13:07:03.088 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:03.093 16509-16509/? I/zygote64: Deoptimizing void android.view.ViewGroup$ChildListForAccessibility.init(android.view.ViewGroup, boolean) due to JIT inline cache
11-09 13:07:03.103 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:03.105 1305-1605/? I/chatty: uid=1000(system) android.anim identical 1 line
11-09 13:07:03.149 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:04.166 4023-7592/? D/NetworkStateUtils: netWorkState=1
11-09 13:07:05.430 1305-3517/? D/WindowManager: mDockBottom 2034
11-09 13:07:05.486 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:05.490 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:05.496 826-826/? D/SurfaceFlinger: duplicate layer name: changing uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp to uk.co.jigsawtech.test.dev/uk.co.jigsawtech.test.dev.testApp#2
11-09 13:07:05.501 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:05.533 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:05.631 1305-1605/? I/chatty: uid=1000(system) android.anim identical 3 lines
11-09 13:07:05.650 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:06.809 16509-16621/? D/TSLocationManager: $ start()
11-09 13:07:06.811 16509-16621/? D/TSLocationManager: [c.t.locationmanager.util.b a] 
                                                        ℹ️  LocationAuthorization: Permission granted
11-09 13:07:06.817 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:06.827 16509-16638/? I/TSLocationManager: - Enable: false → true, trackingMode: 1
11-09 13:07:06.828 16509-16621/? W/PluginManager: THREAD WARNING: exec() call to BackgroundGeolocation.start blocked the main thread for 19ms. Plugin should use CordovaInterface.getThreadPool().
11-09 13:07:06.868 1305-3517/? W/ActivityManager: Bringing down service while still waiting for start foreground: ServiceRecord{f8455dd u0 uk.co.jigsawtech.test.dev/com.transistorsoft.locationmanager.BackgroundGeolocationService}
11-09 13:07:06.873 1305-3517/? D/WindowManager: mDockBottom 2034
11-09 13:07:06.933 16509-16509/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: uk.co.jigsawtech.test.dev, PID: 16509
                                                   android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1867)
                                                       at android.os.Handler.dispatchMessage(Handler.java:106)
                                                       at android.os.Looper.loop(Looper.java:164)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6753)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:482)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
11-09 13:07:06.935 600-600/? E/SELinux: avc:  denied  { find } for service=opdiagnose pid=16509 uid=10157 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
11-09 13:07:06.935 600-600/? E/SELinux: avc:  denied  { find } for service=opdiagnose pid=16509 uid=10157 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
11-09 13:07:06.935 16509-16509/? W/OPDiagnose: getService:OPDiagnoseService NULL
11-09 13:07:06.939 16509-16641/? D/OSTracker: OS Event: crash
11-09 13:07:06.942 1305-4922/? W/ActivityManager:   Force finishing activity uk.co.jigsawtech.test.dev/.testApp
11-09 13:07:06.945 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:06.947 1305-1352/? D/RestartProcessManager: increase duration : 10452 for uk.co.jigsawtech.test.dev
11-09 13:07:06.948 3452-4055/? D/OPReportService: addMonitorFolder onEvent path=data_app_crash@2018-11-09-13_07_06_947.txt, event:128
11-09 13:07:06.949 1305-1354/? I/ActivityManager: Showing crash dialog for package uk.co.jigsawtech.test.dev u0
11-09 13:07:06.965 16509-16641/? D/AbstractTracker: Event success
11-09 13:07:06.980 1305-1354/? D/WindowManager: mDockBottom 2034
11-09 13:07:06.992 1305-16643/? D/DropBoxManagerService: file :: /data/system/dropbox/data_app_crash@2018-11-09-13_07_06_947.txt
11-09 13:07:06.984 1305-1354/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.002 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.013 1305-1605/? I/chatty: uid=1000(system) android.anim identical 2 lines
11-09 13:07:07.048 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.070 2578-4044/? W/arqp: Empty context buffer. Thus might mean that the context is not synced down.
11-09 13:07:07.070 2578-4044/? W/armt: Empty context model while retrieving upload opt-in status!
11-09 13:07:07.251 1305-1620/? I/SettingsState: [PERSIST START] 
11-09 13:07:07.252 1305-1620/? I/SettingsState: file:settings_secure.xml
11-09 13:07:07.279 1305-1620/? I/SettingsState: [PERSIST END]
11-09 13:07:07.445 1305-1352/? W/ActivityManager: Activity pause timeout for ActivityRecord{8c6511b u0 uk.co.jigsawtech.test.dev/.testApp t1078 f}
11-09 13:07:07.463 15015-15015/? D/RecyclerViewWrapper: onWindowVisibilityChanged:4
11-09 13:07:07.469 1305-1352/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.480 1305-1352/? D/RestartProcessManager: Update Total Launch Times :net.oneplus.launcher
11-09 13:07:07.480 1305-1352/? D/RestartProcessManager: sLastRunningPackage (null) : net.oneplus.launcher
11-09 13:07:07.481 1305-2668/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.499 15015-15015/? D/Launcher: onStart
11-09 13:07:07.503 15015-15015/? D/BlurWallpaperEventHandler: [onLauncherStart] mUserForeground=true
11-09 13:07:07.505 15015-15015/? D/WallpaperUtils: [isOnePlusH2BlurWallpaper]: user=0, info=null
11-09 13:07:07.505 15015-15015/? D/BlurWallpaperEventHandler: [onLauncherStart] mWillResetWallpaper=false, isOnePlusH2BlurWallpaper=false
11-09 13:07:07.506 15015-15015/? D/Launcher: onResume
11-09 13:07:07.512 15015-15015/? D/NotificationListener: permissionGranted# grant: true
11-09 13:07:07.519 1305-1352/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=org.codeaurora.action.stk.idle_screen flg=0x10 (has extras) } to com.android.stk/.StkCmdReceiver
11-09 13:07:07.520 15015-15015/? D/Launcher: DynamicIcon doWorkspaceOrFolderIconAnimation be enter
11-09 13:07:07.520 15015-15015/? D/Launcher.Workspace: DynamicIcon Workspace updateCurrentPageDynamicIconState success
11-09 13:07:07.524 15015-15113/? D/ClockIconDelegate: updateClockData hour = 1, newHour = 1, oldHour = 0, minute = 7, newMinute = 7, oldMinute = 4, obj = net.oneplus.launcher.dynamicicon.clock.ClockIconDelegate@87644e4
11-09 13:07:07.524 15015-15113/? D/ClockIconDelegate: DynamicIcon check needInvalidate true, oldHour = 0, newHour = 1, obj = net.oneplus.launcher.dynamicicon.clock.ClockIconDelegate@87644e4
11-09 13:07:07.528 15015-15015/? D/RecyclerViewWrapper: onWindowVisibilityChanged:0
11-09 13:07:07.553 3096-3108/? I/DigitalWidgetViewsFactory: mAdapter.getCount() = 1
11-09 13:07:07.554 3096-8472/? I/DigitalWidgetViewsFactory: getViewAt  position = 0
11-09 13:07:07.555 3096-8472/? I/DigitalWidgetViewsFactory: updateView left view !!!
11-09 13:07:07.555 3096-8472/? I/DigitalWidgetViewsFactory: updateView right view !!!
11-09 13:07:07.556 1305-10028/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.566 3096-8472/? I/DigitalWidgetViewsFactory: getViewAt  position = 0
11-09 13:07:07.566 15015-15015/? D/PopupDataProvider: onNotificationFullRefresh#
11-09 13:07:07.567 3096-8472/? I/DigitalWidgetViewsFactory: updateView left view !!!
11-09 13:07:07.567 3096-8472/? I/DigitalWidgetViewsFactory: updateView right view !!!
11-09 13:07:07.567 15015-15113/? D/ClockIconDelegate: DynamicIcon check needInvalidate true, oldHour = 0, newHour = 1, obj = net.oneplus.launcher.dynamicicon.clock.ClockIconDelegate@87644e4
11-09 13:07:07.586 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.587 2366-2366/? D/StatusBar: useDarkText:false, lockDarkText:false, useDarkTheme:false
11-09 13:07:07.617 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.628 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:07.718 15015-15015/? D/Launcher: DynamicIcon doWorkspaceOrFolderIconAnimation be enter
11-09 13:07:07.718 15015-15015/? D/Launcher.Workspace: DynamicIcon Workspace updateCurrentPageDynamicIconState success
11-09 13:07:07.946 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:08.068 15015-15015/? D/Launcher.Workspace: buildPageHardwareLayer# page: 0 type: LAYER_TYPE_HARDWARE
11-09 13:07:08.074 15015-15015/? D/Launcher.Workspace: buildPageHardwareLayer# page: 1 type: LAYER_TYPE_HARDWARE
11-09 13:07:08.083 15015-15115/? W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
11-09 13:07:08.187 1305-1620/? I/SettingsState: [PERSIST START] 
11-09 13:07:08.188 1305-1620/? I/SettingsState: file:settings_system.xml
11-09 13:07:08.219 1305-1620/? I/SettingsState: [PERSIST END]
11-09 13:07:08.083 15015-15115/? W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
11-09 13:07:08.652 21242-9546/? I/Finsky: [384] com.google.android.finsky.bn.an.run(6): Stats for Executor: BlockingExecutor com.google.android.finsky.bn.ao@9b686b7[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6]
11-09 13:07:08.654 21242-9546/? I/Finsky: [384] com.google.android.finsky.bn.an.run(6): Stats for Executor: LightweightExecutor com.google.android.finsky.bn.ao@84d4e24[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 42]
11-09 13:07:08.693 21242-9546/? I/Finsky: [384] com.google.android.finsky.bn.an.run(6): Stats for Executor: bgExecutor com.google.android.finsky.bn.ao@a916d8d[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 6]
11-09 13:07:08.751 21242-9546/? I/Finsky: [384] com.google.android.finsky.bn.an.run(6): Stats for Executor: StorageAwareDownloadServiceManagerSpaceChecker com.google.android.finsky.bn.ao@75acb42[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
11-09 13:07:08.953 1305-4922/? W/ActivityManager:   Force finishing activity uk.co.jigsawtech.test.dev/.testApp
11-09 13:07:08.955 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:08.967 1305-4922/? D/WindowManager: mDockBottom 2034
11-09 13:07:08.980 1305-1354/? D/WindowManager: mDockBottom 2034
11-09 13:07:08.995 1305-4922/? I/ActivityManager: Killing 16509:uk.co.jigsawtech.test.dev/u0a157 (adj 200): crash
11-09 13:07:08.998 1305-1355/? W/zygote64: kill(-16509, 9) failed: No such process
11-09 13:07:08.998 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:09.001 1305-4922/? D/ActivityManager: Process uk.co.jigsawtech.test.dev has 0 services
11-09 13:07:09.001 16545-16545/? I/cr_ChildProcessService: Destroying ChildProcessService pid=16545
11-09 13:07:09.003 1305-1354/? W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
11-09 13:07:09.006 1305-3517/? I/ActivityManager: Killing 16545:com.android.chrome:sandboxed_process0/u0a157i49 (adj 900): isolated not needed
11-09 13:07:09.007 1305-1355/? W/zygote64: kill(-16509, 9) failed: No such process
11-09 13:07:09.036 1305-3525/? D/ActivityManager: Process com.android.chrome:sandboxed_process0 has 0 services
11-09 13:07:09.054 1305-1356/? D/KernelUidCpuTimeReader: Removing uids 99049-99049
11-09 13:07:09.058 1305-2686/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=128, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@cb0b20d)
11-09 13:07:09.058 1305-1370/? W/ActivityManager: setHasOverlayUi called on unknown pid: 16509
11-09 13:07:09.059 1305-2541/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=127, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@89f5c2)
11-09 13:07:09.061 1305-1760/? D/ConnectivityService: releasing NetworkRequest [ LISTEN id=128, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ] (release request)
11-09 13:07:09.061 1305-1760/? D/ConnectivityService: releasing NetworkRequest [ LISTEN id=127, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ] (release request)
11-09 13:07:09.061 1305-1355/? I/chatty: uid=1000(system) ActivityManager identical 9 lines
11-09 13:07:09.066 1305-1355/? W/zygote64: kill(-16509, 9) failed: No such process
11-09 13:07:09.066 1305-1355/? I/zygote64: Successfully killed process cgroup uid 10157 pid 16509 in 68ms
11-09 13:07:09.066 1305-1355/? W/zygote64: Failed to open process cgroup uid 99049 pid 16545: No such file or directory
11-09 13:07:09.066 1305-1355/? E/zygote64: Error encountered killing process cgroup uid 99049 pid 16545: No such file or directory
11-09 13:07:09.168 1305-1605/? W/AppOps: Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
11-09 13:07:09.169 1305-1605/? D/WindowManager: mDockBottom 2034
11-09 13:07:10.412 1305-1305/? W/NotificationService: Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@9aaefd3 in package uk.co.jigsawtech.test.dev
11-09 13:07:10.413 1305-1305/? W/WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@b8c2920
StevenMapes commented 5 years ago

Here are the entries filtered to TSLocationManager and recaptured

11-09 13:19:22.036 19159 19244 I TSLocationManager: 
11-09 13:19:22.036 19159 19244 I TSLocationManager: ╔═════════════════════════════════════════════
11-09 13:19:22.036 19159 19244 I TSLocationManager: ║ LICENSE VALIDATION FAILURE
11-09 13:19:22.036 19159 19244 I TSLocationManager: ╠═════════════════════════════════════════════
11-09 13:19:22.036 19159 19244 I TSLocationManager: ╟─ uk.co.jigsawtech.test.dev
11-09 13:19:22.049 19159 19244 I TSLocationManager: [c.t.l.adapter.TSConfig print] 
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╔═════════════════════════════════════════════
11-09 13:19:22.049 19159 19244 I TSLocationManager: ║ TSLocationManager version: 2.14.1 (282)
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╠═════════════════════════════════════════════
11-09 13:19:22.049 19159 19244 I TSLocationManager: {
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "activityRecognitionInterval": 10000,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "allowIdenticalLocations": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "autoSync": true,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "autoSyncThreshold": 0,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "batchSync": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "debug": true,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "deferTime": 0,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "desiredAccuracy": -1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "desiredOdometerAccuracy": 100,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "disableElasticity": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "disableStopDetection": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "distanceFilter": 10,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "elasticityMultiplier": 1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "enableHeadless": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "enableTimestampMeta": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "extras": {},
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "fastestLocationUpdateInterval": 10000,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnBoot": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnGeofence": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnHeartbeat": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnLocationChange": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnMotionChange": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "forceReloadOnSchedule": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "foregroundService": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "geofenceInitialTriggerEntry": true,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "geofenceProximityRadius": 1000,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "geofenceTemplate": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "headers": {},
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "headlessJobService": "com.transistorsoft.cordova.bggeo.BackgroundGeolocationHeadlessTask",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "heartbeatInterval": -1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "httpRootProperty": "location",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "httpTimeout": 60000,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "isMoving": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "locationTemplate": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "locationTimeout": 60,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "locationUpdateInterval": 1000,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "locationsOrderDirection": "ASC",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "logLevel": 5,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "logMaxDays": 3,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "maxBatchSize": -1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "maxDaysToPersist": 1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "maxRecordsToPersist": -1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "method": "POST",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "minimumActivityRecognitionConfidence": 75,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationColor": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationLargeIcon": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationPriority": 0,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationSmallIcon": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationText": "Location Service activated",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "notificationTitle": "",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "params": {},
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "persist": true,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "schedule": [],
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "startOnBoot": true,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "stationaryRadius": 25,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "stopAfterElapsedMinutes": 0,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "stopOnStationary": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "stopOnTerminate": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "stopTimeout": 5,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "triggerActivities": "in_vehicle, on_bicycle, on_foot, running, walking",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "url": "https:\/\/a3b91af7.ngrok.io\/\/locations",
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "enabled": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "schedulerEnabled": false,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "trackingMode": 1,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "odometer": 0,
11-09 13:19:22.049 19159 19244 I TSLocationManager:   "isFirstBoot": false
11-09 13:19:22.049 19159 19244 I TSLocationManager: }
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╔═════════════════════════════════════════════
11-09 13:19:22.049 19159 19244 I TSLocationManager: ║ DEVICE SENSORS
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╠═════════════════════════════════════════════
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╟─ ✅  ACCELEROMETER: {Sensor name="BMI160 Accelerometer", vendor="BOSCH", version=2062600, type=1, maxRange=39.22661, resolution=0.0023956299, power=0.18, minDelay=2500}
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╟─ ✅  GYROSCOPE: {Sensor name="BMI160 Gyroscope", vendor="BOSCH", version=2062600, type=4, maxRange=34.906586, resolution=0.0010681152, power=0.9, minDelay=2500}
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╟─ ✅  MAGNETOMETER: {Sensor name="AK09911 Magnetometer", vendor="AKM", version=1, type=2, maxRange=4911.9995, resolution=0.5996704, power=2.4, minDelay=20000}
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╟─ ✅  SIGNIFICANT_MOTION: {Sensor name="Significant Motion Detector", vendor="QTI", version=2, type=17, maxRange=1.0, resolution=1.0, power=0.17999268, minDelay=-1}
11-09 13:19:22.049 19159 19244 I TSLocationManager: ╚═════════════════════════════════════════════
11-09 13:19:22.064 19159 19244 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:19:22.073 19159 19244 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:19:22.089 19159 19244 I TSLocationManager: [c.t.l.a.BackgroundGeolocation <init>] 
11-09 13:19:22.089 19159 19244 I TSLocationManager:   ✅  Google Play Services: connected (version code:12451000)
11-09 13:19:22.102 19159 19244 D TSLocationManager: [c.t.locationmanager.data.a.c a] 
11-09 13:19:22.102 19159 19244 D TSLocationManager:   ✅  Opened database
11-09 13:19:22.109 19159 19244 D TSLocationManager: [c.t.locationmanager.data.a.c prune] 
11-09 13:19:22.109 19159 19244 D TSLocationManager:   ℹ️  PRUNE -1 days
11-09 13:19:22.125 19159 19244 D TSLocationManager: [c.t.locationmanager.data.a.a f] 
11-09 13:19:22.125 19159 19244 D TSLocationManager:   ✅  Opened database
11-09 13:19:22.137 19159 19244 D TSLocationManager: $ addLocationListener()
11-09 13:19:22.138 19159 19244 D TSLocationManager: $ addMotionChangeListener()
11-09 13:19:22.139 19159 19244 D TSLocationManager: $ addHttpListener()
11-09 13:19:22.140 19159 19244 D TSLocationManager: $ addProviderChangeListener()
11-09 13:19:22.141 19159 19244 D TSLocationManager: $ ready()
11-09 13:19:22.152 19159 19244 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:19:22.163 19159 19244 D TSLocationManager: [c.t.l.adapter.TSConfig c] ℹ️   Persist config
11-09 13:19:22.171 19159 19244 D TSLocationManager: [c.t.l.a.BackgroundGeolocation ready] LocationPermission :true
11-09 13:19:23.638 19159 19244 D TSLocationManager: $ start()
11-09 13:19:23.640 19159 19244 D TSLocationManager: [c.t.locationmanager.util.b a] 
11-09 13:19:23.640 19159 19244 D TSLocationManager:   ℹ️  LocationAuthorization: Permission granted
11-09 13:19:23.654 19159 19255 I TSLocationManager: - Enable: false → true, trackingMode: 1
christocracy commented 5 years ago

Yes, it's because you're building for RELEASE without a license. You need to build for DEBUG to try before you buy.

christocracy commented 5 years ago

Why aren't you building locally for Android? With CLI and a device plugged into USB:

$ phonegap run android
StevenMapes commented 5 years ago

How do you actually build for debug though?

Locally I have an issue around JDK version which I'm still looking to fix (preexisting to any cordova/android work) which stops the build from happening.

Despite having Java 8 and 9 installed I get

(node:4784) UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
christocracy commented 5 years ago

How do you actually build for debug though?

Must be a PhoneGap setting somewhere to build the Android apk for DEBUG rather than RELEASE.

Locally I have an issue around JDK version which I'm still looking to fix

You need to get this fixed ASAP. You want to build locally. PGB is a deployment server, not a dev server. The time it must take you to develop->build->run must be horrendous. Build locally.

StevenMapes commented 5 years ago

TBH this is the first plugin I've used which hasn't worked through the developer app so normally I just code and reload the app on the device until it's ready to build then I use PGB to compile the various OS versions ready for deployment so debugging hasn't been that much of an issue so far but I do need to fix the java mess which I'll have another go at soon after completing a timeshift snapshot and removing java completely and then putting it back

christocracy commented 5 years ago

TBH this is the first plugin I've used which hasn't worked through the developer app

BackgroundGeolocation implements a number of iOS-only / Android-only device APIs.

StevenMapes commented 5 years ago

Closing the bug as, with the license purchased and enabled, all issues are resolved. Thank you once again @christocracy for your amazing support.

christocracy commented 5 years ago

Spend some time and get your builds working locally. It will greatly increase your development speed.