Skip to content

Instantly share code, notes, and snippets.

@molcik
Last active July 5, 2018 08:24
Show Gist options
  • Save molcik/228270e2423864856cca751b4111f956 to your computer and use it in GitHub Desktop.
Save molcik/228270e2423864856cca751b4111f956 to your computer and use it in GitHub Desktop.
Cordova Android Plugin
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="com.filipmolcik.plugin.example"
version="1.0.0">
<name>filipmolcik-push-notifications</name>
<description>subscribe for push notifications</description>
<license>null</license>
<js-module src="www/Example.js" name="Example">
<clobbers target="Example" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Example" >
<param name="android-package" value="com.filipmolcik.plugin.Example"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<source-file src="src/android/Example.java" target-dir="src/com/filipmolcik/plugin" />
</platform>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment