silwar
silwar

Reputation: 6518

How to replace existing native Android/iOS app with Flutter app?

I have existing Android and iOS native app on playstore for one of our product. These apps are having offline functionality. So currently users may have some data stored on their devices for these apps.

I am checking feasibility to create these apps with Flutter and replace those on respective play stores.

My query is, is it possible to provide some kind of migration or mechanism to move native mobile app db into flutter app db?

Upvotes: 11

Views: 2256

Answers (1)

Jack
Jack

Reputation: 1163

You can migrate the app piece by piece by using a Flutter module and including it in your iOS and Android apps.

Say, for instance you were trying to replace one page in Flutter, you'd then be able to setup a MethodChannel to request and send data from iOS and Android to Flutter and store that data in your Flutter app database and migrate it over time.

For iOS: https://flutter.dev/docs/development/add-to-app/ios/project-setup

For Android: https://flutter.dev/docs/development/add-to-app/android/project-setup

To setup a MethodChannel you can read through this:

https://flutter.dev/docs/development/platform-integration/platform-channels?tab=android-channel-java-tab#example

Upvotes: 4

Related Questions