{"action":"created","issue":{"url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/138","repository_url":"https://api.github.com/repos/google-ar/arcore-unity-sdk","labels_url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/138/comments","events_url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/138/events","html_url":"https://github.com/google-ar/arcore-unity-sdk/issues/138","id":304962301,"number":138,"title":"Session.CheckApkAvailability never returns","user":{"login":"ryan-motive","id":20877489,"avatar_url":"https://avatars0.githubusercontent.com/u/20877489?v=4","gravatar_id":"","url":"https://api.github.com/users/ryan-motive","html_url":"https://github.com/ryan-motive","followers_url":"https://api.github.com/users/ryan-motive/followers","following_url":"https://api.github.com/users/ryan-motive/following{/other_user}","gists_url":"https://api.github.com/users/ryan-motive/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-motive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-motive/subscriptions","organizations_url":"https://api.github.com/users/ryan-motive/orgs","repos_url":"https://api.github.com/users/ryan-motive/repos","events_url":"https://api.github.com/users/ryan-motive/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-motive/received_events","type":"User","site_admin":false},"labels":[{"id":673435861,"url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-13T22:44:56Z","updated_at":"2018-03-20T14:50:45Z","closed_at":null,"author_association":"NONE","body":"Running on an HTC U11 with Android 7.1.1. I'm making a call to Session.CheckApkAvailability, but \"ThenAction\" never gets called. I've put several log messages throughout LifecycleManager, including \"OnCheckApkAvailabilityResultTrampoline\", but they are never called either."},"comment":{"url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/comments/374626181","html_url":"https://github.com/google-ar/arcore-unity-sdk/issues/138#issuecomment-374626181","issue_url":"https://api.github.com/repos/google-ar/arcore-unity-sdk/issues/138","id":374626181,"user":{"login":"Edorne","id":37262687,"avatar_url":"https://avatars2.githubusercontent.com/u/37262687?v=4","gravatar_id":"","url":"https://api.github.com/users/Edorne","html_url":"https://github.com/Edorne","followers_url":"https://api.github.com/users/Edorne/followers","following_url":"https://api.github.com/users/Edorne/following{/other_user}","gists_url":"https://api.github.com/users/Edorne/gists{/gist_id}","starred_url":"https://api.github.com/users/Edorne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edorne/subscriptions","organizations_url":"https://api.github.com/users/Edorne/orgs","repos_url":"https://api.github.com/users/Edorne/repos","events_url":"https://api.github.com/users/Edorne/events{/privacy}","received_events_url":"https://api.github.com/users/Edorne/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T14:50:45Z","updated_at":"2018-03-20T14:50:45Z","author_association":"NONE","body":"I found it with czpublic help: this Code is Ok with Unity and tested on Samsung Galaxy S7 edge:\r\nAll you need is to call StartCoroutine(CheckCompatibility()); from Start method (_ShowAndroidToastMessage method taken from ComputerVisionController class)\r\n\r\nprivate IEnumerator CheckCompatibility()\r\n {\r\n     AsyncTask<ApkAvailabilityStatus> checkTask = Session.CheckApkAvailability();\r\n     CustomYieldInstruction customYield = checkTask.WaitForCompletion();\r\n     yield return customYield;\r\n     ApkAvailabilityStatus result = checkTask.Result;\r\n     switch (result)\r\n     {\r\n         case ApkAvailabilityStatus.SupportedApkTooOld:\r\n             _ShowAndroidToastMessage(\"Supported apk too old\");\r\n             break;\r\n         case ApkAvailabilityStatus.SupportedInstalled:\r\n             _ShowAndroidToastMessage(\"Supported and installed\");\r\n             break;\r\n         case ApkAvailabilityStatus.SupportedNotInstalled:\r\n             _ShowAndroidToastMessage(\"Supported, not installed, requesting installation\");\r\n             Session.RequestApkInstallation(false);\r\n             break;\r\n         case ApkAvailabilityStatus.UnknownChecking:\r\n             _ShowAndroidToastMessage(\"Unknown Checking\");\r\n             break;\r\n         case ApkAvailabilityStatus.UnknownError:\r\n             _ShowAndroidToastMessage(\"Unknown Error\");\r\n             break;\r\n         case ApkAvailabilityStatus.UnknownTimedOut:\r\n             _ShowAndroidToastMessage(\"Unknown Timed out\");\r\n             break;\r\n         case ApkAvailabilityStatus.UnsupportedDeviceNotCapable:\r\n             _ShowAndroidToastMessage(\"Unsupported Device Not Capable\");\r\n             break;\r\n     }\r\n }"}}
{"actor":{"display_login":"Edorne"}}