For routing notification interactions you need a type of SplashActivity. This type is needed because the app’s screen should be ready at the moment we open the app (explained above).
A SplashActivity shouldn’t have any layout, only a theme defined for a faster load
Define a routing activity by extending NotificationRouterActivity and implement onCreate and notificationTouched methods:
Note there is no “savedInstanceState” param on “onCreate” method. That’s because we don’t need to control anything on this activity, only route the interaction with a notification.
You can stylish it with a theme:
Define the theme style:
And a drawable. Here is used the application’s icon: