android / android/platform-samples

[FR]: How to notify LiveUpdate when app is closed via FCM

Open
#311 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
1.7k
Forks
541
Avg merge
7d 23h
Merged PRs (30d)
3

Description

### Is there an existing FR for this?

- [x] I have searched the existing issues

### For which area is this FR?

User Interface

### Is it for a specific sample?

_No response_

### Describe the feature request

I’m currently working on LiveUpdates integration.

I’m using FCM to receive instructions and then call `NotificationManager.notify(state)` to display or update LiveUpdates. However, I’ve encountered a few scenarios where the app is unable to actively control the LiveUpdate state:

1. When there’s an existing LiveUpdate shown in the notification center and the app is closed, how can we update that LiveUpdate?
2. If the LiveUpdate has already reached 100% progress, how can the app automatically dismiss it after a certain amount of time?
3. As far as I know, iOS LiveActivity uses FCM/APNs to remotely end an activity. Will Android LiveUpdates follow a similar approach?

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by tracing the LiveUpdates integration described in the issue, focusing on FCM and NotificationManager.notify(state). Determine whether the project has an existing sample or entry point for updates while the app is closed, automatic dismissal, or remote ending. Done requires a decided Android approach that addresses all three scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.