# 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:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [May 15, 2019, 2:32pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/21 "2019-05-15T14:32:43Z")

</div>

Hi, i have the same issue with the shipping build, can you explain me better how to get the android permission ? I want to fix that without " Use ExternalFilesDir for UE4Game files"…

---

<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:** [May 16, 2019, 2:39pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/22 "2019-05-16T14:39:28Z")

</div>

Hello 🙂

Here are screenshots from my project:

Check if permission is already granted:

 ![276990-ue4-android-permission-a.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/2/ad294d8e9e86c02237de049b36ffa72c120ddd3a.png)

Then ask for permission if not granted (do nothing if granted):

 ![277001-ue4-android-permission-b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/3/1e3afac6a329d7b64bd7a86124ea7e07de6bef14.png)

Re-check permission after it was granted. If permission was granted - create widget with restart prompt. If permission was not granted - create widget with explanation that user cannot run the appication without the permission:

 ![277002-ue4-android-permission-c.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6aefc34536296b019e25f3473f0c5a95ec00dd53.png)

During restart prompt user will have to restart application manually. I know no ways to make such restart automatic with blueprints.

---

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [May 16, 2019, 3:04pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/23 "2019-05-16T15:04:47Z")

</div>

Wow! Thanks man ! I really appreciate your help ! I’m going to try.

---

<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:** [May 17, 2019, 2:31pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/24 "2019-05-17T14:31:50Z")

</div>

You are welcome 🙂

---

<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:** [May 20, 2019, 7:53am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/25 "2019-05-20T07:53:14Z")

</div>

So you know, I had a discussion with the Support team on this topic and they confirm this is the proper way to do it. This has been confirmed by the developper also. The sentence used is not good and lead to a misunderstanding, they know it. But it seems that ExternalFilesDir is not the SD card, but the application folder. They told me it is the way android called dir outside of the core system.  
I hope this will help to clarify that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc211853](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc211853](https://forums.unrealengine.com/u/anonymous_user_bc211853)\
**Post date:** [May 30, 2019, 9:11pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/26 "2019-05-30T21:11:30Z")

</div>

Hey man, Great work, I have the same problem, I can turn on Storage Permission Manually and it works (THANK GOD). But your blueprint looks really interesting, I’m trying to recreate it but I’m having issues. Are you coding this in a Game Instance, Game Mode Or Level Blueprint? Also How do you get that Input node???

---

<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:** [May 31, 2019, 10:03am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/27 "2019-05-31T10:03:10Z")

</div>

Hi!  
Thanks 🙂

I prefer not to use level blueprint or game mode blueprint for scripting (with some small exceptions). You see input node because this is macro. I make some script parts in macros to make the main script more comfortable to read and modify - the entire macro looks like a single node in the main script. And this macro just belongs to one of blueprint classes.

---

<div class="post-metadata">

**Author:** ![Cervelx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Post date:** [July 11, 2019, 12:16am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/28 "2019-07-11T00:16:32Z")

</div>

Hi. I want to thank you. Everything worked out great. I want to ask you a question, in the image c after the “check android permission” you created a widget to restart the game, well, this thing in my project does not want to work, after clicking accept permission the game stops and I can not do other actions, of course if then restart remains the permission and the game works perfectly. But the first start is problematic for the player. Do you know what it could be? Thank you.

---

<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:** [July 11, 2019, 11:11am UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/29 "2019-07-11T11:11:03Z")

</div>

No problem 🙂

My “restart game widget” is just a text message notifying user that he has to restart application manually in order to continue. I didn’t find any solution that would be any better, at list for 100% blueprint based project.

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 6, 2021, 8:21pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/30 "2021-08-06T20:21:40Z")

</div>

Iam having issues saving game on android 11  
anyone with solution???

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:58pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/31 "2021-08-13T20:58:54Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/32 "2021-08-13T20:59:07Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/33 "2021-08-13T20:59:28Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/34 "2021-08-13T20:59:31Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/35 "2021-08-13T20:59:40Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 8:59pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/36 "2021-08-13T20:59:50Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 13, 2021, 9:00pm UTC](https://forums.unrealengine.com/t/save-game-not-working-when-apk-downloaded-from-google-play/391849/37 "2021-08-13T21:00:08Z")

</div>

i have issue in saving game to android 11 (SDK30+). Save game working fine on all android devices except android 11 becaue of scoped storage in android 11. I really need help iam stuck

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