- Home /
PersistentDataPath saved files are not writing into android device?
Hello, so here is the thing: I have some couple of datas to recover during the game which is the game's map (saved those datas using persistentDataPath); I can access to these data using the unity engine but when I built the app to apk and ran it on my android device, the datas didn't wrote to android storage thus cannot play the game. I can however import the datas manually to android device and works fine. I want publish my game to Play Store i guess i have to solve this problem before publishing. PLEASE HELP...
Answer by Mehul-Rughani · Jan 24, 2018 at 09:35 AM
please check your Android manifest. It will be in Assets/Plugins/Android/AndroidManifest.xml
Is there WRITE and READ data permission?
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
These two permission should be there in order to read data from file and to write data to the file
Hope it will help you