"Activity Ended" not triggering

Post your questions and help other users.

Moderator: Martin

Post Reply
guuzendesu
Posts: 62
Joined: 15 Jan 2014 08:25

"Activity Ended" not triggering

Post by guuzendesu » 26 Apr 2014 10:17

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.
Last edited by guuzendesu on 26 Apr 2014 11:54, edited 1 time in total.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: "Activity Ended" not triggering

Post by Martin » 26 Apr 2014 10:59

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

guuzendesu
Posts: 62
Joined: 15 Jan 2014 08:25

Re: "Activity Ended" not triggering

Post by guuzendesu » 26 Apr 2014 12:35

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: "Activity Ended" not triggering

Post by Martin » 28 Apr 2014 19:10

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.

Post Reply