{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/586","repository_url":"https://api.github.com/repos/firebase/quickstart-android","labels_url":"https://api.github.com/repos/firebase/quickstart-android/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-android/issues/586/comments","events_url":"https://api.github.com/repos/firebase/quickstart-android/issues/586/events","html_url":"https://github.com/firebase/quickstart-android/issues/586","id":348452867,"node_id":"MDU6SXNzdWUzNDg0NTI4Njc=","number":586,"title":"MLKit Custom Model : Provide a callback when the model was downloaded","user":{"login":"the-dagger","id":6565270,"node_id":"MDQ6VXNlcjY1NjUyNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6565270?v=4","gravatar_id":"","url":"https://api.github.com/users/the-dagger","html_url":"https://github.com/the-dagger","followers_url":"https://api.github.com/users/the-dagger/followers","following_url":"https://api.github.com/users/the-dagger/following{/other_user}","gists_url":"https://api.github.com/users/the-dagger/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dagger/subscriptions","organizations_url":"https://api.github.com/users/the-dagger/orgs","repos_url":"https://api.github.com/users/the-dagger/repos","events_url":"https://api.github.com/users/the-dagger/events{/privacy}","received_events_url":"https://api.github.com/users/the-dagger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T19:17:53Z","updated_at":"2018-08-07T19:50:12Z","closed_at":null,"author_association":"NONE","body":"Hi, not sure if this is the right place to report the issue, but I've been facing a weird issue with Firebase MLKit's Custom model hosting feature.\r\n\r\n[Firebase Hosting](https://firebase.google.com/docs/ml-kit/android/use-custom-models#host-models-on-firebase) allows us to upload the tensorflow model on Firebase instead of packaging it with the apk and Firebase downloads the model onto the user's device when the app is launched.\r\n\r\nThis sounds great, but the underlying issue here is that there's no callback in the Firebase Android SDK that lets the developer know when the download for hosted model is started and when it has been completed.\r\n\r\nI was not able to find any callback in the package reference either : https://firebase.google.com/docs/reference/android/com/google/firebase/ml/custom/model/package-summary\r\n\r\nAs a result, till the model has been downloaded, the app is still usable by the user and that results in an exception.\r\n\r\nIt would be nice if there were 3 callbacks for the following scenarios : \r\n1. The model download was initiated\r\n2. The download completed\r\n3. The download failed \r\n\r\nThis will ensure that the developer is aware of this action and can update the UI accordingly by blocking operations that rely on the model.\r\n\r\nP.S. It's might also be a good idea to allow the developers to version their models, in case I have a newer model packaged with the app but the model hosted on Firebase was outdated"},"comment":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/comments/411179752","html_url":"https://github.com/firebase/quickstart-android/issues/586#issuecomment-411179752","issue_url":"https://api.github.com/repos/firebase/quickstart-android/issues/586","id":411179752,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTE3OTc1Mg==","user":{"login":"samtstern","id":8466666,"node_id":"MDQ6VXNlcjg0NjY2NjY=","avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T19:50:12Z","updated_at":"2018-08-07T19:50:12Z","author_association":"MEMBER","body":"cc @isaisachen what do you think of this feature request?"}}
{"actor":{"display_login":"samtstern"}}