Detect if an Android app has an update without manual polling

197 views Asked by At

Currently I'm using in app updates to check if there is an update to an application. Specifically AppUpdateManager.getAppUpdateInfo, but it requires to get called (and it's usually called during onCreate()), but I need to subscribe to get updated the moment the app is updated on Play Store, in order to know when to call getAppUpdateInfo(). I could set a recurrent task to check it, but I find it inefficient.

Is there any way that I can do this? I'm using Firebase so I tried to update a value in Firestore during CI and listen to it in the app, triggering it, but there is a delay between uploading the new app and it becoming available on the Play Store, and so far I haven't found a way to trigger a webhook or similar from Play Store when the app is live.

Is there any other option that I'm missing?

0

There are 0 answers