# Save Game not working when APK downloaded from Google Play

**URL:** <https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849>\
**Category:** Editor Scripting\
**Tags:** savegame, Google-Play, google-cardboard, unreal-engine, Blueprint, question\
**Created:** [April 25, 2017, 9:13am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849 "2017-04-25T09:13:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Increditastic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Increditastic](https://forums.unrealengine.com/u/Increditastic)\
**Post date:** [April 25, 2017, 9:13am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/1 "2017-04-25T09:13:25Z")

</div>

For some reason my Android Cardboard VR game does not save when I’ve uploaded it on Google Play. It works fine in editor and it also works fine when I install it via the .bat script in the packaged folder, but it does not save when it’s on Google Play. I’ve seen similar questions but none of them helped.  
I’m packaging to Shipping mode in a blueprints only project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 25, 2017, 3:43pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/2 "2017-04-25T15:43:52Z")

</div>

Hello Increditastic,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
3. Could you provide screen shots of any settings/blueprints that may be involved with this issue?

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [April 25, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/3 "2017-04-25T16:07:45Z")

</div>

Do you have your app permissions declared? When someone install your app, is question about permission - save on device or something like this? I not have app in UE4 but I created few in android sdk, same rules.

---

<div class="post-metadata">

**Author:** ![Increditastic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Increditastic](https://forums.unrealengine.com/u/Increditastic)\
**Post date:** [April 26, 2017, 8:33am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/4 "2017-04-26T08:33:15Z")

</div>

Yes. I just checked Android documentation and it says I do not need permission to save on internal storage. For external storage, UE4 automatically declares the permissions.

---

<div class="post-metadata">

**Author:** ![Increditastic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Increditastic](https://forums.unrealengine.com/u/Increditastic)\
**Post date:** [April 27, 2017, 8:47am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/5 "2017-04-27T08:47:22Z")

</div>

1. I haven’t tried, because I’d have to upload to Google Play.
2. I also haven’t tried. If I need to I’ll try and produce the issue in a clean project.
3. These are my save and load BP:

 ![135744-load.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/4/fc489c947fafa3fc8531763c2acab62c0ec15a76.png)

Load BP

 ![135745-save.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/e/7ee725cf7b351d7c6e44fd3e864719b97217cdce.png)

Save BP

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [May 4, 2017, 8:02pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/6 "2017-05-04T20:02:59Z")

</div>

Thank you for the additional information. Where you able to reproduce this issue in a clean project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [May 17, 2017, 5:06pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/7 "2017-05-17T17:06:08Z")

</div>

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a13b5529](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a13b5529](https://forums.unrealengine.com/u/anonymous_user_a13b5529)\
**Post date:** [December 2, 2017, 6:56am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/8 "2017-12-02T06:56:56Z")

</div>

I am having the same issue save game works if i install the app as .bat file but if i copy and paste apk and data in the obb folder or download the app directly from play store then the save game does not work.

 ![222251-savecoins.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/6/7567dab32a79827cd75deba7e0b11c54e9a6a8ab.png)

---

<div class="post-metadata">

**Author:** ![Unzkilled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unzkilled](https://forums.unrealengine.com/u/Unzkilled)\
**Post date:** [December 2, 2017, 10:46am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/9 "2017-12-02T10:46:11Z")

</div>

I heard somebody saying something like this happen because of the client can not create the directory.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a13b5529](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a13b5529](https://forums.unrealengine.com/u/anonymous_user_a13b5529)\
**Post date:** [December 12, 2017, 12:52am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/10 "2017-12-12T00:52:03Z")

</div>

I’m really worried. Despite of trying to reach Epic games and unreal support staff repeatedly. There has been no communication to the mail’s I’ve sent . No one bother’s to respond in any way . Which brings my concern that i won’t be able to publish my game since publishing it requires working save game data. If someone is reading this and has a better(faster) way to reach Epic games staff please let me know. Case #1445902 .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a13b5529](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a13b5529](https://forums.unrealengine.com/u/anonymous_user_a13b5529)\
**Post date:** [December 18, 2017, 2:36pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/11 "2017-12-18T14:36:35Z")

</div>

If you are facing the following issue then :  
Fix  
Step 1. Go to Project Settings

Step 2. Enable the checkbox " Use ExternalFilesDir for UE4Game files ?

---

<div class="post-metadata">

**Author:** ![feiwu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@feiwu](https://forums.unrealengine.com/u/feiwu)\
**Post date:** [January 3, 2018, 1:30am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/12 "2018-01-03T01:30:43Z")

</div>

I have similar problem, but at last, I save it by myself,  
I save the file under:  
FString savePath = FString::Printf(TEXT("%sSaveGames/%s.txt"), \*FPaths::ProjectPersistentDownloadDir(), Name);

and custom serialize saveobject to this file, it works.

---

<div class="post-metadata">

**Author:** ![Victor\_Matos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Victor\_Matos](https://forums.unrealengine.com/u/Victor_Matos)\
**Post date:** [March 14, 2018, 7:55pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/13 "2018-03-14T19:55:20Z")

</div>

This totally worked for me!

Thank you so much Adwait!

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [April 15, 2018, 5:38pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/14 "2018-04-15T17:38:26Z")

</div>

I’m having the same issue.

- Local testing works fine (from PC)
- Testing it by installing the APK with the BATCH file works fine
- installing from the app store and save games don’t work at all

Any news on this?

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [April 15, 2018, 5:47pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/15 "2018-04-15T17:47:56Z")

</div>

Wouldn’t this delete the savegame/data once a player uninstalls the app?

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [April 15, 2018, 6:26pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/16 "2018-04-15T18:26:13Z")

</div>

This does seem to fix the problem with a Android Shipping build.

---

<div class="post-metadata">

**Author:** ![NonPolynomialTim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NonPolynomialTim](https://forums.unrealengine.com/u/NonPolynomialTim)\
**Post date:** [June 18, 2018, 9:54am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/17 "2018-06-18T09:54:52Z")

</div>

Confirmed again that this solution fixes save game data in Android Shipping builds. Thank you!

---

<div class="post-metadata">

**Author:** ![darinsmyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darinsmyth](https://forums.unrealengine.com/u/darinsmyth)\
**Post date:** [July 6, 2018, 6:30pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/18 "2018-07-06T18:30:38Z")

</div>

Another one who had to use this on a S8 to get a save game working on shipping build, thanks 🙂

---

<div class="post-metadata">

**Author:** ![RedSpotSylphina](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redspotsylphina/32/1194674_2.png) [@RedSpotSylphina](https://forums.unrealengine.com/u/RedSpotSylphina)\
**Post date:** [August 16, 2018, 12:08pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/19 "2018-08-16T12:08:14Z")

</div>

Actually, Use ExternalFilesDir for UE4Game files is not the best, and possibly dangerous idea. The point is that save game generated this way will always be deleted when user uninstalls the app. But update on Google Play, as far as I know, does exectly this - uninstalls and then installs the app again, so each time you update the app users lose all progress.

I managed to make save game work without ExternalFilesDir for UE4Game files enabled, but for this I have to permit write for my app manually via Android settings. The problem is that you need to warn user that in order to make saves he has to make such manual permission himself. Also not the best idea.

---

<div class="post-metadata">

**Author:** ![Elvince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elvince](https://forums.unrealengine.com/u/Elvince)\
**Post date:** [January 14, 2019, 3:53pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/20 "2019-01-14T15:53:11Z")

</div>

Why do we need to check this to allow the save game to be written on the app storage? I mean this box is to write on SD card not internal memory. Thanks for the clarification.

[Next page](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849.md?page=2)
