sandeshnaroju / react-native-in-app-update

44 stars 17 forks source link

Nothing happens on clicking Restart after downloading the update #7

Closed shivam0831 closed 3 years ago

shivam0831 commented 3 years ago

After downloading the app update I got the Restart option in the snack bar but nothing happens after clicking on restart. Any solution?

sandeshnaroju commented 3 years ago

does not it restart? is it crashing?

shivam0831 commented 3 years ago

after clicking on restart it stays on the same page

shivam0831 commented 3 years ago

after making singed apk update dialog is not showing

sandeshnaroju commented 3 years ago

Apologies for late reply, I was busy with some other work. Normally, the In App Update should be tested in signed release (https://developer.android.com/guide/playcore/in-app-updates/test) build not in debug mode. If you don't see the update immediately, some times it takes few hours to show the update.

sandeshnaroju commented 3 years ago

closing as there is no response

shivam0831 commented 3 years ago

I was checking in a signed release apk.

sandeshnaroju commented 3 years ago

If you have done everything right, then in your case the native UpdateAvailability.UPDATE_AVAILABLE is not becoming true, i found it is happening sometimes, i found it is taking few hours. This lib is can't deal with that directly, we only use it. It is just a react native module for the native code.