@capgo/capacitor-launch-navigator 8.0.5 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -14,6 +14,17 @@ This plugin is a Capacitor port of the popular phonegap-launch-navigator plugin,
|
|
|
14
14
|
|
|
15
15
|
The most complete doc is available here: https://capgo.app/docs/plugins/launch-navigator/
|
|
16
16
|
|
|
17
|
+
## Compatibility
|
|
18
|
+
|
|
19
|
+
| Plugin version | Capacitor compatibility | Maintained |
|
|
20
|
+
| -------------- | ----------------------- | ---------- |
|
|
21
|
+
| v8.\*.\* | v8.\*.\* | ✅ |
|
|
22
|
+
| v7.\*.\* | v7.\*.\* | On demand |
|
|
23
|
+
| v6.\*.\* | v6.\*.\* | ❌ |
|
|
24
|
+
| v5.\*.\* | v5.\*.\* | ❌ |
|
|
25
|
+
|
|
26
|
+
> **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.
|
|
27
|
+
|
|
17
28
|
## Install
|
|
18
29
|
|
|
19
30
|
```bash
|
|
@@ -48,6 +59,43 @@ Add URL schemes to your `Info.plist` to detect installed navigation apps:
|
|
|
48
59
|
</array>
|
|
49
60
|
```
|
|
50
61
|
|
|
62
|
+
## Android Setup
|
|
63
|
+
|
|
64
|
+
**No additional setup required!** The plugin automatically handles Android 11+ (API level 30+) package visibility and is fully backward compatible with earlier Android versions.
|
|
65
|
+
|
|
66
|
+
The plugin's manifest includes `<queries>` declarations for all supported navigation apps, which are automatically merged into your app's manifest during the build process. On Android 10 and below, the `<queries>` element is safely ignored.
|
|
67
|
+
|
|
68
|
+
<details>
|
|
69
|
+
<summary>For reference: Package queries included in the plugin</summary>
|
|
70
|
+
|
|
71
|
+
The following navigation apps are declared in the plugin's manifest:
|
|
72
|
+
|
|
73
|
+
```xml
|
|
74
|
+
<queries>
|
|
75
|
+
<package android:name="com.google.android.apps.maps" />
|
|
76
|
+
<package android:name="com.waze" />
|
|
77
|
+
<package android:name="com.citymapper.app.release" />
|
|
78
|
+
<package android:name="com.ubercab" />
|
|
79
|
+
<package android:name="ru.yandex.yandexnavi" />
|
|
80
|
+
<package android:name="com.sygic.aura" />
|
|
81
|
+
<package android:name="com.here.app.maps" />
|
|
82
|
+
<package android:name="com.tranzmate" />
|
|
83
|
+
<package android:name="me.lyft.android" />
|
|
84
|
+
<package android:name="com.mapswithme.maps.pro" />
|
|
85
|
+
<package android:name="com.cabify.rider" />
|
|
86
|
+
<package android:name="com.baidu.BaiduMap" />
|
|
87
|
+
<package android:name="com.autonavi.minimap" />
|
|
88
|
+
</queries>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Compatibility:**
|
|
92
|
+
- **Android 11+ (API 30+):** Queries are required and enforced for package visibility
|
|
93
|
+
- **Android 10 and below (API 29-):** Queries element is ignored; app detection works without restrictions
|
|
94
|
+
|
|
95
|
+
This ensures the plugin works correctly across all Android versions from API 24+ without any code changes.
|
|
96
|
+
|
|
97
|
+
</details>
|
|
98
|
+
|
|
51
99
|
## Usage
|
|
52
100
|
|
|
53
101
|
```typescript
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
<queries>
|
|
3
|
+
<package android:name="com.google.android.apps.maps" />
|
|
4
|
+
<package android:name="com.waze" />
|
|
5
|
+
<package android:name="com.citymapper.app.release" />
|
|
6
|
+
<package android:name="com.ubercab" />
|
|
7
|
+
<package android:name="ru.yandex.yandexnavi" />
|
|
8
|
+
<package android:name="com.sygic.aura" />
|
|
9
|
+
<package android:name="com.here.app.maps" />
|
|
10
|
+
<package android:name="com.tranzmate" />
|
|
11
|
+
<package android:name="me.lyft.android" />
|
|
12
|
+
<package android:name="com.mapswithme.maps.pro" />
|
|
13
|
+
<package android:name="com.cabify.rider" />
|
|
14
|
+
<package android:name="com.baidu.BaiduMap" />
|
|
15
|
+
<package android:name="com.autonavi.minimap" />
|
|
16
|
+
</queries>
|
|
2
17
|
</manifest>
|
|
@@ -10,7 +10,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
10
10
|
@CapacitorPlugin(name = "LaunchNavigator")
|
|
11
11
|
public class LaunchNavigatorPlugin extends Plugin {
|
|
12
12
|
|
|
13
|
-
private final String pluginVersion = "8.0.
|
|
13
|
+
private final String pluginVersion = "8.0.7";
|
|
14
14
|
|
|
15
15
|
private LaunchNavigator implementation;
|
|
16
16
|
|
|
@@ -9,7 +9,7 @@ import MapKit
|
|
|
9
9
|
*/
|
|
10
10
|
@objc(LaunchNavigatorPlugin)
|
|
11
11
|
public class LaunchNavigatorPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
12
|
-
private let pluginVersion: String = "8.0.
|
|
12
|
+
private let pluginVersion: String = "8.0.7"
|
|
13
13
|
public let identifier = "LaunchNavigatorPlugin"
|
|
14
14
|
public let jsName = "LaunchNavigator"
|
|
15
15
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED