Page 1 of 1
Closing a popup by clicking on "NO" - multiple times
Posted: 31 Aug 2016 13:51
by biggie123
On opening, Tinder has an annoying popup that asks for Wifi access: 'Improve location accuracy?'
Upon clicking, it pops up again. Anything between 5 and 10 times.
I've tried using
UI Event > Window Opened > Package Name > Text > Contains Text 'Improve location accuracy?'
Control UI > Script > text = getText(908, 1753);click(908, 1753)
But it's not working. Could anyone please help out and tell me what I'm doing wrong?
Thank you

Re: Closing a popup by clicking on "NO" - multiple times
Posted: 01 Sep 2016 18:50
by Martin
The dialog is likely displayed by Google Play services. Following configuration could work:
-Trigger UI Event
Event Type: Window opened
Package Name: com.google.android.gms
Text: contains text: Use location
-Action Control UI: click("NO");
You could also turn on WiFi scanning in system settings->Location->Menu->Scanning: enable Wi-Fi scanning, which probably also avoids that the dialog is displayed.
Regards,
Martin
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 01 Sep 2016 22:35
by biggie123
Thanks for your reply, Martin
Tried your suggestion and it doesn't seem to work; the popup is not closing.
I prefer to keep Wifi scanning disabled. Tinder ignores disabled Wifi scanning in location services - the popup always asks for it to be enabled with the 'Improve location accuracy?' prompt.
Any other ideas?
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 03 Sep 2016 10:49
by Ankit Bindal
Hey do you have an rooted device??
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 03 Sep 2016 10:56
by Ankit Bindal
You could try to use action Execute Root Command: input tap <x> <y> (on a rooted device)
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 03 Sep 2016 12:12
by Martin
Please also check if the flow is executed at all by adding an action Vibrate or Notification on Screen to the flow. It seems that the title of the dialog is not the same on my device/the app I've tested with. Does it work when you change the text Use location to Improve location accuracy?
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 03 Sep 2016 15:05
by biggie123
Okay, a little progress. Yes, my device is rooted.
Adding the vibration confirms that the flow is active, but it's only partially working. Ordinarily, the location popup happens between 10 and 20 times when I open Tinder. It seems the script is sometimes working, because when I manually click on the "NO" with the script active, the location prompt *only* pops back up 4/5 times now.
Added the root command, but not sure if it's correct:

Re: Closing a popup by clicking on "NO" - multiple times
Posted: 04 Sep 2016 02:36
by Ankit Bindal
You should either use control UI or Execute Root Command.
You should use sleep of 2 sec after every action and trigger.
Remove <> from cordinates of execute root command.
Re: Closing a popup by clicking on "NO" - multiple times
Posted: 04 Sep 2016 15:33
by biggie123
Many thanks Ankit
The 'root' method works perfectly. The location request now pops up only 3 or 4 times and is automatically closed by the flow, so no more clicking!