PushClient icon indicating copy to clipboard operation
PushClient copied to clipboard

Appcelerator - Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED)

Open Lenndev opened this issue 8 years ago • 1 comments

Situation: app is open, push notification is received. push notification is opened/clicked (a tabbed window is opened) tabbed window is closed (ie if data is not available) app crashes with error: Android issue 2373 detected (missing intent CATEGORY_LAUNCHER or FLAG_ACTIVITY_RESET_TASK_IF_NEEDED)

Any solutions?

device: Samsung galaxy j7 android 6.0.1 Ti SDK: 5.5.1 PushClient: 1.15

Lenndev avatar Sep 14 '17 14:09 Lenndev

oke.. solved the crash when closing the window that is opened on PushNotificationClick, but the app still crashes when the app is closed and you tap the push notification to open the app...

solution for crash when app is open/on background and closing the window was:

adding

android:alwaysRetainTaskState="true"
android:launchMode="singleTask"

to activity in tiapp.xml

Lenndev avatar Sep 15 '17 14:09 Lenndev