google / physical-web

The Physical Web: walk up and use anything
http://physical-web.org
Apache License 2.0
5.99k stars 665 forks source link

Still see the beacons in the notification tray when bluetooth is off and app is closed #574

Open winster opened 8 years ago

winster commented 8 years ago

In android, even if bluetooth is off and app is closed, I can still see the beacons (which I saw in the app earlier) in the notification tray when near to beacons

How does it work? Does it simply show the beacons from the cache?

scottjenson commented 8 years ago

If you're seeing that behavior now, that is a 'stale data' bug (which we know about and are fixing for Chrome DEV. The goal is to only show you beacons that are actually nearby.

mmocny commented 8 years ago

@winster I expect you mean the Physical Web app, not Chrome Dev? You can see when/how we update the notification here.

I believe we do not clear/update the notification except in response to a BLE scan, which will happen in response to screen-on, but only if you have Bluetooth enabled.

So as you describe, if you scanned in the past and then disabled BT you will see an old notification.

Curious, what would you prefer in this situation?:

Thanks!

winster commented 8 years ago

@mmocny yes, I was referring to PhysicalWeb. Let me explain.

  1. I scanned the beacons with app.I could see the beacon notifications in the tray.
  2. I disabled bluetooth, closed the app and removed the notifications from tray
  3. After locking and unlocking, I can still see the beacon notifications in the tray (I was close to beacons)
  4. I removed the notifications from the tray.
  5. I moved to a distance far from beacons; locking and unlocking, does not show anything in tray.

What does this mean?

Well, as an end user I do not want to see the notification again once it is removed from the tray (I dont mind as it is not really a push notif); but in some cases, I could have accidentally removed a notif; may be a warning before removal will be better. Just like, do you want to permanently remove this beacon?

kanodia commented 8 years ago

HI

Even I see the notifications again even if i close it from the notification panel when I use the physical web app.

One reason that I could think of was that the eddystone beacon is continuously transmitting signals (URL's) at a frequency of 1-2 seconds. So, even if we close the notification, physical web will receive another signal in no time and hence the notifications are displayed again.

Though, I do not have any data or proof to back my statement, it is just a hypothesis that I have created.

Thank You

Regards

Abhishek Kanodia Under Graduate Student BITS Pilani

On 1 December 2015 at 12:06, winster notifications@github.com wrote:

@mmocny https://github.com/mmocny yes, I was referring to PhysicalWeb. Let me explain.

  1. I scanned the beacons with app.I could see the beacon notifications in the tray.
  2. I disabled bluetooth, closed the app and removed the notifications from tray
  3. After locking and unlocking, I can still see the beacon notifications in the tray (I was close to beacons)
  4. I removed the notifications from the tray.
  5. I moved to a distance far from beacons; locking and unlocking, does not show anything in tray.

What does this mean?

Well, as an end user I do not want to see the notification again once it is removed from the tray (I dont mind as it is not really a push notif); but in some cases, I could have accidentally removed a notif; may be a warning before removal will be better. Just like, do you want to permanently remove this beacon?

— Reply to this email directly or view it on GitHub https://github.com/google/physical-web/issues/574#issuecomment-160870855 .

mmocny commented 8 years ago

If you do not turn off bluetooth nor disable PhysicalWeb notifications, then swiping a notification will not prevent new ones from coming when we find new beacons. This is by design.

However, I am surprised that this happens if you disable bluetooth, then swipe away the notification. This seems like a bug.

On Tue, Dec 1, 2015 at 1:42 AM kanodia notifications@github.com wrote:

HI

Even I see the notifications again even if i close it from the notification panel when I use the physical web app.

One reason that I could think of was that the eddystone beacon is continuously transmitting signals (URL's) at a frequency of 1-2 seconds. So, even if we close the notification, physical web will receive another signal in no time and hence the notifications are displayed again.

Though, I do not have any data or proof to back my statement, it is just a hypothesis that I have created.

Thank You

Regards

Abhishek Kanodia Under Graduate Student BITS Pilani

On 1 December 2015 at 12:06, winster notifications@github.com wrote:

@mmocny https://github.com/mmocny yes, I was referring to PhysicalWeb. Let me explain.

  1. I scanned the beacons with app.I could see the beacon notifications in the tray.
  2. I disabled bluetooth, closed the app and removed the notifications from tray
  3. After locking and unlocking, I can still see the beacon notifications in the tray (I was close to beacons)
  4. I removed the notifications from the tray.
  5. I moved to a distance far from beacons; locking and unlocking, does not show anything in tray.

What does this mean?

Well, as an end user I do not want to see the notification again once it is removed from the tray (I dont mind as it is not really a push notif); but in some cases, I could have accidentally removed a notif; may be a warning before removal will be better. Just like, do you want to permanently remove this beacon?

— Reply to this email directly or view it on GitHub < https://github.com/google/physical-web/issues/574#issuecomment-160870855> .

— Reply to this email directly or view it on GitHub https://github.com/google/physical-web/issues/574#issuecomment-160872284 .