Pre-populated DB, after sync is missing from Android. Where is www folder?

Solved!
Debbugging into Android I’ve discovered that the www corresponds to public !

myInput = cordova.getActivity().getAssets().open(“www/” + dbName);

becames

myInput = cordova.getActivity().getAssets().open(“public/” + dbName);

and plugin runs on Android with Capacitor on Ionic5,

I change it into my Android project, but I suggest our friends to change it into the gitHub.

I’dont know if there are other differences among android versions…

I’solved several matters before, well explained starting from the topic:

Thank you to all!

1 Like