[Q] Interact with notifications of apps in android work profile - Tasker Tips & Tricks

My office device comes with Slack installed in the android work profile. I am trying to intercept the notifications from that app using AutoNotifications but somehow it is not executing the tasker profile when I receive the notification from slack.
Any tips/tricks to do that?

There is a post where a profile was made so that a user could explore how to use Auto notification intercept. Find it here.
Otherwise, it's a good idea to share your profile when it's not working as expected. Make sure it's named - not a default name assigned by tasker. Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Then you'll be able to paste it. Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

[Q] contact/calendar.apk integration; ring profiles

There are 2 features I'd like make available. I am posting here to see if they've already been coded, and if not, some guidance on what i how to go about coding them (i have eclipse and the SDK for 1.6 all set up...i just need to know what native android files to modify (im guessing contacts.apk) to get the first item figured out, and then for the second item below, i'd like to see some sample code of how to set ring settings.
1) since most of our new calendar events are to meet with/call people in our contacts list, id like if the context menu for contacts could have a menu item added: Create Event. what would happen when selected is a new calendar event window would pop up, pre-populated with the contact's phone number in the Description field and their name in the Event Name field. the user could then modify these to add details. this mod would save us from having to go to the calendar and create an even to "call joe", only to have the reminder come up later and then have to navigate the contacts to find joe so we can call him. here, the event would have his number preloaded and could be clicked on (like a hyperlink) to load the number into the dialer
how do we hook into the contacts.apk file to make this type of mod? or, is the mod to be done some other way?
2) though we can select different ring tones for different contacts/groups, and we can also set different ring volumes/vibes, it would be nice to have a ring profile that would, say, only let the "family" group ring but stay silent for everyone else. this way, i can put the phone in this mode when going to sleep, but still be available for emergency family phone calls. this is much like the black list/white list app on xda for winmo.
Dude, stop double-clicking that Submit button. The mods are probably tired of deleting your double posts by now.
Moved To Dream Q&A

How-To Initiate Phone Calls via Google Home

**Updated 5/27/2017**
After installing this profile you will be able to say "Ok Google, call" followed by <the name of any contact or ph#>. Google Home will then make the call from your cell phone and turn on the speakerphone.
Video Demo
Part 1.
1. Download and install Tasker, AutoContacts BETA, and Pushover apps. Also download the Make_Call.prf.xml (you will make use of this file in Part 3.)
2. Open AutoContacts, grant all permissions and allow it to load your contacts (I recommend that you upgrade to the full, paid version or you will only have access to a limited number of contacts).
3. Open Pushover and create an account (it’s free).
Part 2.
1. Go to IFTTT.com and create the following applet:
a. “This” – Google Assistant channel - “Say a Phrase with a Text Ingredient”
i. Under “What do you want to say?” – Enter “please call $”
ii. Under “What do you want the Assistant to say in response?” – Enter “ok, calling $ from your phone”
b. “That” – Pushover channel - “Send a Pushover notification”
i. Under “Title” enter “call”
ii. Under “Device” select your device’s name. You can leave, or change, the other default entries according to your preference.
Part 3.
1. Place the “Make Call” xml file in your device’s Tasker/profiles folder (if these folders do not exist then create them).
2. Open Tasker and long-press “Profiles,” then select “Import” and import the xml file from Part.1.
3. Back-out of Tasker to save the profile. Done!
You can now say “Ok Google, call" followed by <the name of your contact>. Your phone will place the call and turn on your speakerphone. Enjoy!
**Important**
- Turn off battery optimization for Tasker, AutoContacts, and Pushover or your device may disable these apps when idle.
Other Google Home Projects:
- Ask Google Home - Who Called?
- How-To Hear Missed Call and Unread Text Message Reminder on Google Home
- How-To Make Google Home Announce Incoming Calls and Auto-Read New Text Messages
- Google Home - Quick Todoist Update and Recurring Reminder
- Google Home Spotify Alarm
- How-To Reply to Text Message with Google Home
- How-To Have Google Home Read Your Last Text Message
- How-To Send Text Messages via Google Home (Text Any Contact or Ph#)
- How-To Create Calendar Events using Google Home
- Google Home - Announce Incoming Notifications
- Start Navigation with Google Home
When I get google home to call someone it calls 9n my phone but dosent put it on speaker and when I click on speaker it goes through my phone speakers not GH.
I was testing for a friend this works perfectly. How do I go about uninstalling all of this to go back to original operation? I've uninstalled all the apps but Google assistant will no longer query from my phone, it won't look up number on web and dial out from my phone. Now it just says it's calling and sits there. When I say OK goggle call xxxx it should do a lookup of contacts or out on web and then dial out. What is calling xxxx but that's it no dialing or lookup is occurring.
bigwill420 said:
I was testing for a friend this works perfectly. How do I go about uninstalling all of this to go back to original operation? I've uninstalled all the apps but Google assistant will no longer query from my phone, it won't look up number on web and dial out from my phone. Now it just says it's calling and sits there. When I say OK goggle call xxxx it should do a lookup of contacts or out on web and then dial out. What is calling xxxx but that's it no dialing or lookup is occurring.
Click to expand...
Click to collapse
Delete the corresponding IFTTT applet.
muniz_ri said:
Delete the corresponding IFTTT applet.
Click to expand...
Click to collapse
I logged into ifttt site I turn off and deleted the applet. I can now make calls out when the contacts are stored in my phone or in Google contacts. What it still won't do is search online for number and dial out.
That has nothing to do with this hack. You may want to search the Google home forums for help with that.
Closing thread as a native calling function has now been added to Google Home.
Thread closed by OP request.

[Help] Task firing X minutes before calendar entry?

I do not seem to get that working. I am not too much of an expert with Tasker even though I know the basics.
it's always a good idea to share your profile when it's not working as expected. Make sure it's named - not a default name assigned by tasker. Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Then you'll be able to paste it. Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off", to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
- Business calendar(free/paid) has option to show notification prior to calendar events
- Test calendar action every certain minutes to query for coming event and act on it.
alienyd said:
- Business calendar(free/paid) has option to show notification prior to calendar events
- Test calendar action every certain minutes to query for coming event and act on it.
Click to expand...
Click to collapse
That sounds interesting... I happen to use Business Calendar 2 as my calendar app.
isosika said:
That sounds interesting... I happen to use Business Calendar 2 as my calendar app.
Click to expand...
Click to collapse
Exactly the one. You can have Tasker react to its Ongoing-Notifications.

How do I do this text-based task?

Hey guys, I'm trying to automate a task I do often for work. When I get a potential new customer, I receive a standard email with their information in a specific format. For example:
Name - x
Email - y
Phone - z
I am trying to figure out a way to interact with this body of text and automate it as much as possible. I would have to add a new contact with the name, and send out a standardized email as well as a text.
I haven't really made complex tasks like this, so I'm a bit lost as to where to start. I am rooted. I would also like to note that I'm using a proprietary email app (Blackberry Hub+ Inbox), so I think it may be easiest to start off the task by manually copying the body of the text and then somehow triggering the task.
Thanks in advance!
This project is actually a little complex, and it also interested me so, while I usually don't do this, here is a taskernet share.
Requires AutoTools to be installed because a webscreen is used. On install, you must edit actions 15 & 16 in the task. These are variables for the email subject and body.
The profile triggers when data starting with e.g. "Name - John Doe" is copied to the clipboard. Then a button pops up on the right side of your screen and when you tap it the information is entered into a new contact form that you can edit, cancel or save.
A second button becomes available which triggers the composed email action.
The buttons will time out after 30 seconds without triggering the associated task. You can also "fling" them away to dismiss.
The task is expecting each piece of information to be on a separate line like:
Name - John Doe
Email - [email protected]
Phone - (999) 999-9999
The labels for each line are used as variables in the task to identify the associated data. Therefore, the order does not matter. Though if "Name - " is not first, the profile will not trigger. You would need to edit the regex in the profile context.
If, for example, an address is on multiple lines, the task will need to be modified to handle that.
To limit the activation of this profile to only when the data is copied in a specific app such as an email client, add that app as a context in the profile.
The task is heavily commented.
Finally, I add my username into the profile and task names to help avoid the possibly of namespace collisions (when the imported project has the same profile, task or variable names as existing profile, task or variables). The -ktmom can be removed.

Dialer app - specific functions for kid phone

Hello guys,
I was looking for kids mode like the one from Samsung. Unfortunately my kid's phone is not samsung and i wasnt able to port the application to work on Sony Device.
The main reason for this is that they had a Dialer application for kids which shows no phone number but ONLY the name of the mother/father contacts while calling. I want to use this function to make the phone more secure in case is stolen or robbed. As well it offers to block any other incoming calls except the selected ones.
@ktmom suggested me to try with a Tasker. I've never been experience a similar software for this kind of things.
Could you please gimme some advices or help regarding my needs and suggest me from where to start.
Thanks in advance.
Hi Ho [emoji16]
The plan I would start with is to create a shortcut on the desktop or a notification with call mom (or dad) buttons. Then use tasker to directly dial the numbers (as variables) without having them entered into the phone's contacts.
The trick is the dialer history will keep a history of called numbers, but I think that can be deleted; though we may need one or two plugins to tasker to achieve that reliably.
If this is in line with your goals, then I'll be happy to create a task or two to handle this that you can import. That is easier than teething to develop it yourself as a beginner.
I'm at the airport waiting for my daughter's flight, but let me know if this will work, or any ideas you have.
Sure, let's do it like that with your help. And in the process of developing we can sharpen it.
BTW thank you so much for your help and patience. I do really appreciate your help. ????
I actually just got home. Is there a timeframe for this? I'm thinking Christmas or similar. Otherwise I'll spend some time this weekend to come up with something for you.
This is just a basic set of tasks to create quick dialers to Mom and Dad, without needing the numbers to have been entered into the contacts app.
One task, "create shortcuts", sets two of Tasker's quick setting tiles. One will call Dad, the other will call Mom. The use of the quick settings tiles should help prevent accidental calls and still be convenient.
After importing the linked project, go to the device's quick settings editor and drag the first two Tasker tiles into the active area. The tasks won't actually appear set to the tiles until they are in the active area.
The task, "create shortcuts" should run on import of this project, performing the configuration mentioned above; associating the tiles with the "call mom" and "call dad" tasks.
The icons are set in the respective "call mom" or "call dad" task. To change the icon, enter the task then tap the icon at the bottom and select a new one. The "create shortcuts" task may need to be run again (manually) to update the tile's icon.
You must go to the "dialer" task and edit the value in the "To" field within the first two actions to the appropriate phone numbers.
The left facing arrow at the top left of the screen exits out of the task and saves the changes. You should also make a habit of tapping the checkmark [emoji736] at the top of the screen after saving a task, which saves the changes to Tasker. That checkmark is available only when there are changes to be saved.
This is just a start, hoping to get feedback if this is the right direction for you.
Import Kids Phone project.
Hey,
thanks a lot for the time you spent for this.
I've tested it and it calls with no issues.
Now we have to make the phone numbers to disappear. Can we put a fixed custom title? This is because it uses the name written in the contact list.
BTW is there an option to drop an icon on the desktop of the phone?
Thanks again for your great help!
IMalchev said:
Hey,
thanks a lot for the time you spent for this.
I've tested it and it calls with no issues.
Now we have to make the phone numbers to disappear. Can we put a fixed custom title? This is because it uses the name written in the contact list.
BTW is there an option to drop an icon on the desktop of the phone?
Thanks again for your great help!
Click to expand...
Click to collapse
Yes, we can create a desktop shortcut. Instead of the tiles?
What do you mean "it uses the name in the contact list"? Do you mean in the call history?
I meant that when I run the call from the tasker it uses the name from the contact book/history. This is not big issue, but it just wondering if it's possible.
Thank you
IMalchev said:
I meant that when I run the call from the tasker it uses the name from the contact book/history. This is not big issue, but it just wondering if it's possible.
Thank you
Click to expand...
Click to collapse
That is the relationship the phone app has with the contact app. You have to remove the names from the contact app.
I'm confused. I thought the goal here is to obfuscate the phone numbers so if the phone is picked up by a "stranger", the numbers are not evident.
If I was, for example, a stalker, and I took the child's phone to get phone numbers, the first place I would look is in the contacts app. The second place is in the call log. Can you help me understand what is and isn't necessary here.
To create the task to remove the call's history from the history, I have to sort out the contentrovider structure for the phone database. I've explored the text messaging DB, but I need to be on my computer to find the phone DB structure.

Categories

Resources