Im starting my main activity on android from a background service which is handling the receipt of a push notification. When my main activity loads it says alloy undefined. Even if I require alloy everywhere I get the problem in my tss which has alloy.cfg. variables in it, any ideas?
var mainActivityIntent = Ti.Android.createIntent({ // 'mainActivityClassName' is another module property with name of our app launcher activity className: gcm.mainActivityClassName, 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);