Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Advanced Android in Kotlin: Notifications 1.1 [Step 4][Duplicate activity only in background] #36

Open
SanoopC opened this issue Mar 1, 2021 · 0 comments

Comments

@SanoopC
Copy link

SanoopC commented Mar 1, 2021

Describe the problem
Start the timer, put the app in the background, and wait for the notification to appear.
The notification content intent brings the user back to the timer screen with a new activity even though there is an activity in the background.
Which was added in the backstack and we need to click the device back button twice to exit the app.

In which lesson and step of the codelab can this issue be found?
Lesson: Notifications 1.1, Task 4, Step 4: Add a content intent.

How to reproduce?

  • Followed the same step mentioned in the doc
  • ...
  • Run the app again.
  • Set a timer, put the app in the background, and wait for the notification to appear.
  • Once you see the notification, click on the notification by pulling down the status bar, and observe how the app is brought to the foreground.
  • Click the device back button > will navigated to previously created activity.
  • Click again the device back button > will exit the app.

Versions

  1. What version of Android Studio are you using? 4.1.2
  2. What API level are you targeting? 29

Additional information
Add any other context about the problem here.

codelab: advanced-android-kotlin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant