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

Notification Open now uses an Activity instead of Broadcast #1192

Merged

Conversation

Jeasmine
Copy link
Contributor

@Jeasmine Jeasmine commented Oct 20, 2020

  • Switch to using NotificationOpenedActivity.class in GenerateNotification.java
  • Remove Intent flags from startOrResumeApp and use Activity Context instead of the normal context
  • Update tests to account for the new behavior

Handle delete intent with broadcast receiver …

  • Using activities for handling delete can end on some weird behavior on the UI

Tested on API 21, 25, 29

This change is Reviewable

demo

* Switch to using NotificationOpenedActivity.class in GenerateNotification.java
* Remove Intent flags from startOrResumeApp and use Activity Context instead of the normal context
* Update tests to account for the new behavior
@Jeasmine Jeasmine force-pushed the feature/notification-open-broadcastreceiver branch from f921cb8 to edcb4e3 Compare October 20, 2020 17:13
@Jeasmine Jeasmine requested review from jkasten2 and a team October 20, 2020 17:13
* Using activities for handling delete can end on some weird behavior on the UI
@Jeasmine Jeasmine force-pushed the feature/notification-open-broadcastreceiver branch from 49d42e0 to 211e23d Compare November 4, 2020 03:14
@Jeasmine Jeasmine merged commit 91928f8 into major_release_4.0.0 Nov 12, 2020
@Jeasmine Jeasmine deleted the feature/notification-open-broadcastreceiver branch November 12, 2020 19:48
@jkasten2 jkasten2 changed the title Notification Open should use Activity instead of Broadcast Notification Open now uses an Activity instead of Broadcast Dec 5, 2020
jkasten2 added a commit that referenced this pull request Feb 3, 2021
* Main activity wasn't luanching when tapping on a notification that
resulted in the app being cold started.
* This was fixed by adding a missing startActivity and removing an
unneeded PendingIntent
* This was a bug interduced in PR #1192 in 4.0.0 release
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.

2 participants