Closing a popup by clicking on "NO" - multiple times

Post your questions and help other users.

Moderator: Martin

Post Reply
biggie123
Posts: 8
Joined: 30 Aug 2016 21:18

Closing a popup by clicking on "NO" - multiple times

Post by biggie123 » 31 Aug 2016 13:51

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


Image
Image

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Closing a popup by clicking on "NO" - multiple times

Post by Martin » 01 Sep 2016 18:50

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

biggie123
Posts: 8
Joined: 30 Aug 2016 21:18

Re: Closing a popup by clicking on "NO" - multiple times

Post by biggie123 » 01 Sep 2016 22:35

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?

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Closing a popup by clicking on "NO" - multiple times

Post by Ankit Bindal » 03 Sep 2016 10:49

Hey do you have an rooted device??

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Closing a popup by clicking on "NO" - multiple times

Post by Ankit Bindal » 03 Sep 2016 10:56

You could try to use action Execute Root Command: input tap <x> <y> (on a rooted device)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Closing a popup by clicking on "NO" - multiple times

Post by Martin » 03 Sep 2016 12:12

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?

biggie123
Posts: 8
Joined: 30 Aug 2016 21:18

Re: Closing a popup by clicking on "NO" - multiple times

Post by biggie123 » 03 Sep 2016 15:05

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:

Image

Image

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Closing a popup by clicking on "NO" - multiple times

Post by Ankit Bindal » 04 Sep 2016 02:36

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.

biggie123
Posts: 8
Joined: 30 Aug 2016 21:18

Re: Closing a popup by clicking on "NO" - multiple times

Post by biggie123 » 04 Sep 2016 15:33

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!

Post Reply