-
Notifications
You must be signed in to change notification settings - Fork 585
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
SyncTask unregisterReceiver error #6558
Comments
I found a few problems with this issue:
|
Hi @white123483 , thank you for reaching out. From what I can gather, the ConnectivityChangeReceiver is a BroadcastReceiver that listens for network connectivity changes. When a connection is established, it triggers a SyncTask to perform a background synchronization. It then unregisters itself after triggering the task to avoid unnecessary resource usage. I tried reproducing the issue, however, I did not encounter this RuntimeException. I wonder if it is caused by a race condition. I’ll raise this to our engineers and create a PR for this issue. Thanks! |
Thank you for your reply! I've tried to reproduce this issue as well, but that didn't work either, so far we only have this error in the Google Play Console crash logs, and more than two hundred users have encountered this issue. So I'm not sure of the exact possible reasons for triggering it |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
I would like to know when com.google.firebase.messaging.SyncTask will be called, because my Google Play console gets task.getContext().unregisterReceiver(this) logging out of the receiver resulting in an error message.
Relevant Code:
The text was updated successfully, but these errors were encountered: