SDK 39, how to restart bundled app?

Is there any way to restart app when running a bundled app (apk) and using managed workflow?

Old way of restarting using Updates.reload() was removed in SDK 39.

Also the following only works in development mode.

import { DevSettings } from 'react-native'
DevSettings.reload()

Seems like I have to use both DevSettings.reload() and Updates.reloadAsync() simultaneously. One for development and one for bundled app.

hi there! we’re going to roll out a fix ideally sometime next week, so you will be able to use just Updates.reloadAsync(). related pr: [expo-updates][android][ios] allow reloading in dev mode in store clients by esamelson · Pull Request #10310 · expo/expo · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.