How to launch the app in Notification click ? I am trying to launch the app in push notification click in app not running state . How can i able to achieve that??
I tried with the below code but its only opening the splash page .
var mainActivityIntent = Ti.Android.createIntent({ className : com.MobiSam.MobiSamActivity, packageName: Ti.App.id, flags : Ti.Android.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Ti.Android.FLAG_ACTIVITY_SINGLE_TOP }); mainActivityIntent.addCategory(Ti.Android.CATEGORY_LAUNCHER); activity.startActivity(mainActivityIntent);