{"action":"created","issue":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/986","repository_url":"https://api.github.com/repos/Samsung/GearVRf","labels_url":"https://api.github.com/repos/Samsung/GearVRf/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/GearVRf/issues/986/comments","events_url":"https://api.github.com/repos/Samsung/GearVRf/issues/986/events","html_url":"https://github.com/Samsung/GearVRf/issues/986","id":195210475,"number":986,"title":"Correctly handling back button for release","user":{"login":"JacobLawtonClaro","id":16190345,"avatar_url":"https://avatars.githubusercontent.com/u/16190345?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobLawtonClaro","html_url":"https://github.com/JacobLawtonClaro","followers_url":"https://api.github.com/users/JacobLawtonClaro/followers","following_url":"https://api.github.com/users/JacobLawtonClaro/following{/other_user}","gists_url":"https://api.github.com/users/JacobLawtonClaro/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobLawtonClaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobLawtonClaro/subscriptions","organizations_url":"https://api.github.com/users/JacobLawtonClaro/orgs","repos_url":"https://api.github.com/users/JacobLawtonClaro/repos","events_url":"https://api.github.com/users/JacobLawtonClaro/events{/privacy}","received_events_url":"https://api.github.com/users/JacobLawtonClaro/received_events","type":"User","site_admin":false},"labels":[{"id":191655399,"url":"https://api.github.com/repos/Samsung/GearVRf/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T10:07:47Z","updated_at":"2016-12-13T22:35:25Z","closed_at":null,"body":"To publish your app you need to be able to press the back button for 0.75 to activate the Universal Menu and less than 0.75 \"must back out one level in your UI. If already at the top level of your UI, prompt the user to return to Oculus Home.\" \r\n\r\nI have been using immersivepedia demo as the base for my code which handles opening the Universal menu correctly but when I want to swap back to the menu by just pressing the back button it always triggers the \"Oculus Home\" prompt instead of backing out to the last scene. \r\n\r\nIs there a demo which handles the back button correctly, e.g. pick up when it has been short pressed and then call the correct logic either stating the \"Oculus Home\" or showing the main sence?"},"comment":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/comments/266884079","html_url":"https://github.com/Samsung/GearVRf/issues/986#issuecomment-266884079","issue_url":"https://api.github.com/repos/Samsung/GearVRf/issues/986","id":266884079,"user":{"login":"liaxim","id":11889541,"avatar_url":"https://avatars.githubusercontent.com/u/11889541?v=3","gravatar_id":"","url":"https://api.github.com/users/liaxim","html_url":"https://github.com/liaxim","followers_url":"https://api.github.com/users/liaxim/followers","following_url":"https://api.github.com/users/liaxim/following{/other_user}","gists_url":"https://api.github.com/users/liaxim/gists{/gist_id}","starred_url":"https://api.github.com/users/liaxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liaxim/subscriptions","organizations_url":"https://api.github.com/users/liaxim/orgs","repos_url":"https://api.github.com/users/liaxim/repos","events_url":"https://api.github.com/users/liaxim/events{/privacy}","received_events_url":"https://api.github.com/users/liaxim/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T22:35:25Z","updated_at":"2016-12-13T22:35:25Z","body":"Hi. This is not something that could be handled entirely on the app side. I drafted a framework change that adds a onBackPress method to GVRScript/GVRMain for this very purpose. The change will need some additional testing but should let you proceed as-is. Will create a patch for whichever version of the framework you use.\r\n\r\nFramework change: https://github.com/Samsung/GearVRf/pull/987\r\nChange to gvr-immersivepdia: https://github.com/gearvrf/GearVRf-Demos/pull/388"}}
{"actor":{"display_login":"liaxim"}}