{"action":"created","issue":{"url":"https://api.github.com/repos/google/physical-web/issues/592","repository_url":"https://api.github.com/repos/google/physical-web","labels_url":"https://api.github.com/repos/google/physical-web/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/google/physical-web/issues/592/comments","events_url":"https://api.github.com/repos/google/physical-web/issues/592/events","html_url":"https://github.com/google/physical-web/issues/592","id":134176985,"number":592,"title":"How to have iOS version use notifications not widgets","user":{"login":"scottjenson","id":1055674,"avatar_url":"https://avatars.githubusercontent.com/u/1055674?v=3","gravatar_id":"","url":"https://api.github.com/users/scottjenson","html_url":"https://github.com/scottjenson","followers_url":"https://api.github.com/users/scottjenson/followers","following_url":"https://api.github.com/users/scottjenson/following{/other_user}","gists_url":"https://api.github.com/users/scottjenson/gists{/gist_id}","starred_url":"https://api.github.com/users/scottjenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottjenson/subscriptions","organizations_url":"https://api.github.com/users/scottjenson/orgs","repos_url":"https://api.github.com/users/scottjenson/repos","events_url":"https://api.github.com/users/scottjenson/events{/privacy}","received_events_url":"https://api.github.com/users/scottjenson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-17T04:43:23Z","updated_at":"2016-02-18T14:27:45Z","closed_at":null,"body":"Our current version of the Physical Web on iOS was forced to use a widget because we \r\n\r\na) wanted a simpler way to scan for beacons (only when the widget is shown)\r\nb) Had issues getting things to work properly with notifications\r\n\r\nIt's clear that the UX for the our iOS is less than idea as most people just don't use widgets in the TodayView. We'd like feedback from any iOS developers out there on ways we could get this to work without a widget. Here is what we need:\r\n\r\n1) a way to scan for beacons that doesn't use much power. We'd like to only scan when the screen is first turned on. We think scanning constantly while in the pocket would just waste battery.\r\n\r\n2) Show a notification when a beacon is found. We need to remove the notification if the beacon goes away. \r\n   - Imagine waking up the phone at 1:00pm and finding a beacon and posting a notification. \r\n   - Assume the user does nothing and puts the phone to sleep\r\n   - at 2:00pm the user wakes the phone and no beacons are found\r\n   - Clear the old beacon as it is no longer valid\r\n\r\nCurious if anyone has any suggestions on best ways to do this."},"comment":{"url":"https://api.github.com/repos/google/physical-web/issues/comments/185744873","html_url":"https://github.com/google/physical-web/issues/592#issuecomment-185744873","issue_url":"https://api.github.com/repos/google/physical-web/issues/592","id":185744873,"user":{"login":"stopsatgreen","id":98774,"avatar_url":"https://avatars.githubusercontent.com/u/98774?v=3","gravatar_id":"","url":"https://api.github.com/users/stopsatgreen","html_url":"https://github.com/stopsatgreen","followers_url":"https://api.github.com/users/stopsatgreen/followers","following_url":"https://api.github.com/users/stopsatgreen/following{/other_user}","gists_url":"https://api.github.com/users/stopsatgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/stopsatgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stopsatgreen/subscriptions","organizations_url":"https://api.github.com/users/stopsatgreen/orgs","repos_url":"https://api.github.com/users/stopsatgreen/repos","events_url":"https://api.github.com/users/stopsatgreen/events{/privacy}","received_events_url":"https://api.github.com/users/stopsatgreen/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T14:27:45Z","updated_at":"2016-02-18T14:27:45Z","body":"Quick question about this:\r\n\r\n> most people just don't use widgets in the TodayView\r\n\r\nIs that general usage, or specifically from the implementation of PW in Chrome? That is, is it generally something that users don’t do at all, or a question of educating / demonstrating how to do it for Chrome?"}}