# Save sandbox on GooglePlay and GameCenter

**URL:** <https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467>\
**Category:** Game Networking\
**Created:** [January 16, 2018, 4:35pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467 "2018-01-16T16:35:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 4:35pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/1 "2018-01-16T16:35:01Z")

</div>

Hello everyone,

In my app save several “.json” files in the sandbox. At the moment there are 10 files(about 17KB in all).

This works and is fast for me. However, I often add new game modes and then the files increase(+1 for mode).

Users of both iOS and Android ask me to be able to save their game data (so my sandbox),&nbsp;&nbsp;in game center and googleplay, so that even if they change device they do not have to start from the beginning.

I’ve never done this myself. Could I show me how I should move? It’s very complicated?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 4:57pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/2 "2018-01-16T16:57:14Z")

</div>

Our GPGS (Google Play Game Services) plugin supports snapshots.&nbsp; For iOS we have the iCloud plugin, however neither of these are cross platform. You would need to use your own server to save your JSON files to or use a service like PlayFab or GameSparks which should have cross-platform data saving.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:16pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/3 "2018-01-16T17:16:19Z")

</div>

Thanks rob.

However if I wanted to use a service like&nbsp;PlayFab or GameSparks,&nbsp;&nbsp;Should I still allow the user to access google play and game center, It,s right?

I could have more information on how I should move. I apologize but this part is new to me

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 5:28pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/4 "2018-01-16T17:28:31Z")

</div>

There is no reason why you cant use GPGS/GameCenter for leaderboards/achievements and the other services for your game saves.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:33pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/5 "2018-01-16T17:33:25Z")

</div>

if I do not use these services(GPGS/GameCenter), the user how to do later to recover his saveData?

PlayFab and GameSparks&nbsp;do they require a registration in game?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 5:37pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/6 "2018-01-16T17:37:43Z")

</div>

PlayFab and GameSparks will need some form of login/id to uniquely ID your player. Even if you do your own thing, you will need this too.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:43pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/7 "2018-01-16T17:43:34Z")

</div>

I understand I thank you.

Can you tell me if somewhere is a tutorial or a guide that I can follow to make everything possible?

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [January 17, 2018, 9:56pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/8 "2018-01-17T21:56:22Z")

</div>

Gamespark&nbsp;at least can use Google, Facebook or iOS to login to Gamespark.&nbsp;

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 4:57pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/9 "2018-01-16T16:57:14Z")

</div>

Our GPGS (Google Play Game Services) plugin supports snapshots.&nbsp; For iOS we have the iCloud plugin, however neither of these are cross platform. You would need to use your own server to save your JSON files to or use a service like PlayFab or GameSparks which should have cross-platform data saving.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:16pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/10 "2018-01-16T17:16:19Z")

</div>

Thanks rob.

However if I wanted to use a service like&nbsp;PlayFab or GameSparks,&nbsp;&nbsp;Should I still allow the user to access google play and game center, It,s right?

I could have more information on how I should move. I apologize but this part is new to me

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 5:28pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/11 "2018-01-16T17:28:31Z")

</div>

There is no reason why you cant use GPGS/GameCenter for leaderboards/achievements and the other services for your game saves.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:33pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/12 "2018-01-16T17:33:25Z")

</div>

if I do not use these services(GPGS/GameCenter), the user how to do later to recover his saveData?

PlayFab and GameSparks&nbsp;do they require a registration in game?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [January 16, 2018, 5:37pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/13 "2018-01-16T17:37:43Z")

</div>

PlayFab and GameSparks will need some form of login/id to uniquely ID your player. Even if you do your own thing, you will need this too.

Rob

---

<div class="post-metadata">

**Author:** ![maximo97](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@maximo97](https://forums.solar2d.com/u/maximo97)\
**Post date:** [January 16, 2018, 5:43pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/14 "2018-01-16T17:43:34Z")

</div>

I understand I thank you.

Can you tell me if somewhere is a tutorial or a guide that I can follow to make everything possible?

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [January 17, 2018, 9:56pm UTC](https://forums.solar2d.com/t/save-sandbox-on-googleplay-and-gamecenter/346467/15 "2018-01-17T21:56:22Z")

</div>

Gamespark&nbsp;at least can use Google, Facebook or iOS to login to Gamespark.&nbsp;
