-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19613 from Expensify/jules-notificationPayload
Improve Android notification threading, categorisation, and profile images
- Loading branch information
Showing
3 changed files
with
121 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,92 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.expensify.chat"> | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.expensify.chat"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
|
||
<!-- android:hardwareAccelerated is essential for Android performance: https://developer.android.com/topic/performance/hardware-accel --> | ||
<application | ||
android:supportsRtl="false" | ||
android:hardwareAccelerated="true" | ||
android:name=".MainApplication" | ||
android:label="@string/app_name" | ||
android:icon="@mipmap/ic_launcher" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:allowBackup="false" | ||
android:resizeableActivity="false" | ||
android:theme="@style/AppTheme" | ||
tools:replace="android:supportsRtl"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:name=".MainApplication" | ||
android:allowBackup="false" | ||
android:hardwareAccelerated="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" | ||
android:launchMode="singleTask" | ||
android:exported="true" | ||
android:windowSoftInputMode="adjustResize" | ||
android:theme="@style/BootTheme"> | ||
android:resizeableActivity="false" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="false" | ||
android:theme="@style/AppTheme" | ||
tools:replace="android:supportsRtl"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" | ||
android:exported="true" | ||
android:label="@string/app_name" | ||
android:launchMode="singleTask" | ||
android:theme="@style/BootTheme" | ||
android:windowSoftInputMode="adjustResize"> | ||
|
||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
|
||
<!-- Custom URI handlers. Used to intercept Urban Airship deep links. --> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data android:scheme="new-expensify" /> | ||
</intent-filter> | ||
|
||
<!-- Web URL handlers. Used to intercept web links. --> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<!-- Production URLs --> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/statements"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/concierge"/> | ||
|
||
<!-- Custom URI handlers. Used to intercept Urban Airship deep links. --> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<data android:scheme="new-expensify"/> | ||
</intent-filter> | ||
<!-- Staging URLs --> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/statements"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/concierge"/> | ||
</intent-filter> | ||
</activity> | ||
|
||
<!-- Web URL handlers. Used to intercept web links. --> | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<meta-data | ||
android:name="com.urbanairship.reactnative.AIRSHIP_EXTENDER" | ||
android:value="com.expensify.chat.customairshipextender.CustomAirshipExtender" /> | ||
|
||
<!-- Production URLs --> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/statements"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/concierge"/> | ||
<meta-data | ||
android:name="com.google.firebase.messaging.default_notification_icon" | ||
android:resource="@drawable/ic_launcher" /> | ||
|
||
<!-- Staging URLs --> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/statements"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/concierge"/> | ||
</intent-filter> | ||
</activity> | ||
<meta-data | ||
android:name="com.google.firebase.messaging.default_notification_color" | ||
android:resource="@color/bootsplash_background" /> | ||
|
||
<meta-data android:name="com.urbanairship.reactnative.AIRSHIP_EXTENDER" | ||
android:value="com.expensify.chat.customairshipextender.CustomAirshipExtender" /> | ||
</application> | ||
</manifest> |
Oops, something went wrong.