Shoprite is a chain of grocery stores in the Northeast. They now have a special iOS app where you can scan your own groceries as you shop. When you leave, you simply pay for what was already scanned and skip the checkout line.

In order to use the app, you must be logged into the Shoprite WiFi network. However, every time I do that, I get an immediate notification from Google that says

Google Account xxxxxx Suspicious login detected. See google.com/blocked

The link goes to a webpage that says:

We blocked an application from signing in to your account

We recently denied a sign-in attempt from an application (like an email or chat client) or a mobile device because we weren’t sure it was really you. To prevent unauthorized access to your account, Google notifies you via email and/or SMS when we notice this type of suspicious sign-in attempt.

After that, my Gmail account is locked, and I have to request a text message to unlock it.

This is really strange since my Shoprite account doesn't have anything to do with my Google account. I have seen absolutely nothing on the Internet about this, and neither Google or Shoprite seem able to tell me exactly what is going on.

I have no idea why this is happening, and I thought maybe someone here can explain it to me. There are two explanations I can think of:

  1. Shoprite is attempting to access my Google account. They're a pretty big public company, and I can't imagine them surreptitiously doing something like this.
  2. My iPhone is attempting to access my Gmail while on Shoprite's WiFi, but why would that matter to Google? I've connected to other WiFi networks around (Amtrak, Starbucks, Cablevision, etc.) and Google doesn't care about those. Besides, the app that's accessing my Gmail account would be my iPhone's Mail.app which has been setup to do just that.

Any ideas what is going on?

  • Most likely the IP address of the ShopRite Wi-Fi network is far enough away from where you normally appear to be to Google that they are taking a security precaution. The notification could be much better-worded to make it clear it's not necessarily the client that's at issue so much as your location (and/or whatever other factors they're using to make the determination). Dave's answer seems to address how to avoid this going forward.
    – tubedogg
    Commented Aug 19, 2013 at 18:39
  • @tubedogg So, it's my iPhone attempting to contact my Gmail account that's causing the problem? It's something I could test: Turn off my mail and try it again. If this is what it is, I'm surprised I haven't seen this before. Last week, I used Amtrak's WiFi for the first time, and got nothing like this. Yet, as soon as I connect, I get this message.
    – David W.
    Commented Aug 19, 2013 at 21:51
  • Yes, your iPhone attempting to sign-in to Google/Gmail would trigger this, if the sign-in attempt fails whatever security checks Google runs. The test you suggest is a good idea as it will narrow down the problem. The other thing is to check the Recent Activity in your Gmail account as suggested by Dave below, as it should show these access attempts.
    – tubedogg
    Commented Aug 19, 2013 at 22:12

2 Answers 2


I have had similar issues with Google. I connect to Google services in the background from what Google sees as a "new location". So, when I sign in from what it deems as an unusual location, I see these entries in my Recent Activity :

enter image description here

When I verify that it was me "by clicking the "Yes, that was me!" button, the next time I connect, I no longer get the security notifications. This seems to remediate the issue, but it doesn't explain to me why I'm getting the notifications in the first place. (I haven't been able to track down an explanation, only a way to get rid of the notifications.)


I've pinned this down to my iPhone accessing my Gmail account via the Mail.app. There are two separate Gmail accounts on my phone. However, the one getting locked was the one I had setup as a IMAP account. I did this to hide the fact it's a Gmail account. I use my own email address, and simply use Gmail as a back end.

Turning off this IMAP account before accessing the Shoprite WiFi prevented the notice from Google, and after shopping and getting off the Shoprite WiFi, I was able to turn on my mail account without things being locked.

Something about the IMAP process and using Shoprite WiFi caused the issue. No other WiFi I've signed on have caused it. However, it is definitely the Mail.app accessing my Gmail account via IMAP that triggered it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .