I'm implementing the Urbain Airship MessageCenter on my app and trying to display the messages list to the user.
The problem I am having is that MessageCenter.inbox.messages always returns an empty list, even though some test messages have been sent to the user (the user receives the push notifications and the messages snack bar is shown while the app is opened).
I tried calling airshipMessageCenter.inbox.fetchMessages() too, but the list remains empty.
Is there any special configuration that must be done on Android that I might be missing?
(The integration works perfectly on the iOS counterpart)
Luckily, I've found out what I was missing to configure in code.
Analyzing the
Inbox.javafile, I saw that it had the following function in it:While looking for where it was used, I found out that
MessageCenter#updateInboxEnabledStateuses it:Having that specific line in mind
I realized that all I had to do was to enable that feature while assembling my
AirshipConfigOptions: