In my custom Application class, I want to know the reason that the app was launched. For example, was it launched because of a remote notification, the user launched the app directly, etc.
On iOS, When the application launches I can use the LaunchOptionsKey in the application(_:didFinishLaunchingWithOptions:) method in order to know the reason the app was launched.
launchOptions.
A dictionary indicating the reason the app was launched (if any).
Is there any equivalent on Android?