Permalink
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| package="io.hypertrack.sendeta"> | |
| <!-- To auto-complete the email text field in the login form with the user's emails --> | |
| <!-- | |
| The ACCESS_COARSE/FINE_LOCATION permissions are not required to use | |
| Google Maps Android API v2, but you must specify either coarse or fine | |
| location permissions for the 'MyLocation' functionality. | |
| --> | |
| <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
| <application | |
| android:name=".MetaApplication" | |
| android:allowBackup="true" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="${applicationLabel}" | |
| android:supportsRtl="true" | |
| android:theme="@style/AppTheme" | |
| tools:replace="android:label"> | |
| <!-- Register UserActivities here --> | |
| <activity | |
| android:name=".view.SplashScreen" | |
| android:allowTaskReparenting="false" | |
| android:label="${applicationLabel}" | |
| android:launchMode="singleTop" | |
| android:screenOrientation="portrait"> | |
| <!-- Intent Filter to make this Screen as the launcher screen --> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> | |
| <!-- Intent Filter to handle browsable deeplinks --> | |
| <intent-filter android:label="@string/filter_title_track"> | |
| <action android:name="android.intent.action.VIEW" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| <category android:name="android.intent.category.BROWSABLE" /> | |
| <data android:scheme="@string/deeplink_scheme" /> | |
| </intent-filter> | |
| <!-- Intent Filter to handle FB Messenger messages --> | |
| <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="http" /> | |
| <data android:scheme="https" /> | |
| <!-- Add trck.at DeepLink URL --> | |
| <data | |
| android:host="@string/tracking_url" | |
| android:pathPrefix="/" /> | |
| </intent-filter> | |
| </activity> | |
| <activity | |
| android:name=".view.Home" | |
| android:label="${applicationLabel}" | |
| android:launchMode="singleTask" | |
| android:screenOrientation="portrait" /> | |
| <activity | |
| android:name=".view.ConfigurePermissions" | |
| android:screenOrientation="portrait" /> | |
| <activity | |
| android:name=".view.Profile" | |
| android:screenOrientation="portrait" | |
| android:windowSoftInputMode="adjustResize|stateHidden" /> | |
| <activity | |
| android:name=".view.Track" | |
| android:parentActivityName=".view.Home" | |
| android:screenOrientation="portrait"/> | |
| <!-- Register Receivers here --> | |
| <receiver | |
| android:name="com.google.android.gms.gcm.GcmReceiver" | |
| android:exported="true" | |
| android:permission="com.google.android.c2dm.permission.SEND"> | |
| <intent-filter> | |
| <action android:name="com.google.android.c2dm.intent.RECEIVE" /> | |
| <category android:name="io.hypertrack.meta" /> | |
| </intent-filter> | |
| </receiver> | |
| <receiver android:name=".receiver.GpsLocationReceiver"> | |
| <intent-filter> | |
| <action android:name="android.location.PROVIDERS_CHANGED" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| </intent-filter> | |
| </receiver> | |
| <receiver android:name=".receiver.NetworkChangeReceiver"> | |
| <intent-filter> | |
| <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | |
| <action android:name="android.net.wifi.WIFI_STATE_CHANGED" /> | |
| </intent-filter> | |
| </receiver> | |
| <receiver | |
| android:name=".receiver.BootReceiver" | |
| android:enabled="true" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.BOOT_COMPLETED" /> | |
| </intent-filter> | |
| </receiver> | |
| <!-- Register meta-data here --> | |
| <!-- | |
| The API key for Google Maps-based APIs is defined as a string resource. | |
| (See the file "res/values/google_maps_api.xml"). | |
| Note that the API key is linked to the encryption key used to sign the APK. | |
| You need a different API key for each encryption key, including the release key that is used to | |
| sign the APK for publishing. | |
| You can define the keys for the debug and release targets in src/debug/ and src/release/. | |
| --> | |
| <meta-data | |
| android:name="com.google.android.geo.API_KEY" | |
| android:value="Add your Google Map API key" /> | |
| <meta-data | |
| android:name="com.google.android.gms.version" | |
| android:value="@integer/google_play_services_version" /> | |
| <!-- Register Services here --> | |
| <service | |
| android:name=".service.GeofenceTransitionsIntentService" | |
| android:exported="false" /> | |
| <service | |
| android:name=".service.FetchLocationIntentService" | |
| android:exported="false" /> | |
| <!-- | |
| * - Uncomment `HyperTrackLiveFCMListenerService` service tag in the <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/src/main/AndroidManifest.xml#L161">AndroidManifest.xml</a> file. | |
| * - Uncomment <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/src/main/java/io/hypertrack/sendeta/service/HyperTrackLiveFCMListenerService.java#L36">HyperTrackLiveFCMListenerService.java</a> file. | |
| * - Once you have either an existing account on <a href="https://console.developers.google.com/">Google Developer</a> or a new account <a href="https://console.firebase.google.com">Firebase console</a>, you will need to add <a href="https://support.google.com/firebase/answer/7015592">google-services.json</a> file for your app to remove the below compilation failure. | |
| * - Uncomment `apply google-services plugin` in <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/build.gradle#L75">build.gradle</a> file. | |
| --> | |
| <!-- <service | |
| android:name=".service.HyperTrackLiveFCMListenerService" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="com.google.firebase.MESSAGING_EVENT" /> | |
| </intent-filter> | |
| </service> --> | |
| </application> | |
| </manifest> |