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

How to detect that inbox is closed? #195

Open
vvscode opened this issue Nov 24, 2021 · 3 comments
Open

How to detect that inbox is closed? #195

vvscode opened this issue Nov 24, 2021 · 3 comments
Assignees

Comments

@vvscode
Copy link

vvscode commented Nov 24, 2021

In my app I do show something like Inbox (5) where 5 is number of unread messages which I do receive with getInboxMessageUnreadCount.

When user opens inbox that number can be changed (as soon as he read the messages). How can I detect, that inbox was closed and users is returned back to my app?
Do not see any related API

@darshanclevertap
Copy link
Contributor

@vvscode Are you trying this on Android or iOS? In Android, you can write your own ActivityLifecycle callback which will give you a callback whenever an Activity is created/finished. You can then update the count there.
We do not provide any callback on the Activity being closed.

@vvscode
Copy link
Author

vvscode commented Feb 15, 2022

i need it for both

@darshanclevertap
Copy link
Contributor

@vvscode Really sorry, we do not have any callback for the Activity being closed right now. We will be taking up this request into our roadmap. As a workaround, you can compute the unread message count every time your Inbox UI component is getting rendered on the screen using our getInboxMessageUnreadCount method

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