Page 1 of 1
"Activity Ended" not triggering
Posted: 26 Apr 2014 10:17
by guuzendesu
I've tried several programs as a trigger on both a Note 3 and an S3, and I can't get "Activity Ended" to trigger when they end/move to background. I tried all methods of stopping or switching from the apps, but it never triggered. Am I missing something? Anyone else having this problem?
edit: App Task Ended works. Still, why doesn't Activity Ended work? Why does it offer a list of apps if they don't really trigger when they end?
No real problem. I just like logic.
Re: "Activity Ended" not triggering
Posted: 26 Apr 2014 10:59
by Martin
Hi,
This trigger works on an S3 for me, unfortunately I don't have a Note 3 to test.
Trigger Activity Ended should even trigger when switching between different screens within an app (exact behavior depends on the implementation of the app).
A flow like this should show a notification on screen containing the class name of the activity that was ended.
Flow:
-trigger Activity Ended: */* (set package and class name each to *)
-action Notification on Screen: {activity_class}
Does this flow work on your device?
You could also use trigger App Task Ended if you want to detect when you switch away from a particular app (app might still be running in the background).
Regards,
Martin
Re: "Activity Ended" not triggering
Posted: 26 Apr 2014 12:35
by guuzendesu
Yes, that does work. In fact, if I leave the class as " * " it still works for the selected application. But if I leave the class blank, there's no response at all. Maybe it's my misunderstanding of how it's supposed to work, but I assumed it would trigger on the default active screen if the app were switched away from.
Re: "Activity Ended" not triggering
Posted: 28 Apr 2014 19:10
by Martin
In this trigger, the field 'class name' has to be entered with a class name of an activity of the app. * can be used for special purposes like tracking the usage of every screen within an app. Triggering on an entire app without differentiating between the individual activities can be done using trigger App Task Ended.
Perhaps it would be better to fill in the launch-activity of the app in the class name field to indicate that the field should be set. I will change the UI and update the doc.