|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | + |
| 4 | + <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true"> |
| 5 | + <!-- usesCleartextTraffic is required by capacitor-blob-writer --> |
| 6 | + <!-- requestLegacyExternalStorage is required to save files to "Documents" folder on Android 10 --> |
| 7 | + |
| 8 | + <activity android:exported="true" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:name="${APP_ID}.MainActivity" android:label="@string/title_activity_main" android:theme="@style/AppTheme.NoActionBarLaunch" android:launchMode="singleTask"> |
| 9 | + |
| 10 | + <intent-filter> |
| 11 | + <action android:name="android.intent.action.MAIN" /> |
| 12 | + <category android:name="android.intent.category.LAUNCHER" /> |
| 13 | + </intent-filter> |
| 14 | + |
| 15 | + <intent-filter> |
| 16 | + <action android:name="android.intent.action.VIEW" /> |
| 17 | + <category android:name="android.intent.category.DEFAULT" /> |
| 18 | + <category android:name="android.intent.category.BROWSABLE" /> |
| 19 | + <data android:scheme="@string/custom_url_scheme" /> |
| 20 | + </intent-filter> |
| 21 | + |
| 22 | + </activity> |
| 23 | + |
| 24 | + <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> |
| 25 | + <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data> |
| 26 | + </provider> |
| 27 | + </application> |
| 28 | + |
| 29 | + <!-- Permissions --> |
| 30 | + |
| 31 | + <!-- CC NOTE - 2021-06-02 |
| 32 | + As we don't currrently need GeoLocation have removed permission |
| 33 | + (some installs on unsupported tester devices, e.g. Tecno-wx3p |
| 34 | + |
| 35 | + If we want to put back we should make non-required and add runtime check |
| 36 | + in the app before using feature (might require both uses-feature and uses-permission |
| 37 | + https://stackoverflow.com/questions/30391355/can-i-get-access-to-nfc-without-manifest-permission-in-android |
| 38 | + https://stackoverflow.com/questions/28079449/uses-permission-vs-uses-feature |
| 39 | + https://developer.android.com/guide/topics/manifest/uses-feature-element |
| 40 | + https://developer.android.com/guide/topics/manifest/uses-permission-element |
| 41 | +
|
| 42 | + E.g. To enable camera include uses-permission for camera but manually add all features as optional |
| 43 | + https://developer.android.com/reference/android/Manifest.permission#CAMERA |
| 44 | + https://developer.android.com/guide/topics/manifest/uses-feature-element#camera-hw-features |
| 45 | + --> |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + <!-- Normal permissions, granted at install, don't require prompt --> |
| 50 | + <!-- https://developer.android.com/training/basics/network-ops/connecting --> |
| 51 | + <!-- <uses-permission android:name="android.permission.INTERNET" /> --> |
| 52 | + <!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> --> |
| 53 | + |
| 54 | + |
| 55 | + <!-- Requested permissions, required in the app --> |
| 56 | + <!-- Camera, Photos, input file --> |
| 57 | + <!-- <uses-permission android:required="false" android:name="android.permission.READ_EXTERNAL_STORAGE"/> --> |
| 58 | + <!-- <uses-permission android:required="false" android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> --> |
| 59 | + |
| 60 | + <!-- Navigator.getUserMedia --> |
| 61 | + <!-- Video --> |
| 62 | + <!-- <uses-permission android:required="false" android:name="android.permission.CAMERA" /> --> |
| 63 | + <!-- Audio --> |
| 64 | + <!-- <uses-permission android:required="false" android:name="android.permission.RECORD_AUDIO" /> --> |
| 65 | + <!-- <uses-permission android:required="false" android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> --> |
| 66 | + |
| 67 | + |
| 68 | + <!-- Optional permissions, features we might make optional --> |
| 69 | + |
| 70 | + <!-- <uses-feature android:name="android.hardware.location.gps" /> --> |
| 71 | + |
| 72 | + |
| 73 | + <!-- Not required permissions, features we have decided we don't want --> |
| 74 | + <!-- Geolocation API --> |
| 75 | + <!-- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> --> |
| 76 | + <!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> --> |
| 77 | +</manifest> |
0 commit comments