arleyandrada / PushClient

FREE and Open Source - Titanium PushClient Module
Other
44 stars 17 forks source link

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

Open Lenndev opened 6 years ago

Lenndev commented 6 years ago

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 commented 6 years ago

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