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

Replace deprecated getRunningTasks with another solution #51

Open
TristanWiley opened this issue Nov 15, 2017 · 1 comment
Open

Replace deprecated getRunningTasks with another solution #51

TristanWiley opened this issue Nov 15, 2017 · 1 comment

Comments

@TristanWiley
Copy link
Collaborator

In IncomingEventService, getRunningTasks is deprecated. This is used to get the foregroundTaskInfo and determine if our app is in the foreground.

We need a non-deprecated way to do this.

@TimCastelijns
Copy link
Collaborator

As an alternative to using ActivityManager, it's possible to have the application class listen for activity lifecycle changes. Then you can derive that the app is in the background if Application.currentForegroundActivity = null or something. Not implying it's better, but now you have 2 options 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants