Page 1 of 2

conditions based on app...?

Posted: 31 Oct 2014 05:49
by Hanntheftaudio
forgive me if this was already asked but I cant find anything on this. if there's already a post can anyone direct me to it please?

anyway I have a Trigger (a notification) and in this whole mess I've weaved the action is to open the app that created the notification.. but I want to create conditions based on if im actively in an app but I cant find anything in the conditions list.

the idea is that when I get a notification from a certain app if im actively sitting at my home screen to open the app, if im already in that app to send an on screen notification telling me im already in the app but if I'm in another app to send an on screen notification telling me that I've received a notificationfrom the app.
to break it down when I receive the notification I want the app that created the notification to open only if im actively on my home screen, I want it to tell me I'm already in the app only if im already in the app and if I'm in another app I just simply want it to tell me I received a notification from the app that I wanted to open.

can someone direct me to the condition that does this? I can't find it

(i tried app Task Running but it triggers even if not actively in the app unless I check the most recent and then it wont trigger if im actively in the app and I tried the other but it opens the app even when I'm not at my home screen and certainly while I'm in another app. please help)

Re: conditions based on app...?

Posted: 31 Oct 2014 12:56
by Martin
Hi,

The condition App Task Running with check most recent app task only should be the condition you are looking for.
(i tried app Task Running but it triggers even if not actively in the app unless I check the most recent and then it wont trigger if im actively in the app and I tried the other but it opens the app even when I'm not at my home screen and certainly while I'm in another app. please help)
I did not understand this sentence. The condition should continue executing the flow on the true-branch when the package name in the condition matches the currently open app. Please try to use the condition one more time and share the flow in the forum when the condition still fails (Menu->Forum, Publish Flows/Widgets, paste the generated link into a forum post).

What device model and Android version are you using?

Regards,
Martin

Re: conditions based on app...?

Posted: 31 Oct 2014 16:41
by Hanntheftaudio
I tried that but the condition never became active even when I was actively sitting at my home screen.

Re: conditions based on app...?

Posted: 02 Nov 2014 12:47
by Martin
When you are sitting at your home screen, the condition will be true for the home screen only. Did you select the launcher/home screen in the condition when you were testing this?
Could you please post the flow? What's your device and Android version?

Re: conditions based on app...?

Posted: 02 Nov 2014 13:16
by Hanntheftaudio
I'm using android version 4.1.1. so far I've hit the publish button but I'm having trouble getting the link to paste into here. should I create a new post just for that?

Re: conditions based on app...?

Posted: 02 Nov 2014 13:19
by Hanntheftaudio
http://automagic4android.com/flow.php?i ... 4170ed7ac7 there we go... my tablet just took a bit but here's the link

Re: conditions based on app...?

Posted: 03 Nov 2014 20:28
by Martin
Check most recent app task only should be checked in the second condition App Task Running: kik.android as well but the flow looks good otherwise. When you are actively using Kik and a message is displayed on the notification bar, do you get the notification 'Already in the app'? If not, could you please post the log of the flow (menu->Log, long-click the text, select all and copy the text to the clipboard and paste the text here)?

Re: conditions based on app...?

Posted: 03 Nov 2014 21:15
by Hanntheftaudio
the kik condition part seems fine as is, its the launcher condition part im afraid of. if i checkmark that box it just tells me notification is active when its supposed to open kik (only supposef to tell me of the notification only if im in another app) but uncheck the box and it opens kik even if im in another app.

heres the log:

03.11.2014 13:10:23.166 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415049023161,trigger=Manual}}
03.11.2014 13:10:23.187 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 13:10:23.235 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 13:10:23.294 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:10:23.296 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 13:10:23.349 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 13:10:23.404 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:10:23.406 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 13:10:23.407 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 13:10:23.413 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 13:10:23.487 [OPEN KIK] Flow ended.
03.11.2014 13:10:38.868 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415049038809,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 13:10:38.869 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 13:10:38.875 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 13:10:38.878 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:10:38.880 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 13:10:38.883 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 13:10:38.891 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 13:10:38.915 [OPEN KIK] Flow ended.
03.11.2014 13:10:49.328 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415049049282,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 13:10:49.333 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 13:10:49.344 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 13:10:49.346 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:10:49.348 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 13:10:49.364 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 13:10:49.367 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:10:49.368 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 13:10:49.377 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 13:10:49.392 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 13:10:49.435 [OPEN KIK] Flow ended.
03.11.2014 13:11:04.481 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415049064418,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 13:11:04.483 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 13:11:04.496 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 13:11:04.498 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 13:11:04.499 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 13:11:04.499 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 13:11:04.508 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 13:11:04.511 [OPEN KIK] Flow ended.

Re: conditions based on app...?

Posted: 04 Nov 2014 00:44
by Hanntheftaudio
this is the newest log which is now worse than earlier.

03.11.2014 16:31:40.133 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:31:40.170 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:31:40.171 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:31:40.235 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:31:40.236 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:31:40.238 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:40.239 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:31:40.247 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:40.293 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:31:40.353 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:31:40.355 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:40.356 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:31:40.367 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:40.408 [OPEN KIK] Flow ended.
03.11.2014 16:31:47.152 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061107148,trigger=Manual}}
03.11.2014 16:31:47.155 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:31:47.160 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:31:47.210 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:31:47.211 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:31:47.250 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:31:47.252 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:47.252 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:31:47.264 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:47.265 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:31:47.326 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:31:47.395 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:31:47.396 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:47.397 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:31:47.403 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:31:47.465 [OPEN KIK] Flow ended.
03.11.2014 16:33:29.207 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061209197,trigger=Manual}}
03.11.2014 16:33:29.209 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:33:29.263 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:33:29.336 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:33:29.337 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:33:29.383 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:33:29.435 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:33:29.436 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:33:29.437 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:33:29.589 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:33:29.637 [OPEN KIK] Flow ended.
03.11.2014 16:36:19.530 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061379523,trigger=Manual}}
03.11.2014 16:36:19.533 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:36:19.590 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:36:19.637 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:36:19.639 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:36:19.701 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:36:19.751 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:36:19.752 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:36:19.753 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:36:19.776 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:36:19.845 [OPEN KIK] Flow ended.
03.11.2014 16:37:13.998 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061433897,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:37:14.001 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:37:14.004 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:37:14.006 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:14.007 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:14.007 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:37:14.037 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:14.051 [OPEN KIK] Flow ended.
03.11.2014 16:37:20.907 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061440663,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:37:20.910 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:37:20.961 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:37:21.009 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:21.010 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:21.011 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:37:21.025 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:21.080 [OPEN KIK] Flow ended.
03.11.2014 16:37:25.108 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061444982,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:37:25.110 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:37:25.186 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:37:25.256 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:25.257 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:25.259 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:37:25.267 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:37:25.399 [OPEN KIK] Flow ended.
03.11.2014 16:37:36.223 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061456219,trigger=Manual}}
03.11.2014 16:37:36.248 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:37:36.286 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:37:36.344 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:36.349 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:37:36.417 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:37:36.465 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:36.467 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:36.467 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:37:36.478 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:36.547 [OPEN KIK] Flow ended.
03.11.2014 16:37:47.933 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061467852,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:37:47.935 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:37:47.938 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:37:47.947 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:47.948 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:37:47.966 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:37:47.967 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:47.968 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:47.968 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:37:47.987 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:48.010 [OPEN KIK] Flow ended.
03.11.2014 16:37:53.425 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061473357,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:37:53.432 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:37:53.452 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:37:53.453 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:53.454 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:37:53.463 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:37:53.466 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:37:53.468 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:53.473 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:37:53.485 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:37:53.501 [OPEN KIK] Flow ended.
03.11.2014 16:38:20.517 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061500361,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:38:20.524 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:38:20.584 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:38:20.634 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:20.636 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:38:20.693 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:38:20.730 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:20.731 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:38:20.732 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:38:20.738 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:38:20.820 [OPEN KIK] Flow ended.
03.11.2014 16:38:27.418 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061507355,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:38:27.427 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:38:27.434 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:38:27.438 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:27.442 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:38:27.443 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:38:27.459 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:38:27.479 [OPEN KIK] Flow ended.
03.11.2014 16:38:34.597 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061514586,trigger=Manual}}
03.11.2014 16:38:34.607 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:38:34.672 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:38:34.725 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:34.729 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:38:34.730 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:38:34.737 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:38:34.813 [OPEN KIK] Flow ended.
03.11.2014 16:38:57.410 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061537285,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:38:57.414 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:38:57.462 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:38:57.503 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:57.504 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:38:57.549 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:38:57.587 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:38:57.588 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:38:57.589 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:38:57.594 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:38:57.665 [OPEN KIK] Flow ended.
03.11.2014 16:39:06.095 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061546008,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:39:06.100 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:39:06.117 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:39:06.120 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:06.121 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:39:06.129 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:39:06.130 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:06.131 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:39:06.134 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:39:06.158 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:39:06.181 [OPEN KIK] Flow ended.
03.11.2014 16:39:09.106 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061549034,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:39:09.108 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:39:09.119 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:39:09.120 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:09.121 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:39:09.126 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:39:09.128 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:09.129 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:39:09.130 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:39:09.150 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:39:09.175 [OPEN KIK] Flow ended.
03.11.2014 16:39:36.134 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061575919,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:39:36.137 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:39:36.194 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:39:36.227 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:36.228 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:39:36.277 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value true
03.11.2014 16:39:36.337 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:39:36.338 [OPEN KIK] Start executing action 'Launch App: kik.android'
03.11.2014 16:39:36.339 [OPEN KIK] Action 'Launch App: kik.android' Class name is not set, trying to find main activity of package kik.android
03.11.2014 16:39:36.341 [OPEN KIK] Action 'Launch App: kik.android' Starting main activity of package kik.android
03.11.2014 16:39:36.370 [OPEN KIK] End executing action 'Launch App: kik.android'
03.11.2014 16:39:36.452 [OPEN KIK] Flow ended.
03.11.2014 16:40:26.359 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061626204,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:40:26.365 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:40:26.412 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value false
03.11.2014 16:40:26.472 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:26.474 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:40:26.536 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:40:26.593 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:26.594 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:40:26.595 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:40:26.612 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:40:26.652 [OPEN KIK] Flow ended.
03.11.2014 16:40:34.537 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061634477,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:40:34.540 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:40:34.545 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:40:34.549 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:34.550 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:40:34.553 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:40:34.561 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:40:34.591 [OPEN KIK] Flow ended.
03.11.2014 16:40:45.119 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061645111,trigger=Manual}}
03.11.2014 16:40:45.122 [OPEN KIK] Start executing condition 'App Task Running: kik.android'
03.11.2014 16:40:45.237 [OPEN KIK] End executing condition 'App Task Running: kik.android' with return value true
03.11.2014 16:40:45.292 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:45.293 [OPEN KIK] Start executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:40:45.294 [OPEN KIK] Action 'Notification on Screen: ALREADY IN THE APP ' Showing toast text 'ALREADY IN THE APP '.
03.11.2014 16:40:45.319 [OPEN KIK] End executing action 'Notification on Screen: ALREADY IN THE APP '
03.11.2014 16:40:45.388 [OPEN KIK] Flow ended.
03.11.2014 16:40:54.268 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{flow_name=OPEN KIK,triggertime=1415061654258,trigger=Manual}}
03.11.2014 16:40:54.270 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:40:54.312 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:40:54.363 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:54.365 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:40:54.408 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:40:54.454 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:40:54.455 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:40:54.455 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:40:54.463 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:40:54.538 [OPEN KIK] Flow ended.
03.11.2014 16:41:03.480 [OPEN KIK] Starting to execute flow 'OPEN KIK' with Context{global{},local{triggertime=1415061663418,trigger=Shortcut: check kik flow ,flow_name=OPEN KIK}}
03.11.2014 16:41:03.492 [OPEN KIK] Start executing condition 'App Task Running: kik.android (most recent)'
03.11.2014 16:41:03.505 [OPEN KIK] End executing condition 'App Task Running: kik.android (most recent)' with return value false
03.11.2014 16:41:03.506 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:41:03.507 [OPEN KIK] Start executing condition 'App Task Running: LAUNCHERS '
03.11.2014 16:41:03.519 [OPEN KIK] End executing condition 'App Task Running: LAUNCHERS ' with return value false
03.11.2014 16:41:03.521 [OPEN KIK] Flow continues executing with the next step.
03.11.2014 16:41:03.522 [OPEN KIK] Start executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:41:03.522 [OPEN KIK] Action 'Notification on Screen: KIK NOTIFICATION ACTIVE ' Showing toast text 'KIK NOTIFICATION ACTIVE '.
03.11.2014 16:41:03.537 [OPEN KIK] End executing action 'Notification on Screen: KIK NOTIFICATION ACTIVE '
03.11.2014 16:41:03.557 [OPEN KIK] Flow ended.

Re: conditions based on app...?

Posted: 04 Nov 2014 18:00
by Martin
Hi,

Thanks for the logs!

When the flow is executed manually from within Automagic, Kik is not running in the foreground nor is one of the defined launchers running in the foreground, which seems to work as far as I can tell from the log (when most recent task is checked).
I see that you did also test the flow with a shortcut trigger. Unfortunately this trigger brings an invisible activity of Automagic to the foreground for a short amount of time which causes that Automagic is the foreground app right at the time when the condition is run. This problem should be fixed in the next update of Automagic.
Did you try to see whether the flow works when you receive a Kik message using the trigger Notification on Statusbar Displayed: kik.android and Check most recent app task only activated in both conditions?

Regards,
Martin