-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
RemoteServiceException: CannotPostForegroundServiceNotificationException #18495
Comments
Hey @irfano I noticed this issue in Sentry and its happening only on Android 13. Since you were the DRI for Android 13 migration, i figured you might have more context or knowledge about this crash. Please feel free to un-assign if you feel this is not related to Android 13/ its an already known issue. Thanks in Advance. |
Hello, @AjeshRPai! I was AFK for the entire week when you messaged me. Unfortunately, I missed the notification when I returned. I will look into this issue this week. |
This exception tells us we are trying to show notifications without creating a notification channel. This issue was happening on PhaseFour, PhaseNewUsers, and PhaseSelfHostedUsers in the migration because notifications were disabled in these phases. So, we did not create notification channels, yet we were attempting to show media upload notifications even though we didn't create notification channels. I'm closing the issue without any development because we're already in the last phase. The next step will be removing all migration settings and this issue won't occur again. There are still some new crashes coming recently, but not many. They may have stale, cached remote flags. To reproduce:
|
Sentry issue: WORDPRESS-ANDROID-2H8Q |
Hey @irfano 👋 We're still receiving Sentry event reports for this in 23.6, but it looks like they are from the same 3 - 4 users. Given the comment above, I just wanted to double check if this is expected or not, as it's currently the third-highest WPAndroid crash. |
I have shared how I reproduced this issue previously (#18495 (comment)). However, it appears that Sentry crashes do not come from that case. So, I believe the root cause of this crash is a media upload issue that results in the destruction of I am reopening the issue as it's still active. |
Sentry issue: WORDPRESS-ANDROID-2KJW |
Based on this I believe that the UploadService fix might have covered this too #19987 |
Unfortunately this is not the case :( The issue persist in |
Sentry issue: WORDPRESS-ANDROID-2TA3 |
Sentry issue: JETPACK-ANDROID-8P6 |
At the time of writing 11 crashes were recorder in
I was able to reproduce this type of crash only with the steps @irfano provided above.
Given that I could not find any other reproducible case for the error I proceeded with a fix covering this case assuming that on some edge cases (e.g. the client failed to load the latest migration phase from the server) this might still occur. On the stack trace two
By experimenting I defined that only the transient channel is necessary to prevent this crash and prepared a fix in #20168 |
Marking the issue as resolved in |
Crash: Sentry link
The text was updated successfully, but these errors were encountered: