Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): allow notification tap to foreground app #3831

Merged
merged 1 commit into from
May 28, 2024

Conversation

paulrinaldi
Copy link
Contributor

@paulrinaldi paulrinaldi commented May 23, 2024

Summary

Enable tapping on notification to foreground the original app.

Motivation

Feature parity between iOS and Android. General expectation of tapping a notification.

Changes

set the pending intent for setSessionActivity on mediaSession creation in Android.

Test plan

N/A

Other Notes

Address #3881
We might want to import android.app.Activity instead of using fully qualified type to maintain codestyle.
We might want to pass this in a different way... this is a first attempt that works.
Need to clean this up still

@paulrinaldi
Copy link
Contributor Author

Addresses #3811

@paulrinaldi
Copy link
Contributor Author

FYI @freeboub using setSessionActivity did not create the behavior of a tap causing a foreground of the app.

@paulrinaldi
Copy link
Contributor Author

Screenshot 2024-05-22 at 11 34 56 AM

@paulrinaldi paulrinaldi force-pushed the 3881 branch 7 times, most recently from 047af84 to f32ffcb Compare May 23, 2024 19:17
@paulrinaldi
Copy link
Contributor Author

3881-final-demo.mov

Cleaned up the code and revised the design.

@paulrinaldi paulrinaldi force-pushed the 3881 branch 2 times, most recently from 5619fa8 to 483f3fa Compare May 23, 2024 20:50
Copy link
Member

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@freeboub freeboub merged commit 5c29b48 into TheWidlarzGroup:master May 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants