Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 663
silwar Avatar asked Dec 07 '18 07:12

silwar


Video Answer


1 Answers

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

like image 74
Jack Avatar answered Sep 23 '22 21:09

Jack