-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Lifecycle Awareness #628
Comments
I guess you try writing your own EventBus/EventBus/src/org/greenrobot/eventbus/EventBusLifecycleObserver.java Lines 9 to 29 in 6348f40
|
Yea i resorted to LiveData, as I need to send an event from a background thread even if the app is not opend but after reopening the UI has to react to that event, I couldn't really achieve that with EventBus. LiveData isn't the cleanest solution for events, but it is extremely reliable. In my opinion this behavior would also greatly improve EventBus :) |
Whats about the registering and unregistering, why cann't the @subscribe function be Lifecycle Aware, registering on Class creation and unregistering on destruction, would be really neat if this could be added :)
The text was updated successfully, but these errors were encountered: