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

Remove activity related flags in notification intent #1370

Merged
merged 6 commits into from
Dec 10, 2019

Conversation

mutablealligator
Copy link
Contributor

  • Removed setting of activity related flags in the notification intent being created. The activity related flags are useful when an activity launches an other activity that is already in the Android activity stack. However, the intent that is being created is not used for communicating with an activity and instead used for service and broadcast. Hence, this comes down to the problem of setting activity related flags in a pending intent which is not used for communicating with an activity.

  • A customer found crashes while setting these flags in Android < 4.4. However >= 4.4, Android prevented the crash and made it a no-op.

  • The fix proposed here removes the flags and variable renaming and indentation fixes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mutablealligator mutablealligator added pinpoint Issues with the AWS Android SDK for Pinpoint. Pull Request labels Dec 9, 2019
@mutablealligator mutablealligator self-assigned this Dec 9, 2019
@lgtm-com
Copy link

lgtm-com bot commented Dec 9, 2019

This pull request introduces 2 alerts when merging bf2423d into 23082a3 - view on LGTM.com

new alerts:

  • 2 for Spurious Javadoc @param tags

Copy link
Contributor

@TrekSoft TrekSoft left a comment

Choose a reason for hiding this comment

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

LGTM other than file that looks like it should have been gitignored

.idea/dbnavigator.xml Outdated Show resolved Hide resolved
@mutablealligator mutablealligator merged commit 8481f17 into develop Dec 10, 2019
@mutablealligator mutablealligator deleted the vb/pinpoint-notification-intent-flags branch December 10, 2019 00:20
awsmobilesdk pushed a commit to awsmobilesdk/aws-sdk-android that referenced this pull request Apr 12, 2020
* Remove activity related flags in notification intent

* Remove activity related flags in notification intent

* Remove activity related flags in notification intent

* Delete dbnavigator.xml

* Update NotificationClientBase.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinpoint Issues with the AWS Android SDK for Pinpoint.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants