Cant access assets folder in android

I’m trying to play an audio but Ionic can’t find the assets folder. I tried several variations but couldn’t make it work.

How can I refer to assets folder ?

In Capacitor the assets folder is public, not www, if the plugin is searching in www it won’t find the files.
Some people has created a symlink that points www to public (not sure how) and claimed that it worked.

Or you can add a www folder inside your native projects and put the audio files there (for iOS it has to be blue as the public folder is). For Android a regular folder inside assets folder should work.

1 Like