Working with Notifications on Statusbar variables

สอนใช้แอพ Automagic * Automation
Gridvision Engineering GmbH
https://play.google.com/store/apps/details?id=ch.gridvision.ppam.androidautomagic
Post Reply
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Working with Notifications on Statusbar variables

Post by tong »

Screenshot_2016-11-29-15-33-19-945.jpg Screenshot_2016-11-29-15-33-39-849.jpg We can monitor all Notifications on Statusbar as in the pictures.
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Working with Notifications on Statusbar variables

Post by tong »

And use the action " Write to File" with these code:

Code: Select all

{triggertime,dateformat,yyyy-MM-dd HH:mm:ss.SSS}
package_name={package_name}
app_name={app_name}
id={id}
title={title}
content_title={content_title}
content_title_big={content_title_big}
notification_text={notification_text}
notification_text_big={notification_text_big}
notification_large_icon={notification_large_icon}
notification_when={notification_when}
notification_number={notification_number}
notification_vibrate_default={notification_vibrate_default}
notification_vibrate_pattern={notification_vibrate_pattern}
notification_sound_default={notification_sound_default}
notification_sound_uri={notification_sound_uri}
notification_people={notification_people}
notification_info_text={notification_info_text}
notification_sub_text={notification_sub_text}
notification_summary_text={notification_summary_text}
notification_progress={notification_progress}
notification_progress_max={notification_progress_max}
notification_progress_indeterminate={notification_progress_indeterminate}
notification_text_lines={notification_text_lines}
notification_background_image_uri={notification_background_image_uri}
notification_category={notification_category}
notification_accent_color={notification_accent_color}
notification_ticker_text={notification_ticker_text}
notification_visibility={notification_visibility}
notification_ongoing={notification_ongoing}
notification_foreground_service={notification_foreground_service}
notification_local_only={notification_local_only}
notification_group={notification_group}
notification_is_group_summary={notification_is_group_summary}
buttons={buttons}
wearable_actions={wearable_actions}
--------------------------------------------------------------
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Working with Notifications on Statusbar variables

Post by tong »

Screenshot_2016-11-29-15-31-47-859.jpg Screenshot_2016-11-29-15-32-18-892.jpg We can manual get the current of all Notifications on Statusbar that showing with these code:

Code: Select all

for (n in no)
{
   for (m in getMapKeys(n))
   {
     log("{m}=" + n[m]);
   }
   log("-------------------------");
}
"no" variable is the list of all Notifications on Statusbar that showing.
Each list member containing with a map.
Post Reply