title: Determine if the user open app from notification
body: <p>If you ever download Telegram App or other messaging application, you will see that when you are inside the app (the app status is active), when someone message you, it will show you custom notification inside the app on the top of the screen. When you touch that custom notification, it will redirect you to the chat screen. <br></p>
  
  <p>But when the app is inactive (the app is in background), and you get the chat notification outside the app, probably on the lock screen or another app. If you touch it, it will open the app and redirect you to the chat screen <strong>without in-app custom notification</strong>.</p>
  
  <p>To do this I think I should know how to determine is the app opened from the notification or not.
  Question, how to determine if the app opened from notification or currently active?</p>