Skip to content

Commit

Permalink
[RELEASE] 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Sep 19, 2019
1 parent 9ecd5b7 commit 721fb8f
Show file tree
Hide file tree
Showing 49 changed files with 755 additions and 71 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@

# Change Log

## [3.2.2] - 2019-09-18
- [Changed] Android: move more location-handling code into background-threads to help mitigate against ANR referencing `Context.startForegroundService`
- [Changed] Android: If BackgroundGeolocation adapter is instantiated headless and is enabled, force ActivityRecognitionService to start.
- [Added] Add `mock` to `locationTemplate` data.
- [Added] Added android script to purge SDK's debug sound-files from release build.
- [Changed] Rebuild iOS `TSLocationManager.framework` with XCode 10. Replace `@available` macro with `SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO`.
- [Fixed] iOS 13 preventSuspend was not working with iOS 13. iOS has once again decreased the max time for UIApplication beginBackgroundTask from 180s down to 30s.
- [Added] Implement Cordova "browser" platform with a Mock implementation of BackgroundGeolocation for use while developing in browser.
- [Changed] Upgrade `android-logback` dependency to `2.0.0`
- [Changed] Android: move some plugin initialization into background-threads (eg: `performLogCleanup`) to help mitigate against ANR "`Context.startForegroundService` did not then call `Service.startForeground`".
- [Added] Capacitor Support. See README for Capacitor Setup Instructions.
- [Fixed] Android Initial headless events can be missed when app booted due to motion transition event.
- [Fixed] Android crash with EventBus `Subscriber already registered error`.
- [Fixed] iOS `Crash: [TSHttpService postBatch:error:] + 6335064 (TSHttpService.m:253)`

## [3.2.0] - 2019-08-17
- [Added] iOS 13 support.
- [Fixed] Android Geofence `DWELL` transition (`notifyOnDwell: true`) not firing.
Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,28 @@ The **[Android plugin](http://www.transistorsoft.com/shop/products/cordova-backg

:warning: After installing the plugin, you must [Configure the Plugin](#large_blue_diamond-configuring-the-plugin) for both [iOS](#ios) & [Android](#android).

#### From npm
- #### From npm

```bash
$ cordova plugin add cordova-background-geolocation-lt
```

#### Ionic
- #### Ionic

```bash
$ ionic cordova plugin add cordova-background-geolocation-lt
```

#### Phonegap Build
- #### Capacitor

```bash
npm install cordova-background-geolocation-lt
npx cap sync
```
:information_source: See [Capacitor Setup](./help/INSTALL_CAPACITOR.md)


- #### Phonegap Build

```xml
<plugin name="cordova-background-geolocation-lt" source="npm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down Expand Up @@ -2296,7 +2296,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>State</h3>
</div>
<dl class="tsd-comment-tags">
<dt class="tsd-comment-tag-example">example</dt>
<dd><pre><code class="language-javascript"><span class="hljs-keyword">let</span> state = <span class="hljs-keyword">await</span> BackgroundGeolocation.state();
<dd><pre><code class="language-javascript"><span class="hljs-keyword">let</span> state = <span class="hljs-keyword">await</span> BackgroundGeolocation.getState();
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">'[state] '</span>, state.enabled, state.trackingMode);</code></pre>
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down Expand Up @@ -2144,6 +2144,11 @@ <h3 id="template-tags">Template Tags</h3>
<td><code>Boolean</code></td>
<td>Is device plugged in?</td>
</tr>
<tr>
<td><code>mock</code></td>
<td><code>Boolean</code></td>
<td><code>true</code> when location was recorded from a Mock location app.</td>
</tr>
</tbody></table>
<h3 id="-see-also-">ℹ️ See also:</h3>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.0</span>
<a href="../globals.html" class="title">[API Docs] Cordova Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 3.2.1</span>
</div>
<div class="" id="tsd-widgets">
<a class="github" href="https://github.com/transistorsoft/cordova-background-geolocation-lt">Github</a>
Expand Down Expand Up @@ -1776,6 +1776,11 @@ <h3 id="template-tags">Template Tags</h3>
<td><code>Boolean</code></td>
<td>Is device plugged in?</td>
</tr>
<tr>
<td><code>mock</code></td>
<td><code>Boolean</code></td>
<td><code>true</code> when location was recorded from a Mock location app.</td>
</tr>
</tbody></table>
<h3 id="-see-also-">ℹ️ See also:</h3>
<ul>
Expand Down
Loading

0 comments on commit 721fb8f

Please sign in to comment.