Skip to content

Commit db18d49

Browse files
committed
Added config options to plugin.xml to set the protocol
1 parent 14f3ef0 commit db18d49

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

plugin.xml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,41 @@
6060
</intent-filter>
6161
</config-file>
6262
</platform>
63+
64+
<!-- windows8 -->
65+
<platform name="windows8">
66+
<config-file target="package.appxmanifest" parent="/Package/Applications/Application/Extensions">
67+
<Extension Category="windows.protocol" StartPage="www/index.html">
68+
<Protocol Name="$URL_SCHEME" />
69+
</Extension>
70+
</config-file>
71+
72+
<js-module src="src/windows/LaunchMyApp.js" name="LaunchMyApp">
73+
<clobbers target="window.plugins.launchmyapp" />
74+
</js-module>
75+
</platform>
76+
77+
<!-- windows -->
78+
<platform name="windows">
79+
<config-file target="package.windows.appxmanifest" parent="/Package/Applications/Application/Extensions">
80+
<Extension Category="windows.protocol" StartPage="www/index.html">
81+
<Protocol Name="$URL_SCHEME" />
82+
</Extension>
83+
</config-file>
84+
<config-file target="package.windows80.appxmanifest" parent="/Package/Applications/Application/Extensions">
85+
<Extension Category="windows.protocol" StartPage="www/index.html">
86+
<Protocol Name="$URL_SCHEME" />
87+
</Extension>
88+
</config-file>
89+
<config-file target="package.phone.appxmanifest" parent="/Package/Applications/Application/Extensions">
90+
<Extension Category="windows.protocol" StartPage="www/index.html">
91+
<Protocol Name="$URL_SCHEME" />
92+
</Extension>
93+
</config-file>
94+
95+
<js-module src="src/windows/LaunchMyApp.js" name="LaunchMyApp">
96+
<clobbers target="window.plugins.launchmyapp" />
97+
</js-module>
98+
</platform>
6399

64-
</plugin>
100+
</plugin>

0 commit comments

Comments
 (0)