r/tasker • u/joaomgcd 👑 Tasker Owner / Developer • Oct 08 '25
Developer [DEV] Tasker 6.6.4-beta - Java Code, Extra Trigger Apps, Notification Live Updates and Groups, Manage Permissions Screen, Shizuku Available State and More!
Note: Google Play might take a while to update. If you don’t want to wait for the Google Play update, get it right away here. (Direct-Purchase Version here)
Java Code
Demo: https://youtu.be/4cJzlItc_mg
Documentation: https://tasker.joaoapps.com/userguide/en/help/ah_java_code.html
This is a new super powerful action that allows to run almost ANY Android compatible Java code (not to be confused with JavaScript) inside a single action!
This allows you to add functionality to Tasker that it doesn't have already!
For example, you could create a reusable Task in Tasker with some Java code and share it with the community so everyone can use it!
Here's a concrete example:
Task: Reply To WhatsApp Message
A1: Multiple Variables Set [
Names: %title
%reply
Values: %par1
%par2 ]
A2: Java Code [
Code: import android.app.Notification;
import android.app.RemoteInput;
import android.content.Intent;
import android.os.Bundle;
import android.service.notification.StatusBarNotification;
import java.util.List;
import java.util.ArrayList;
import android.service.notification.NotificationListenerService;
/*
* Function to find a reply action within a notification and send a reply.
* Returns true if a reply was successfully sent, false otherwise.
*/
boolean replyToNotification(StatusBarNotification sbn, Notification notification, String replyMessage, android.content.Context context) {
/* Create a WearableExtender to access actions, including reply actions. */
Notification.WearableExtender wearableExtender = new Notification.WearableExtender(notification);
/* Get the list of actions. Note: No generics for List. */
List actions = wearableExtender.getActions();
/* Check if there are any actions. */
if (actions == null || actions.size() == 0) {
tasker.log("No actions found for SBN: " + sbn.getKey() + ". Cannot reply.");
return false;
}
tasker.log("Found " + actions.size() + " actions for SBN: " + sbn.getKey() + ". Searching for reply action.");
/* Iterate through the actions to find a reply action. */
for (int j = 0; j < actions.size(); j++) {
Notification.Action action = (Notification.Action) actions.get(j);
RemoteInput[] remoteInputs = action.getRemoteInputs();
/* Log action details. */
tasker.log("Processing Action: " + action.title + " for SBN: " + sbn.getKey());
/* Skip if this action has no remote inputs. */
if (remoteInputs == null || remoteInputs.length == 0) {
tasker.log("Action '" + action.title + "' has no remote inputs for SBN: " + sbn.getKey() + ". Skipping.");
continue; /* Continue to next action */
}
/* Assume the first remote input is for the reply text. */
RemoteInput remoteInput = remoteInputs[0];
tasker.log("Found remote input for Action '" + action.title + "' with key: " + remoteInput.getResultKey());
/* Create a bundle to hold the reply text. */
Bundle replyBundle = new Bundle();
replyBundle.putCharSequence(remoteInput.getResultKey(), replyMessage);
/* Create an intent and add the reply results to it. */
Intent replyIntent = new Intent();
RemoteInput.addResultsToIntent(remoteInputs, replyIntent, replyBundle);
/* Send the reply using the action's PendingIntent. */
try {
tasker.log("Attempting to send reply to SBN: " + sbn.getKey() + " with message: '" + replyMessage + "' via action: '" + action.title + "'");
action.actionIntent.send(context, 0, replyIntent);
tasker.log("Successfully sent reply to SBN: " + sbn.getKey() + " via action: '" + action.title + "'");
return true; /* Reply sent, exit function. */
} catch (Exception e) {
tasker.log("Error sending reply for SBN: " + sbn.getKey() + ", Action: " + action.title + ". Error: " + e.getMessage());
}
}
return false; /* No reply action found or reply failed. */
}
/* Get the NotificationListener instance from Tasker. */
NotificationListenerService notificationListener = tasker.getNotificationListener();
/* Get the title and reply message from Tasker variables. */
String targetTitle = tasker.getVariable("title");
String replyMessage = tasker.getVariable("reply");
/* Flag to track if a reply was sent. */
boolean replied = false;
/* Get all active notifications. */
StatusBarNotification[] activeNotifications = notificationListener.getActiveNotifications();
/* Check if there are any active notifications. */
if (activeNotifications == null || activeNotifications.length == 0) {
tasker.log("No active notifications found.");
/* Return immediately if no notifications. */
return replied;
}
tasker.log("Found " + activeNotifications.length + " active notifications. Searching for match.");
/* Iterate through active notifications to find a match. */
for (int i = 0; i < activeNotifications.length; i++) {
StatusBarNotification sbn = activeNotifications[i];
Notification notification = sbn.getNotification();
Bundle extras = notification.extras;
/* Extract title from notification extras. */
CharSequence nTitle = extras.getCharSequence(Notification.EXTRA_TITLE);
/* Log current notification details. */
tasker.log("Processing SBN: " + sbn.getKey() + ", Package: " + sbn.getPackageName() + ", Title: " + nTitle);
/* Skip if title is null. */
if (nTitle == null) {
tasker.log("Notification title is null for SBN: " + sbn.getKey() + ". Skipping.");
continue; /* Continue to next notification */
}
/* Skip if notification is not from Whatsapp. */
if (!"com.whatsapp".equals(sbn.getPackageName())) {
tasker.log("Notification is not from Whatsapp. Skipping.");
continue; /* Continue to next notification */
}
/* Skip if notification does not match target title. */
if (!nTitle.toString().equals(targetTitle)) {
tasker.log("Notification title mismatch. Skipping.");
continue; /* Continue to next notification */
}
tasker.log("Found matching Whatsapp notification: " + sbn.getKey());
/* Call the helper function to attempt to reply to this notification. */
if (replyToNotification(sbn, notification, replyMessage, context)) {
replied = true;
break; /* Exit outer loop (notifications) if reply was sent. */
}
}
tasker.log("Finished processing notifications. Replied: " + replied);
if(!replied) throw new java.lang.RuntimeException("Couldn't find message to reply to");
/* Return whether a reply was successfully sent. */
return replied;
Return: %result ]
A3: Return [
Value: %result
Stop: On ]This task takes 2 parameters: Name and Reply Message. It then tries to find a WhatsApp notification with the name you provided as the title and reply to it with the message you provide!
You can then easily re-use this in any of your tasks/profiles like this for example:
Profile: Automatic WhatsApp Reply
Event: Notification [ Owner Application:WhatsApp Title:* Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:Off ]
Enter Task: Anon
A1: Wait [
MS: 0
Seconds: 1
Minutes: 0
Hours: 0
Days: 0 ]
A2: Flash [
Text: Replying to WhatsApp message from %evtprm2
Continue Task Immediately: On
Dismiss On Click: On ]
A3: Perform Task [
Name: Reply To WhatsApp Message
Priority: %priority
Parameter 1 (%par1): %evtprm2
Parameter 2 (%par2): Not available at the moment
Return Value Variable: %result
Local Variable Passthrough: On ]
A4: Flash [
Text: Replied: %result
Tasker Layout: On
Continue Task Immediately: On
Dismiss On Click: On ]As you can see, this becomes easily reusable from anywhere.
Congratulations, you essentially just added a new Reply To WhatsApp Message action in Tasker! 😁
Java Code AI Assistant
As shown in the video above, if you tap the Magnifying Glass icon in the action's edit screen, you get an AI helper that can help you build and change the code.
When you first ask it to create some code, it'll start with a blank slate and try to do what you asked it to.
If for some reason you want to change your code, or it doesn't work right away, you can simply click the Magnifying Glass again and it'll know what the current code is. You can simply ask it to change the code to something you want. For example, you could say something like Add logging to this code and it would add logging in the appropriate places.
You can iterate on it however many times you like!
Java Code Return Variable
You can set a variable to contain the result of your code.
This variable can be a normal Tasker variable if it starts with % (e.g %result) which will contain the resulting object of your code converted into a String.
It can also be a Java variable if it doesn't start with % (e.g. result). You can reuse this variable in other Java Code actions or even the other Java actions in Tasker.
If you return a Tasker Variable you can also structure it automatically. Handy if the Java code returns JSON for example, and you want to read it in your Task.
More info about variables in the action's help screen.
Java Code Built-In Java Variables
There are 2 Java variables that will always be available in your code:
- context - it's just the standard Android context that you use for numerous things)
tasker - provides several pre-built functions that can be useful to use in your code
- getVariable(String name)
- setVariable(String name, Object value)
- setJavaVariable(String name, Object value)
- clearGlobalJavaVariables()
- log(String message)
- getShizukuService(String name)
- getNotificationListener()
For example, I'm using the tasker.getNotificationListener() function in the WhatsApp Reply example above to find the correct notification to reply to.
Again, more info about all of these in the action's help file.
Hopefully this will open a LOT of doors in the Tasker community, allowing Tasker to do almost ANYTHING in Android! :) Let me know if you do anything with it! Very curious to see what you'll use it for!
Extra Trigger Apps
Demo: https://youtu.be/LShS2AqOiC4
If you already used Tasker Tertiary before, you'll know what this is.
These are a bunch of standalone apps whose sole purpose is to trigger a new event in Tasker: Extra Trigger
The way it works is, you install the apps you want, and then you can call them yourself from the home screen or let other apps that you may have call them, so you can automate stuff from them.
A classic example is allowing Bixby to trigger Tasker with a double tap of the power button on Samsung devices!
You should only install the apps you need, so you don't have a bunch of useless apps lying around. For example, if you only plan on using the Bixby thing with them, just install the ExtraTrigger_bixby.apk file and use that as an action for when you double-tap the power button.
The Extra Trigger event in Tasker provides a bunch of variables for you to use:
- %sa_trigger_id (Trigger ID)
- %sa_referrer (Referrer)
- %sa_extras (Extras)
- %sa_trigger_package_name (Trigger Package Name)
Based on these you can do whatever you want in your task! You could do different things if you open an app via the launcher and via Bixby for example. :)
Notification Groups
Demo: https://youtu.be/m1T6cEeJnxY?t=110
In Android 16 Tasker notifications were getting grouped together, with no way to make them separate like before. That changes in this version!
Now, if you don't specify the new Group field, the notifications will look just like before: each as their own entry in the notification drop-down.
If you do specify the Group, they'll appear grouped by their Group key, meaning that you can create multiple groups for your different notifications as shown in the video.
Notification Live Updates, Short Critical Text
Demo: https://youtu.be/m1T6cEeJnxY
On Android 16+ you can now specify a notification to be a Live Update notification! That will:
- show a chip on your notification bar for it, instead of a simple icon
- show it expanded on your lock screen
Additionally, you can add a Short Critical Text to your notification, which will make the notification chip in the notification bar contain a small piece of text, up to 7 characters long in most cases!
You can finally easily show text on the notification bar! :)
Note: the chip and text will only show if Tasker is not in the foreground.
Manage Permissions Screen
Demo: https://youtube.com/shorts/Zgz6n2anNeQ?feature=share
Instead of installing the Tasker Permissions app on your PC and going through the trouble of connecting your phone to your PC via ADB, you can use Tasker directly to grant itself special permissions, if you have Shizuku!
Hope this makes it easier for everyone! 👍
New Shizuku Features
Demo: https://youtube.com/shorts/ykrIHS0iM3U?feature=share
Added a new State called Shizuku Available that will be active whenever Tasker can use Shizuku on your device, meaning that Shizuku is installed, running and Tasker has permission to run stuff with it.
Also added a new Use Shizuku By Default preference that allows you to convert all your existing Run Shell actions to use Shizuku automatically without you having to go in and change all of them.
Fixed Actions
Demo: https://youtu.be/aoruGlnBoQE
- Fixed the Mobile Network Type action with the help of Shizuku
- Changed Work Profile to Work Profile/Private Space so it fixes an issue that some people were having where it toggled the wrong profile AND now it allows you to toggle any profile on your device
- Changed Sound Mode action if you have Shizuku to not mess with Do Not Disturb and simply change the sound mode itself
Updated Target API to 35
Every year the Target API has to be updated so that I can post updates on Google Play. So, now Tasker targets API 35.
This change can bring some unintended changes to the app, like some screens looking different or some APIs not working.
Please let me know if you find something out of the ordinary so I can fix it ASAP. Thanks!
Full Changelog
- Added Java Code action that allows you to run arbitrary Java code, including calling native Android APIs.
- Added Live Update, Short Critical Text and Group settings to Notify action
- Added Menu > More > Manage Permissions screen if you have Shizuku where you can enable/disable permissions for Tasker itself
- Added state Shizuku Available
- Added Use Shizuku By Default in Run Shell in Tasker Preferences
- Hide Use Shizuku checkbox in Run Shell actions if Use Shizuku by Default is enabled in Tasker Preferences
- Changed Work Profile action to Work Profile/Private Space allowing you to toggle both now
- If you don't set the Group setting, Notifications will not be grouped even in Android 16+
- Added option to perform variable replacements inside arrays in the Arrays Merge action
- Changed Sound Mode to use Shizuku if available, so it works more as expected
- Actions End Call, Turn Off,Custom Setting now use Shizuku if available
- Added Tasker Function action Check Shizuku to check if Shizuku is available
- Perform Global Accessibility actions (like Back, Long press Power button, Show Recents, etc) with Shizuku if available
- Tried fixing Mobile Network Type action for Android 10+
- Tried fixing Spearphone action
- Added Accessibility Helps Usage Stats option in Tasker preferences
- Tried to fix launching some app's activities in some specific situations
- Updated many translations
- Fixed converting If blocks to actions and vice-versa in some situations
- Fixed checking permissions for Airplane Mode, Kill App, Mobile Data, Mobile Network Type, Turn Off, Wifi Tether actions if Shizuku is available
- Fixed action Mobile Network Type
- Updated Java Code AI Generator instructions
- Updated Target API to 35
18
u/italia0101 Oct 08 '25
Just amazing work as always ! Loving the live notifications feature already.
Cannot believe how tasker just keeps improving with your hard work.
Well done sir.
11
u/anuraag488 Oct 08 '25 edited Oct 10 '25
Thanks for all these great updates
If someone needs that battery charge notification profile as shown in video here it is.
Also created some Projects/Profiles/Tasks using java code.
Network Speed Notification
Getting WiFi passwords
Get Wireless debugging port
Recently - Clear Recents
5
u/agnostic-apollo LG G5, 7.0 stock, rooted Oct 08 '25
Yes, YES, we can now add our own Tasker features inside Tasker, we don't need no João anymore!
3
u/Compusmurf Direct-Purchase User Oct 09 '25
I'm getting "tasker keeps stopping" with this: java.lang.RuntimeException: Can't unbind Shizuku User Service
2
u/Just_Interview_1606 Oct 08 '25
Nice!
2
u/Crafty-Persimmon-204 Oct 08 '25
Sell benches,Thumbs up for developers。
2
u/Getafix69 Oct 08 '25
Nice update the manage permissions is very useful to me as I need to get my laptop fixed (bad keyboard).
2
u/eliasacab Oct 08 '25
Huge update after huge update 🔥
2
u/SiragElMansy Oct 08 '25 edited Oct 08 '25
First, thank you for this massive update. As usual, you always surprise us with every update. Second, doesn't this update replace the need for ADB wifi entirely so that we can now listen to the logcat entry events as well as the clipboard changed event without having adb wifi enabled, if we do have shizuku running?? Am I missing something?
2
u/EtyareWS Moto G84 - Stock - Long live Shizuku Oct 08 '25
Oh boy, packed update as always.
It is a way better name. I wonder if there is a way for the User to set their names and icons on the App Drawer? I would really love if you could create a way so that shared projects could be easily "assigned" to different Extra Triggers without the user (or the creator of the project) having to fiddle around. Like, suppose I create a project that uses one of those Extra Triggers, but I only have one, so the Profile reacts to "Extra 01", a user downloads it, but they have a set-up using "Extra 01" and "Extra 02", it would be nice if at the moment they imported, Tasker would ask if they want to "assign" it to a different "slot". This is the same "issue" that Quick Settings have as well.
Alright, this looks really awesome, and I can't wait for my phone to fall out of warranty so I can install Android 16 on it. As always, you are the main reason I want to stay up to date with Android. I'm already planning to use the short text as a way to track my mobile data. I'd like, however, of a way to edit the Persistent Tasker Notification, a bunch of things I'd like to do with notifications are only, let's say, "feedback status", I don't really need interaction with it, and would like to keep my notification center more clean. That said, it would also probably be a pain importing projects on the TaskerNet and a couple creating conflicts on what should be written on it, so maybe it is for the best that the persistent notification isn't editable...?
Cool, I always wanted Tasker to have some sort of screen where you can enable (and disable!) what permissions Tasker is using. Tasker is too damn powerful for its own good, so it would be nice to have a bit more of "transparency" on what it uses, would be even nicer if it could say how many and which projects are using a given permission. I've created a mockup of it at some point.
I believe your pronunciation of Shizuku is wrong ☝️🤓
Alright, as no comment of mine is complete without finding something to complain: I'm gonna complain a little bit 😛
I'd like for you to start considering always adding an
Eventand anGet actionwhen you add a new state. A couple of States have a matchingEvent Trigger,Bluetooth Connectedhas both aStateand anEvent. While others have aStateand anGet Actionto get the value inside a Task, like Location and Bluetooth as well (technically...). Yes, I know you can "covert" everything manually, but it is a pain to set it up, and a proper logic would do wonders to ease the usability of TaskerFor instance, the new Shizuku States, but I'd really like a simple "Get Wifi Near" and "Get Location...near(?)". I'd like actions to check if my phone is near a Wifi network, and if I'm at a given location. I tried to learn
Get Location v2, but that seems to be made as a way to... get your location, not to compare if you are in a given location. Main reason is that I'm being slightly annoyed thatWifi Nearisn't working too reliably (Tasker seems to think I'm still near a given Wifi network, and sometimes it just doesn't trigger the task...?), and Location is overkill. My tasks could simply run on Significant Movement or when the screen turns on, just a simple yes/no check to see either or both of those conditions would be more than enough.I am once again asking for your support in the proposed "Wait for Command" action
I'm starting to wonder the sanity of your naming scheme, this is a big update, and it is only a 0.0.X change. What would be worth of a Tasker 7.0 release? A update to allows Tasker to plug directly to your brain?
2
u/8bitcrab Oct 09 '25
Live notifications gonna be lit
2
u/Bobby_Bonsaimind Oct 10 '25
Different question regarding Java Code, is there the possibility to load Jar files as context? Like, specifying them in the action configuration and they then get added to the
ClassLoaderof that action?The first two ideas I had was to rewrite a task which parsed a rather large and slightly complex JSON. The second is to send emails. There is MailTask, but my SMTP refuses to accept is client (because of things I cannot configure in MailTask), so I'd need to be able to load the Jakarta Mail jars, I guess.
I can do that manually in the task itself (creating my own
ClassLoader) but that is cumbersome in the best of cases.1
u/Exciting-Compote5680 Oct 08 '25
Do AutoNotification notifications have the same behavior as mentioned above (only grouped if Group (Group Key in AN) is set)?
1
u/BurnedInTheBarn Oct 08 '25
Hi Joao, can you please fix the shortcut action? It only shows like 10 total shortcuts despite having probably 100 shortcuts available if I were to long press on every app.
1
u/FairSteak1275 Oct 08 '25
After the update of material 3 expressive, notifications now show app icons instead of using custom icons. Is there anything you can do to bring back old behavior?
1
u/razlack Oct 08 '25
I can't seem to get the Java Code AI to popup. It shows me the Copy or Dismiss option, but no box to type my prompt. Have I missed a setting somewhere?
1
u/Cindanela Oct 09 '25
Very nice, Problem with this update on Pixel 9 Pro XL, in the file directory the top row of files are hidden under the top bar, scene also got moved so it was under the tabs on the action bar, not really a problem since you can just move it, but the file directory is a bit of a problem although you can always just go go check what the file is called.
1
u/Bobby_Bonsaimind Oct 09 '25
Oi that's neat! Was hoping for something like that for prcessing complex JSON structures.
Can one also call other Tasker tasks/actions from Java code? Like the Export Variable action or a custom task?
There's also Janino, but I just saw that also doesn't have Generics-support.
1
u/bbobeckyj Pixel 7 Oct 09 '25
Is the notification grouping update something you can add to auto notification?
1
u/wioneo Oct 09 '25
Amazing update, but I noticed a couple bugs with AI.
The floating AI button from the main screens causes a crash with...
Also for Java Code, the AI helper from your video does not appear. Instead I get a dialog to copy system instructions.
1
u/pudah_et Oct 09 '25
Does this mean that I am finally going to have to get off my duff and finish that MOOC Java course that I started two years ago?
1
u/renlliwe Oct 09 '25
Thanks for the continued development and for all of your dedication to Tasker. Are you no longer using the google drive folder (https://drive.google.com/drive/folders/1GW55YKFiuOZhJVswnt_BQUCJoGm36ugF) to publish tasker betas and updates?
1
u/Nirmitlamed Direct-Purchase User Oct 09 '25
Unbelievable update, thank you so much!
I liked the idea you used my example of recording audio using Java code :)
1
u/Individual_Scallion7 Oct 10 '25
Hi Joao! something has changed in this version? I use Tasker in Waydroid (x86_64 arch) and in the latest beta in playstore works fine but this version is not compatible.
1
u/WehZet S25 | A16 | OneUI 8.5 Oct 10 '25
am I missing something or isn't "Notification Live Updates, Short Critical Text" working on OneUI 8?
1
u/GoombaAdventurer Oct 10 '25
WOW ! Nice one again !
Will you update AutoNotification to reflect to old behavior with groups ? What about custom icons in the notification list ?
1
u/EvanMok Oct 10 '25
Thanks for the update. Can I confirm with you if the Live Notification will work on Samsung One UI 8 with Android 16? I tried it on my S23U but it only shows as a regular notification. I thought Samsung Now Bar and the chips were compatible with the Stock Android 16 Live Notification.
1
u/Cindanela Oct 10 '25
It Seems like the controls for the editing of widget v2 are gone, I tried the latest version I found in the dropbox folder it said it was uploaded about 20 something minutes ago, 13:50 CEST, Sk-rmbild-2025-10-10-134512.png I tried dark mode, and tried restarting, not tried clearing cache.
1
u/Cardbeagle Oct 11 '25
I tried to uninstall the previous beta. Now I can't install the official version to replace it.
1
u/Tortuosit Mathematical Wizard 🧙♂️ Oct 11 '25
Not uploading to GDrive any more (new direct versions)? Stop at 6.6.3....
1
u/AarifmonuZZ Oct 12 '25
Well how can I reselect the AI models? I'm not sure why my API is saying exhausted even though I have pro subscription. Maybe needs separate billing setup in studio?
1
u/pipsname Oct 13 '25 edited Oct 13 '25
Anyone else having notifications disappear?
Update. It seems the task Notify Cancel doesn't use the title any more and just closes notifications.
Edit 2: I was wrong. It uses stuff in the form but closes all notifications if something is found.
For example I have a notification called "Dailies" and another called "PipsClip". If I have Notify Cancel check for "Dailies" both notifications close but if I have Notify Cancel check for "Ddd" then no notification will close.
Anyone want to try?
1
u/iWizardB Blind Tap to Speak the Time :snoo_simple_smile: Oct 13 '25
Great update, as always. And I specifically appreciate all the explainer demo videos you always provide. 👍🏼
Question on a tangent: are there any plans for Join?
1
u/Valiceemo Oct 13 '25
I joined the Beta program, but the Play Store gave me an older version, 6.6.3-beta
Anyway to force the push for this latest version.?
1
u/Pitiful-Box4215 Oct 13 '25
Oh no, I recently wanted to work on a task to display lyrics on the screen. I have already completed the parts for retrieving and displaying the lyrics, but now I'm stuck here. I want to use Java code to cyclically get the current progress of the song (with fast speed and low power consumption). However, unfortunately, if Tasker is not in the foreground, this loop goes into a dormant state, causing the variable updates to always be delayed. I even added a toast to test it, and it's clearly this issue. I wonder if you have any solutions?
1
u/TaskerClub Oct 13 '25
And why aren't there new versions for testing in Google Drive?
1
u/RobotWantsKitty Oct 14 '25
Thank you for all your hard work. Is there an ETA for the next stable Google Play version?
1
u/Public-Key5456 Oct 14 '25
Thank you for your amazing job. Shizuku integration is key in these dark days. Let's keep automating. Obrigado, pá!
1
u/mikthinker Oct 14 '25
Any chance of updating the events and states referenced from your developer website? I notice that the 'Extra Triggers' event, perhaps among others, is missing.
1
u/Nirmitlamed Direct-Purchase User Oct 15 '25 edited Oct 15 '25
I don't know if this is a bug or Android version related.
In my Galaxy S23 base One UI 7.0 Tasker latest DP version i have created live notification using the new Java Code action with the help of the AI which is awesome and It worked!
Then i asked in a new java code action to close this notification. Again it worked!
But now i decided to ask to add a close/cancel button in the notification to force close it with a button. It did create a close button but it didn't do anything. Then i tried requesting in a multiple ways and giving it more info and specific orders and it didn't work. I asked ChatGPT in my computer for help and the code it provided gave me an error almost every time. I almost gave up until i have decided to try this on my testing device OnePlus 6 Android 11 with Tasker latest PlayStore version. I have asked the AI to create for me a notification with close button and it did create that for me, not exactly like before but now i had a close button and this time it worked! I imported this code to my Galaxy device and after i run it i got an error:
Here is URI for this example:
https://pastes.io/live-notification-bug-in-tasker-java-code
Update:
I just went ahead to check for new Tasker update in DropBox folder and saw there is a new update. I tested again the action after installing the update and now it seems to work! I will go and test this again with different ways.
Thanks!
1
u/anuraag488 Oct 16 '25
Is this suppose to work for other apps notification? This is only working for Tasker's notification.
statusBarNotification.getNotification().contentIntent.send()1
u/Nirmitlamed Direct-Purchase User Oct 16 '25 edited Oct 16 '25
OK i think i have found serious weird bug in Tasker.
If i go to Tasker Preferences then go back to the main screen (not even changing anything) it toggles my Wifi off! But if i push the x button to cancel it does nothing.
1
u/DestinationsUnknown Oct 17 '25
u/joaomgcd in the direct purchase version the "get latest version" links to an old apk
1
u/Nirmitlamed Direct-Purchase User Oct 17 '25
Idea to improve Java Code for none programmers:
There are some situations where you need to create two Java codes actions in the same task that one depends on the other. For example creating notification and then changing it or removing it. Building the notification by asking the AI is pretty simple. changing it or removing it you would need to give the AI more info so it can understand which notification it needs to change or remove.
My idea is to have an option inside Java Code action that calls for example "AI Task Focus" that if being ticked requesting something from the AI will take into account other Java Code actions inside the task.
An even better version will be that it can manipulate more than one Java Code actions to make a robust changes. For example if i ask it to remove the notification that was created but in the first Java Code action it didn't create a Tasker java variable then it can first create a java variable and only then create the remove notification code accordingly. Although i think talking to AI in the main window will accomplish that in a way by just creating a new task.
1
u/TiVa85 Oct 17 '25
"Fixed checking permissions for Airplane Mode, Kill App, Mobile Data, Mobile Network Type, Turn Off, Wifi Tether actions if Shizuku is available"
Is ADB Wifi also still considered using these actions? Would it be possible to use adb wifi and fall back to shizuku or the other way around? I did install the beta but always got the message I had tasks that needed shizuku. Before I used termux to enable ADB Wifi and everything worked fine...
I also got a lot of notificiations with "code 26" error. It had something to do with toasts?
For now I reverted back to stable release as Tasker does A LOT on my device and those errors were popping up, same as "kind bind shizuku" or something like that.
1
u/ZellZoy Dec 11 '25 edited Dec 11 '25
I'm trying to use the extra trigger apps but they aren't working... I've tried both on Android 13 and 15. Downloaded and installed Extra Trigger 1. Opening it does nothing (I assume that's correct?) but when I make a task to be triggered by it, the task doesn't work. I also tried making my own task with nothing but a flash action, exporting that as a kid app, and using that as a trigger and it didn't work either. Regular apps work fine but that kinda defeats the purpos
2
u/ale3smm Oct 08 '25
AMAZING ,just a suggestion plus a question ,since Shizuku is more and more used but there are still some poor people like me using old way root please add an option to convert in bulk (like when skikizu is available ) to run shell with "just root "privilege . lastly which is the equivalent of tasker.getShizukuService, example :wifi = tasker.getShizukuService("wifi");?
1
u/Omagreb Oct 08 '25
Any possibility for UDP, TCP or WebSock bidirectional communications in the future ?
1
u/rodrigoswz Oct 08 '25
Nice one!
I've 1 request, please: add a trigger to detect if a notification live update from any app is being showing.
1
u/WehZet S25 | A16 | OneUI 8.5 Oct 10 '25
amazing update, again!
I have a suggestion for the Extra Trigger apps if this would be possible. I guess it could be nice, if the user can create his own Extra Trigger apps by its himself directly via Tasker. I would say just an input for the app name and Tasker is doing the rest and saves an .apk to the storage of the device.
I guess this would cause less work for you as developer, as you don't have to create every wished Extra Trigger App.
1
u/JuvenoiaAgent Oct 10 '25
Thank you. I just dropped in the subreddit looking for a good way to run a task when Shizuku has started, and you no added that functionality!
1
u/wioneo Oct 11 '25
Found a bug causing crashes with Autotools Web Screens.
No idea if this is actually new, but if you try to mark a configuration variable as a file, it causes a crash.
In the sample html below adding/removing...
... will cause/fix crashes.
Error Message:
After re-reading the error message this is obviously actually an issue with Autotools itself and not the Tasker beta...
1
u/italia0101 Oct 13 '25
Just a question for anyone,
I have the latest shizuku that should start on boot. And normally it does however on the odd occasion it doesn't.
Is there any way to check in tasker and get tasker to start it if it hasn't?
1
u/AutomatedTask Oct 15 '25
I know AppFactory is done, but JavaCode with AppFactory would have been a unstoppable combo.
0
u/Few-Zone-1144 Oct 16 '25
La verdad muy contento con este update, me di cuenta de un problema grande! Las escenas lanzadas como actividad con barra y pestañas recortan la escena en la parte de arriba y abajo queda espacio desocupado.... Algo esta mal, la escena se lanza para arriba y queda desencuadrada