I have a problem with my recently purchased Tasker app. I tried posting on the official Tasker forum (https://tasker.helprace.com/s1-general/problems/top) but after I would click submit, nothing would come up. If anyone knows how to get in contact with the developers other than leaving a negative review on the Play Store that would be much appreciated.
I have a Samsung Galaxy S9 (not rooted) running whatever the latest version OS (Pie I want to say?).
I have a simple Profile setup to Connect to VPN when Wifi is connected, and Disconnect from VPN when Wifi is disconnected (as an Exit task) using the OpenVPN Tasker Plugin.
On rare occasion, everything works as expected.
Unfortunately, the majority of the time, it will indeed recognize the correct state (Wifi Connected), however, it will not connect to the VPN. When I go into Tasker, I see the Profile is green text, and if I go to More>Run Log I can see that it says something to the extent of:
"Active 2 Wifi Connected" then "Start TaskService" then "Running 3 VPN Connect" then "OK 3.1 VPN Connect.com.ffrog8.openVpnTaskerPlugin\n***\n*!" then "ExitOK 3 VPN Connect" then "Stop TaskService" (this is all in reverse order, since I think the run log puts the newest events at the top, but this is how I read them from bottom up).
Tasker even says 1 Task running on the notification bar on my lock screen. However the VPN is not connected. If I go into Tasker, turn off that profile, then turn it on again (via the toggle switch on the right hand side), the VPN will connect as expected and the run log will say the same exact thing.
Likewise for the Exit Task - when I disconnect from the network Tasker seems to recognize the state just fine (evident in Run Log and notification icon in lock screen), however my VPN remains connected (well my guess is it must disconnect for a short period as I transition from Wifi to 4g).
I have tried waiting a while to see if it's just a time issue, but I could wait hours and it will never trigger one way or the other (VPN Connect or VPN Disconnect). I have tried different Wifi networks. The Wifi State Active = "Any". In Android Settings>Apps>Tasker>Battery the toggle for "Allow background activity" is set to on, Optimize Battery Usage is set to off. Likewise for OpenVpn Tasker Plugin.
*Joao or anyone have any ideas?
Many thanks.
Troubleshooting = Because a Piece of Code went
Sorry to say that it looks like I am the 1st reply, as I have no real training in coding or programming myself.
I too recently began to play with such though with the intent to install it on some family member's devices ? However, like you I have not been able to get my desired automation regular enough to share it. When I 1st downloaded Tasker (I think) it had something about a "community" to share & get help with as well as more.
Trying to be helpful I ran a quick search for the specific site & as usual, Google had to go overboard with the results. Still hoping this will help you sooner as they all focus on that particular program:
https://community.home-assistant.io/t/tutorial-using-the-new-auth-system-with-tasker/82423
Just wondering if all the changes to Android OS as a whole may also have an affect on something minor such as whatever we choose to do with "automation" programming? Have seen throughout various post's & news that sort of thing....
for any other poor soul with the same problem, I read a couple of obscure comments on the interweb that the OpenVPN plugin for Tasker is no longer functioning, and all must be run through the Open VPN Connect app (NOT Open VPN for Android app) using intents. I found a guide once, and am testing it now and will report back if it works more reliably. Thank you Lone wolf for your reply.
just to update the poor souls, using intents like I said seems to work more reliably in terms of connecting to VPN. The only problem is if you go out of wifi range, it disconnects, but then are back within wifi range quickly (like somewhere with bad wifi signal), it will not connect again for some reason.
Related
Hi,
Don't know if anyone else is experiancing this but i have activesync push email active and set to "as items arrive" and my peak times set up. When the end of day peak time comes round the mail stops syncing which is by design and cool but the 3G/GPRS data conection stays active (small icon on the signal bars). I have searched around but found nothing, basically i want to schedule the data connection to disconnect at the end of the day, and actually kill the open 3G connection...
Any ideas...?
I've looked at a few bits of software but currently it seems that all thats on offer is disconnect after x mins of inactivity or just disconnect after x mins, this is not really what im after and also these settings kills the similtanious voice and data connection which i don't want either....
If not i may look at writing this myself....
Try commgr pro @ www.commmgrpro.com. It's a fantastic program.
RK
thanks for the suggestion, had another look around and this one is far the best and does exactly what i want it to do: (active sync been running allday/as items arrive via push email) stopping as per schedule in AS at 18:30 then at 18:35 kill/disconnect the gprs connection using this software via the device - #disconnect command, sweet
http://s-k-tools.com/index.html?skschema/m_skschema.html
Hi _DrG_,
I totally agree with you about skschema . Its a great software that do just what i want, that is save my battery for example the night by deactivate the GSM (3G for Pushmail too).
Just a question: how do you deactivate only DataConnection but not GSM? Do you succeed in doing that? OR do you deactivate GSM so pushamil doesn't work ?
Thanks for your answer.
I'd use the reg file in this post I created earlier
http://forum.xda-developers.com/showthread.php?t=355742
Some of the more popular Profile Switchers ... like Phone Weaver (and probably PhoneAlarm) can do this.
For example I have a Night profile that turns on at 11:30pm that mutes the alert volume, lowers the phone ringer, dims the screen, and shuts off Push Mail.
At 5:30am the Day profile kicks in and turns everything back on.
From a communications standpoint PhoneWeaver can control Wifi, Bluetooth, Phone Radio, Push email, Default Internet Connection, and the cellular data connection.
check it out.
I also use PhoneWeaver to do this - great little app which also puts my phone onto vibrate during meetings etc.
Media Net Disconnect Program
Hello, I found these two programs to manually connect and disconnect from your network. I love the DataConnector program because it only requires you to launch the program and it takes care of the rest. The DataDisconnect, on the other hand, requires you to launch the program, select the network you want to disconnect, then press disconnect. I am using WisbarAdvanceDesktop2 and would like to be able to write a script that will launch dataconnector, update the weather (or whatever else), and then launch datadisconnect. I am hoping that someone here knows of a hands-off program that only requires the single tap of the execution file to disconnect from the network, or who could hack the datadisconnect program and make it hands-off.
Any help is appreciated.
Thanks,
khoury4
View attachment DataConnector.zip
View attachment DataDisconnect.zip
suggestion
khoury4 said:
Hello, I found these two programs to manually connect and disconnect from your network. I love the DataConnector program because it only requires you to launch the program and it takes care of the rest. The DataDisconnect, on the other hand, requires you to launch the program, select the network you want to disconnect, then press disconnect. I am using WisbarAdvanceDesktop2 and would like to be able to write a script that will launch dataconnector, update the weather (or whatever else), and then launch datadisconnect. I am hoping that someone here knows of a hands-off program that only requires the single tap of the execution file to disconnect from the network, or who could hack the datadisconnect program and make it hands-off.
Any help is appreciated.
Thanks,
khoury4
View attachment 102725
View attachment 102726
Click to expand...
Click to collapse
Hi,
maby an app i use it's exactly what you are looking for. With this app you can schedule everything about your connection: it allows you at what time your mobile data/wifi/flight mode must be turned on/off.
The name of the app is connection commander
Hope this help
Does anyone know exactly what is causing this problem because it continues to happen across different ROMs and different Radios. Is there some fundamental reason why the X1 can't maintain a connection with IM clients?
I'm on T-mobile in the UK and running the valkyrie_V3 WWE ROM. Windows live messenger will disconnect if i put the phone into standby for as little as a minute and sometimes even when I'm in the middle of messaging. I keep getting messages saying "wireless connection not available trying to reconnect" or something similar.
I've tried IM+ and while that doesn't give disconnection messages it's doing the same thing as i have tested it using different accounts.
I can't get ebuddy working on this ROM because it won't let me enter the password for some odd reason but that has had the same problem with other ROMS in the past.
Has anyone found a solution to this or is it something to do with T-mobile settings?
I should point out that throughout all this i maintain a good signal of at least 2 bars and according to the phone the data connection hasn't dropped.
Any advice is appreciated, thanks.
i used to use AOL's own mobile-based IM/chat client for AIM, and it always kept me connected without problems no matter what. only problem was it was INSANELY slow.
i've switched to slick, which i'm not crazy about, and i'm having the same problems as you. i'll randomly get disconnected with the phone sitting with full HSDPA reception, not going into sleep or standby....i thought it was just slick's crappy programming
Which network are you on?
Also are you 100% sure AOL used to stay connected because i thought the same thing about IM+ but a lot of my messages weren't getting returned. I signed into 2 different accounts, one on PC one on phone to test and it turned out the same thing was happening just not as obviously.
This is really frustrating, my old K800i used to stay connected to windows live for days at a time, my friends blackberry also has no trouble staying connected.
i too have the same problem, we need the xda gurus to fix this, hopefully they would be able to do so in the near future
Solaris81 said:
Which network are you on?
Also are you 100% sure AOL used to stay connected because i thought the same thing about IM+ but a lot of my messages weren't getting returned. I signed into 2 different accounts, one on PC one on phone to test and it turned out the same thing was happening just not as obviously.
This is really frustrating, my old K800i used to stay connected to windows live for days at a time, my friends blackberry also has no trouble staying connected.
Click to expand...
Click to collapse
pretty sure it was connected constantly. i had some pretty lengthy text sessions and i never got any error messages (IM not received, user not on, signed off, etc). i mean, i can never be 100% sure, but pretty sure. i only used it fo ra couple weeks before getting rid of it, it was creeping death slow for some reason
I'm too really desperate for a solution to this problem. My device is a HTC Touch Pro2 running Windows Mobile 6.5.
The case is that I will launch a new business site in just a few weeks whos customers are for the biggest part young intellectuals more often than seldomly really integrated with the modern IT-development. Hence I've always wanted to add the Windows Live messenger plugin to the site so that our customers can have a live chat completly anonymously without having their IP traced and logged which is the case for the markets paid services. Furthermore, the msn live plugin is completly ad free and doesn't cost a penny. The paid services out there that other corporations use for their live chat often comes with an URL to the host even though the customer are paying for their live chat module. The most important part though, is that I can bring with me Windows Live Messenger wherever I go which for the most part is a complex and not even that usual solution in the paid service segment. I think you can understand my problem now =) I'm just desperate to have my live messenger in the phone ALWAYS and ALWAYS stay connected.
For an example of the plugin I'm refering too have a look at my personal website:
martinandersson.com
A little more specific information describing what really happens with my device:
Windows Live version: 10.7.0061.0500.2000. Language: Swedish (Also the language of my OS).
I am running the client non-exclusivly. It always stays in the taskbar and never quit on me unlike what happens to programs that stay open running in the background for a longer period of time. In that way, it works great.
The main Windows Live window's (which are displayed and runned as a seperate program) options/settings are set to sync my e-mail although the frequency are set to "manual" and the other options below this drop box are for some reason greyed out. I guess this has to be interpreted as if live doesn't sync my mail at all, which I like being that I do not have an hotmail account or need this feature in any way.
The status of my phone always always show two small 3G icons (one just '3G' and one '3G' above a meter) and if I click in this field I see a ticking clock which shows that it is indeed connected to internet ever since my phone's last reboot. This has never been in any other way. Still, I did download the DiamondTweak and enabled the "internet always on" feature, but again, I do not think that really was the issue and from what I can tell, the DiamondTweak just hasn't made any difference at all.
One detail of great importance is this; Whenever I browse the internet, update my rss feeds or switch to the messenger contact list window through the taskbar, the 3G symbols changes to display an H. That tells me that this "H" must show for the phone to have a "real" internet connection? Could this be the trick, one has to find a fix to always have the H show? If that would be the case, I just can't understand why the phone says it is indeed connected to the internet when there's just a 3G-symbol in the status. Anyways..
Even though the messenger dies completly and just as what this threads owner wrote, shows a "wireless connection lost" message when I swich to its contact list window, it sometimes live for quite a while. The thing is that it just doesn't get the message instantly. The phone can be in standby mode (really haven't figured that thing out, everybody keeps saying "standby" mode but for what I can tell all that happens is that the display goes of) for sure, and then I write myself a message through the live chat plugin on my site but it takes about 6 to 10 minutes for the phone to give a sound and notice me of this message. And again, for the most part the live messenger doesn't stay alive for that long, the sites plugin goes offline and then if I turn the phone's display on and access the live messenger it says that the wireless connection has been lost and reconnects.
Moreoever, it never gets my plugin to go back online either. For that part to happen, I have to first get online with a desktop client and then again login with my phone. For if I stay online with the desktop client, the phone's client is indeed alive, but won't receive any messages. I have to reconnect with my phone so that my desktop client gets thrown out. But of course, is just a matter of time before my live chat module and my phone's client gets offline and I have to do everything over again. The really annoying part is that the phone's client dies a long time before the site's plugin catch up and goes offline. Hence I might loose a lot of customers who think they are chatting with me but never get a reply.
Given the description above, I think the problem really is that live messenger doesn't ping or talk with its server that often, IF the phone is in standby mode. If it isn't, if the display is turned on, I recieve my messages instantly and everything works just fine. Sure there must be an easy fix for this problem, a small edit to be done in a config file somewhere?
All help and all problem experience is much appreciated.
Ok, It seems WP7 won't set wifi to 'always on' unless the device is plugged in. This drives me nutts when using htpc remote apps on my phone and just seems like an obvious feature to build in to the OS. I understand MS's 'battery life' reasoning initially, but there should be an easy way for power users to manipulate this setting...amirite??
Has anyone found a way/hack/regedit to manually set this? Or maybe a lesser known app floating about the interwebz you might care to share with us
Thanks,
-n
I add my voice to yours. Such a simple yet needed feature that needs to be addressed.
download the latest versionof skype from the marketplace, open tthe app and set up yr acccount, make a call, and minimise the app ...
the wifi will stay on
when u move away from the wifi area and try to make a call to skype, skype starts to use 3G and the wifi will turn off ( back to default behaviorur)
I use a special application (Blackberry Enterprise Server) on Android and I've had problems with disconnects.
The application opens a VPN back to the network to push email and notifications to the phone. The whole idea of this application is security (VPN) and always on for notifications, email, calendar etc.
So on Marshmallow the app disconnects after an hour or so (closes down the VPN) and won't receive anything until you wake the phone back up again. Totally broken as far as I'm concerned. Happens on my S6 Active and a Blackberry Priv. BB Support sheepishly admits that its a problem and says their workaround is to keep the phone plugged into a charger and the VPN won't disconnect. Total crap!!! They also told me the problem would be fixed on Nougat which would allow them to get to the app and disable the power saving feature for that app which is causing it to disconnect. OK, some hope.
In the meantime I find this app in the play store called "disable doze" and put it on my BB Priv. It stops doze from kicking in and shutting down the VPN. On the priv it actually works. Now my VPN stays connected all the time like it should. I'm ecstatic! I try it on my S6A and it doesn't work. Still getting the VPN disconnected. Bummed because I really like the S6A and want to use that as my DD.
So I come here to XDA and see the NOUGAT beta for S6A and get all excited. I flash it to my phone and set up BB Software. Now I find that the wifi shuts down after 5 minutes on Nougat. I read tons of threads about wifi turning off after 5 minutes disregarding the "always keep wifi on" setting in nougat. So far no way that I can see to get wifi to stay connected.
WTF!!! I totally understand all the power saving stuff to extend battery life, but they put provisions in there to allow those who need to be able to disable. WHY ISN'T IT WORKING? Is this related to the S6A or is it across all hardware? I don't have anything else on Nougat to test.
Any ideas on what else I could try. Love that S6A but if it's not going to stay connected I just can't use it.
Roveer
Nougats in beta right now for the S6A, this isn't official firmware.
I understand its beta, but flaw like this always seem to find their way into the final builds. I'm reading threads all over the place (not just S6A) about this issue so I don't think it's just a beta thing. I'm not sure I understand why if there is a setting in the wifi to keep it on _always_ including sleep / doze etc that it basically does NOT do that.
I have dificulty understanding the "IF" logic.
I tried to turn off WiFi when the screen turns dark only if I am NOT connected to a WiFi hotspot
I know I can do it by creating two profiles and querying their state, but I thought IF should also work, turns out it does not and I'd like to know why it doesn't
So I thought I'd just trythe IF condition in the task and configure a task that tells me the value of the variable %WIFII by popping up the info, but as you can see in the attached screenshots, WiFi is turned off even allthough the variable has a content matching *CONNECTION*
my phone is a rooted Xperia Z3c running 23.5.A.1.291 stock sony firmware
Any thoughts welcome
_Agility_ said:
I have dificulty understanding the "IF" logic.
I tried to turn off WiFi when the screen turns dark only if I am NOT connected to a WiFi hotspot
I know I can do it by creating two profiles and querying their state, but I thought IF should also work, turns out it does not and I'd like to know why it doesn't
So I thought I'd just trythe IF condition in the task and configure a task that tells me the value of the variable %WIFII by popping up the info, but as you can see in the attached screenshots, WiFi is turned off even allthough the variable has a content matching *CONNECTION*
my phone is a rooted Xperia Z3c running 23.5.A.1.291 stock sony firmware
Any thoughts welcome
Click to expand...
Click to collapse
2 things:
- maybe 10s is not long enough? have you tried 20?
- on screen off, Android does not seem to always be able to create a Wi-Fi connection successfully.
I have this problem myself, trying to auto turn on Wi-Fi and connect when I get home.
You can try having this run on screen on (even while locked) to test this.
Maybe someone with better knowledge of how Android system works would have a solution for this?
Thank you for your reply
Screenshots show that the WiFi connection is established successfully, I am trying to find out why some variables can bei used in the if query and others cannot
Regarding your Problem, you could try adding a wake up command at the beginning of your task. I use display dim for this purpouse (needs the secure settings or equivalent plugin)