[components] For https://github.com/mozilla-mobile/android-components/issues/7477...
commited6a3486c3f4d6697c264188228ac61e5497bb0d
authorMugurell <Mugurell@users.noreply.github.com>
Mon, 4 Apr 2022 16:09:22 +0000 (4 19:09 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Apr 2022 09:48:35 +0000 (7 09:48 +0000)
treeab9880c34e9e411cf9ae2abacf38eabe5618d80f
parent1638771a6b7dee07c06a58400e6b17a18eca07c8
[components] For https://github.com/mozilla-mobile/android-components/issues/7477 - Execute WebNotification click based on incoming Intent

Gecko's WebNotification will be persisted in the native Android notification
that is posted like before to target a specific activity in the app.
When the user clicks the notification the target activity can delegate a new
WebNotificationIntentProcessor component to actually process notification's
contentIntent and trigger `click` on the WebNotification.
12 files changed:
mobile/android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
mobile/android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/webnotifications/GeckoWebNotificationDelegate.kt
mobile/android/android-components/components/browser/engine-gecko/src/test/java/mozilla/components/browser/engine/gecko/GeckoEngineTest.kt
mobile/android/android-components/components/concept/engine/src/main/java/mozilla/components/concept/engine/Engine.kt
mobile/android/android-components/components/concept/engine/src/main/java/mozilla/components/concept/engine/webnotifications/WebNotification.kt
mobile/android/android-components/components/feature/webnotifications/build.gradle
mobile/android/android-components/components/feature/webnotifications/src/main/java/mozilla/components/feature/webnotifications/NativeNotificationBridge.kt
mobile/android/android-components/components/feature/webnotifications/src/main/java/mozilla/components/feature/webnotifications/WebNotificationIntentProcessor.kt [new file with mode: 0644]
mobile/android/android-components/components/feature/webnotifications/src/test/java/mozilla/components/feature/webnotifications/NativeNotificationBridgeTest.kt
mobile/android/android-components/components/feature/webnotifications/src/test/java/mozilla/components/feature/webnotifications/WebNotificationFeatureTest.kt
mobile/android/android-components/components/feature/webnotifications/src/test/java/mozilla/components/feature/webnotifications/WebNotificationIntentProcessorTest.kt [new file with mode: 0644]
mobile/android/android-components/docs/changelog.md