# Progress lost when updating app

**URL:** <https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, Android, UE4-27\
**Created:** [June 14, 2022, 5:46am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396 "2022-06-14T05:46:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramon\_Bosch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramon\_Bosch](https://forums.unrealengine.com/u/Ramon_Bosch)\
**Post date:** [June 14, 2022, 5:46am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/1 "2022-06-14T05:46:03Z")

</div>

Updating an app through Google Play or App Store erases all of my players’ previous progress. Can this be prevented? I’ve seen other topics on the matter but never a working answer.  
Checkbox _Use ExternalFilesDir for UE4Game files ?_ is enabled but doesn’t seem to do anything.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [June 14, 2022, 9:57pm UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/2 "2022-06-14T21:57:58Z")

</div>

> [@Ramon\_Bosch](#):
>
> I’ve seen other topics on the matter but never a working answer.

 ![chrome_xMgJjGm298](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/8/1688641ff8d95b513c54af554e685e7dddc2782a.png)  
[https://forums.unrealengine.com/t/pack-a-game-for-android-without-installing-android-studio-update-android-12/492029](https://forums.unrealengine.com/t/pack-a-game-for-android-without-installing-android-studio-update-android-12/492029)

---

<div class="post-metadata">

**Author:** ![Ramon\_Bosch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramon\_Bosch](https://forums.unrealengine.com/u/Ramon_Bosch)\
**Post date:** [June 15, 2022, 9:21am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/3 "2022-06-15T09:21:03Z")

</div>

Thanks for the answer, I’m currently trying to apply your method although I’m using a Mac computer so I’m not sure if I’ll be able to follow all the steps.

Also, does this method work for iOS apps too?

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [June 15, 2022, 10:51am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/4 "2022-06-15T10:51:53Z")

</div>

virtual FString GetSaveGamePath(const TCHAR\* Name)  
{  
#if PLATFORM\_ANDROID  
// ProjectSettings-\>Platforms-\>Android-\>APKPackaging-\>AndroidPackageName()  
FString BundleID = FString(FPlatformProcess::GetGameBundleId());  
// ProjectSettings-\>Description-\>ProjectName()  
FString AppName = FString(FApp::GetProjectName());  
return FString::Printf(TEXT("/storage/emulated/0/Android/data/%s/files/UE4Game/%s/%s/Saved/SaveGames/%s.sav"), \*BundleID,  
\*AppName, \*AppName, Name);  
#else  
return FString::Printf(TEXT("%sSaveGames/%s.sav"), \*FPaths::ProjectSavedDir(), Name);  
#endif  
}

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [June 15, 2022, 10:52am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/5 "2022-06-15T10:52:58Z")

</div>

Well, like for Android, it definitely works(my screenshot) … and for the ios and android he wrote discord (this screenshot)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/b/1ebab83261a745e4f926363abf92fcdf10a0c34c.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [June 15, 2022, 11:01am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/6 "2022-06-15T11:01:44Z")

</div>

P.S i not work in ios, so I can’t test this code

---

<div class="post-metadata">

**Author:** ![Ramon\_Bosch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramon\_Bosch](https://forums.unrealengine.com/u/Ramon_Bosch)\
**Post date:** [June 16, 2022, 8:35am UTC](https://forums.unrealengine.com/t/progress-lost-when-updating-app/581396/7 "2022-06-16T08:35:09Z")

</div>

Hi, thanks for taking the time to answer, it’s very kind of you.

Yesterday I followed the steps on the thread you shared, installing command line tools and the latest SDK and NDK versions but I don’t know how to specify the folders in the engine because I can’t find them on Mac.

Also, I can’t understand what I have to do with that code, I’ve only worked with blueprint so far. I’ll do some research and see if I can figure something out.

Thanks again!
