forked from EddyVerbruggen/Custom-URL-scheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·84 lines (67 loc) · 2.74 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version='1.0' encoding='utf-8'?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-customurlscheme"
version="4.4.0">
<name>Custom URL scheme</name>
<description>
Launch your app by using this URL: mycoolapp://
You can add a path and even pass params like this: mycoolerapp://somepath?foo=bar
</description>
<author>Eddy Verbruggen</author>
<license>MIT</license>
<keywords>Custom URL Scheme, URLscheme, URL scheme, Custom URL, Launch My App, Launch App</keywords>
<repo>https://github.com/EddyVerbruggen/Custom-URL-scheme.git</repo>
<issue>https://github.com/EddyVerbruggen/Custom-URL-scheme/issues</issue>
<preference name="URL_SCHEME" />
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<!-- ios -->
<platform name="ios">
<js-module src="www/ios/LaunchMyApp.js" name="LaunchMyApp">
<clobbers target="window.plugins.launchmyapp" />
</js-module>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>$URL_SCHEME</string>
</array>
</dict>
</array>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<preference name="ANDROID_SCHEME" default=" " />
<preference name="ANDROID_HOST" default=" " />
<preference name="ANDROID_PATHPREFIX" default="/" />
<js-module src="www/android/LaunchMyApp.js" name="LaunchMyApp">
<clobbers target="window.plugins.launchmyapp" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="LaunchMyApp">
<param name="android-package" value="nl.xservices.plugins.LaunchMyApp"/>
</feature>
</config-file>
<source-file src="src/android/nl/xservices/plugins/LaunchMyApp.java" target-dir="src/nl/xservices/plugins"/>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="$URL_SCHEME"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="$ANDROID_SCHEME"
android:host="$ANDROID_HOST"
android:pathPrefix="$ANDROID_PATHPREFIX" />
</intent-filter>
</config-file>
</platform>
</plugin>