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 notification setting #561

Merged
merged 12 commits into from
Apr 13, 2022
Merged

Fix android notification setting #561

merged 12 commits into from
Apr 13, 2022

Conversation

bannzai
Copy link
Owner

@bannzai bannzai commented Apr 13, 2022

Abstract

Why

Links

Checked

  • Analyticsのログを入れたか
  • 境界値に対してのUnitTestを書いた
  • パターン分岐が発生するWidgetに対してWidgetTestを書いた
  • リリースノートを追加した

val mainActivityIntent = Intent(this, MainActivity::class.java).also {
it.flags = Intent.FLAG_ACTIVITY_NEW_TASK
}
val openAppPendingIntent = PendingIntent.getActivity( this,1, mainActivityIntent, PendingIntent.FLAG_CANCEL_CURRENT)
Copy link
Owner Author

Choose a reason for hiding this comment

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

アプリを開く際もIntentを明示的に指定して、古いIntentを削除してから上書きするようにした(FLAG_CANCEL_CURRENT)。あとidも変えた

@bannzai bannzai marked this pull request as ready for review April 13, 2022 06:52
@bannzai bannzai merged commit f8814eb into main Apr 13, 2022
@bannzai bannzai deleted the fix/notification/android branch April 13, 2022 06:52
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.

1 participant