Community

Community Forums

Where our customers, developers, and more can come together to help each other with both general and technical questions about our products and services.

Android Airship 11.0.1 messagecenter backbutton navigates to default message center

gagandeep.singh

Hello, after the update from Airship 9 to Airship 11.0.1, our navigation from a push notification broke.

Now, for some odd reason, every time the user gets a message center push notification, the MessageCenterActivity is navigated to BEFORE the push notification is handled.

So the user would be on the CustomMessageCenterDetailActivity and on back press, they would be navigated to the MessageCenterActivity (default activity with the list of inbox messages).

The default MessageCenterActivity should NOT be on the stack, since we never triggered it. Is there a flag we am missing??

 

However, if we navigate to the custom message center from within the app, everything is working fine.

 

Please help!

Gagan Singh

Official comment

Avatar

Hello,

What you describe would be expected behavior, If you include a Message Center message with a push, but also include a deeplink on the push as well, the Message Center takes precedence.

You can change this, however, but it would require overwriting the default Message Center action using the action registry
https://docs.airship.com/platform/android/actions/#action-registry

Brian G
Comment actions Permalink

Please sign in to leave a comment.

0
Avatar

I apologize, i have my terminology mixed up. We are simply creating a push notification with message center. And it is navigating to default Message Center before it navigates to the CustomMessageCenterDetail Activity. So when i hit back button, it shows an activity that was never manually added to the backstack (default Message Center Activity)

 

gagandeep.singh 0 votes
Comment actions Permalink
0
Avatar

So i figured out it is opening the default MessageCenterActivity because OpenRichPushInboxAction is opening it on push notification opened by calling the showMessageCenter method.

 

Is there a way to disable OpenRichPushInboxAction from triggering on push notification opened?

 

gagandeep.singh 0 votes
Comment actions Permalink