Skip to content

Commit

Permalink
android.useLegacyBridge
Browse files Browse the repository at this point in the history
close #89
  • Loading branch information
jamesdiacono committed May 5, 2023
1 parent 04a9cae commit a219885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ Add the following keys to `Info.plist.`:

### Android

Set the the `android.useLegacyBridge` option to `true` in your Capacitor configuration. This prevent location updates from halting after 5 minutes in the background. See https://capacitorjs.com/docs/config and #89.

Configration specific to Android can be made in `strings.xml`:
```xml
<resources>
Expand Down
2 changes: 1 addition & 1 deletion example/capacitor.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"appId": "com.equimaps.capacitor_background_geolocation_example",
"appName": "example",
"bundledWebRuntime": false,
"android": {"useLegacyBridge": true},
"npmClient": "npm",
"webDir": "www"
}

0 comments on commit a219885

Please sign in to comment.