add timeout parameter on checkForUpdate
Summary
Added checkUpdateTimeout property (like Axios does). It makes the developer prevent app for waiting too much time for checkForUpdate method.
I haven't the screenshot now but used Flipper to see my Network requests and the route to check update ended in approximately 64 seconds.
Added checkUpdateTimeout in react-native-code-push.d.ts
Fixes #2032
Breaking change
-
checkForUpdatesecond parameter is nowcheckUpdateTimeout,handleBinaryVersionMismatchCallbackis now the third parameter
hi
what about this fix ? i can t see this checkUpdateTimeout param available in 7.0.4 version ?
thanks
Push this is a nice feature
Will this feature be coming? I have noticed much longer wait times on calling checkForUpdate which really slows down the app on launch.
We are not planning to introduce any breaking changes.