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

Android, press back button, E/ActivityThread: Activity com.myapp.Activities.Inbox has leaked IntentReceiver #20

Open
kvnramirez opened this issue Apr 27, 2019 · 4 comments

Comments

@kvnramirez
Copy link

Hi I'm using the sample to make my own application, the problem that I have is that when I'm on a chat activity displaying all the messages, and I press back buttons, it throws me an error:

E/ActivityThread: Activity com.myapp.Activities.Inbox has leaked IntentReceiver com.mesibo.api.GenericReceiver@c4650f8 that was originally registered here. Are you missing a call to unregisterReceiver()?

E/ActivityThread: Activity com.myapp.Activities.Inbox has leaked IntentReceiver com.mesibo.api.NetworkStateReceiver@fda1d55 that was originally registered here. Are you missing a call to unregisterReceiver()?

I need to implement an extra method on my onBackPressed()? Why is throwing that error?

I believe that your API reference needs more specifications about methods because is hard to find the status codes, message status codes, etc.

@mesibo
Copy link
Owner

mesibo commented Apr 27, 2019

Kevin,

Can you send more details about the API version, Android OS, and device. I also suggest you look at https://github.com/mesibo/messenger-app-android which is a full sample app. Additionally, we are soon replacing Activity with Fragment which you can easily customize, the updated sample is expected to release by end of the next week.

The API reference document is updatinG. However, let us know anything specific and we will revert swiftly.

Tom

@kvnramirez
Copy link
Author

Shure, here is the data:

compileSdkVersion 28
minSdkVersion 19
targetSdkVersion 26

Android OS: Android 7.1.1
AVD Nexus 5

Using:

com.mesibo.api:mesibo:1.0.77

@mesibo
Copy link
Owner

mesibo commented May 10, 2019

Recommended initializing Mesibo from Application class rather than Activity/Fragment.

@kvnramirez
Copy link
Author

Yes in fact that's the only way to avoid that error because initialization doesn't seems to work correctly con Activities or Fragments.

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

No branches or pull requests

2 participants