-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
android notif: Replace our NotificationIntentService
with directly opening MainActivity
#5145
Labels
Comments
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 2, 2021
And replace it with directly opening MainActivity. When we set targetSdkVersion to 31, we will no longer be allowed to use a Service as a "notification trampoline", for performance reasons: https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines So, go with their recommended fix, and have the PendingIntent open MainActivity directly. In the preceding commits, we moved everything out of NotificationIntentService except the code that starts MainActivity, to make this commit as small as possible. (The really important bit was the `notifyReact` call, which lets the JS environment know about the notification the user opened.) Fixes: zulip#5145
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 7, 2021
And replace it with directly opening MainActivity. When we set targetSdkVersion to 31, we will no longer be allowed to use a Service as a "notification trampoline", for performance reasons: https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines So, go with their recommended fix, and have the PendingIntent open MainActivity directly. In the preceding commits, we moved everything out of NotificationIntentService except the code that starts MainActivity, to make this commit as small as possible. (The really important bit was the `notifyReact` call, which lets the JS environment know about the notification the user opened.) Fixes: zulip#5145
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 8, 2021
And replace it with directly opening MainActivity. When we set targetSdkVersion to 31, we will no longer be allowed to use a Service as a "notification trampoline", for performance reasons: https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines So, go with their recommended fix, and have the PendingIntent open MainActivity directly. In the preceding commits, we moved everything out of NotificationIntentService except the code that starts MainActivity, to make this commit as small as possible. (The really important bit was the `notifyReact` call, which lets the JS environment know about the notification the user opened.) Fixes: zulip#5145
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 21, 2021
This change will be required in order to upload new releases to the Play Store, effective probably 2022-11-01. That isn't very soon, but we cut it kind of close last time, and we don't want to this time. The change causes Android 12 and later to apply to our app a number of behavior changes introduced in that version, documented here: https://developer.android.com/about/versions/12/behavior-changes-12 Most of the work for this was zulip#5145, "android notif: Replace our `NotificationIntentService` with directly opening MainActivity". Earlier in this series of commits, we also fixed zulip#5171 ("Handle stricter length limit on Android toasts when targeting Android 12") and handled the "Safer component exporting" change described at https://developer.android.com/about/versions/12/behavior-changes-12#exported . There were a few other things that stood out in that "Behavior Changes" article, but none that seem to require any specific action from us; see zulip#5101 (comment) . Fixes: zulip#5101
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 21, 2021
This change will be required in order to upload new releases to the Play Store, effective probably 2022-11-01. That isn't very soon, but we cut it kind of close last time, and we don't want to this time. The change causes Android 12 and later to apply to our app a number of behavior changes introduced in that version, documented here: https://developer.android.com/about/versions/12/behavior-changes-12 Most of the work for this was zulip#5145, "android notif: Replace our `NotificationIntentService` with directly opening MainActivity". Earlier in this series of commits, we also fixed zulip#5171 ("Handle stricter length limit on Android toasts when targeting Android 12") and handled the "Safer component exporting" change described at https://developer.android.com/about/versions/12/behavior-changes-12#exported . There were a few other things that stood out in that "Behavior Changes" article, but none that seem to require any specific action from us; see zulip#5101 (comment) . Fixes: zulip#5101
gnprice
pushed a commit
to chrisbobbe/zulip-mobile
that referenced
this issue
Dec 22, 2021
This change will be required in order to upload new releases to the Play Store, effective probably 2022-11-01. That isn't very soon, but we cut it kind of close last time, and we don't want to this time. The change causes Android 12 and later to apply to our app a number of behavior changes introduced in that version, documented here: https://developer.android.com/about/versions/12/behavior-changes-12 Most of the work for this was zulip#5145, "android notif: Replace our `NotificationIntentService` with directly opening MainActivity". Earlier in this series of commits, we also fixed zulip#5171 ("Handle stricter length limit on Android toasts when targeting Android 12") and handled the "Safer component exporting" change described at https://developer.android.com/about/versions/12/behavior-changes-12#exported . There were a few other things that stood out in that "Behavior Changes" article, but none that seem to require any specific action from us; see zulip#5101 (comment) . Fixes: zulip#5101
sumj25
pushed a commit
to sumj25/zulip-mobile
that referenced
this issue
Jan 12, 2022
And replace it with directly opening MainActivity. When we set targetSdkVersion to 31, we will no longer be allowed to use a Service as a "notification trampoline", for performance reasons: https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines So, go with their recommended fix, and have the PendingIntent open MainActivity directly. In the preceding commits, we moved everything out of NotificationIntentService except the code that starts MainActivity, to make this commit as small as possible. (The really important bit was the `notifyReact` call, which lets the JS environment know about the notification the user opened.) Fixes: zulip#5145
sumj25
pushed a commit
to sumj25/zulip-mobile
that referenced
this issue
Jan 12, 2022
This change will be required in order to upload new releases to the Play Store, effective probably 2022-11-01. That isn't very soon, but we cut it kind of close last time, and we don't want to this time. The change causes Android 12 and later to apply to our app a number of behavior changes introduced in that version, documented here: https://developer.android.com/about/versions/12/behavior-changes-12 Most of the work for this was zulip#5145, "android notif: Replace our `NotificationIntentService` with directly opening MainActivity". Earlier in this series of commits, we also fixed zulip#5171 ("Handle stricter length limit on Android toasts when targeting Android 12") and handled the "Safer component exporting" change described at https://developer.android.com/about/versions/12/behavior-changes-12#exported . There were a few other things that stood out in that "Behavior Changes" article, but none that seem to require any specific action from us; see zulip#5101 (comment) . Fixes: zulip#5101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @gnprice in #5101 (comment)
The text was updated successfully, but these errors were encountered: