Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Launch app in Notification click

$
0
0

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);

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>