Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created March 27, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save prof3ssorSt3v3/ef8ef201cba34e6002b633e4f842a8c9 to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/ef8ef201cba34e6002b633e4f842a8c9 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.griffis.perm" version="1.0.5" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Perm</name>
<description>
A sample Apache Cordova application working with Android Permissions.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<preference name="LoadingDialog" value="Bitch, Wait for it" />
<preference name="HideKeyboardFormAccessoryBar" value="true" />
<preference name="Fullscreen" value="true" />
<config-file after="uses-permission" parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
</config-file>
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
</platform>
<plugin name="cordova-plugin-android-permissions" spec="^1.0.0" />
<engine name="android" spec="^7.1.4" />
</widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment