title: Access viewModel inside a service in android
body: <p>how we can initialize the <strong>viewModel</strong> in a <strong>service</strong>.
  in a fragment, we do that with Kotlin delegate &quot;<strong>by activityViewModels</strong>&quot;.
  or we can do it with the <strong>ViewModelProvider().get</strong>.
  but as far as I find out we can not do it in service because we need a &quot;<strong>ViewModelStoreOwner</strong>&quot; like activity or fragment.</p>
  <p>so is that even a best practice to initialize a ViewModel in a service?</p>
  <p><a href="https://github.com/imansdn/SimpleFourSquare" rel="noreferrer">my project here</a>.</p>