Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

[Utility library - iOS] GKNativeExtensions - The missing iOS cloud save feature!

Discussion in 'Assets and Asset Store' started by Dark-1-Games, Mar 13, 2019.

  1. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    13
    We are excited to announce the release of GKNativeExtensions, a small native utility library made to support iOS Cloud save by using the apple-recommended GKSavedGame API.

    The utility library currently supports the following operations:
    • Fetching existing save games
    • Saving a game by name
    • Loading a game by name
    • Deleting a game by name
    • Resolve multiple conflicting saves
    • Registering a callback to be called when a conflict is detected
    • Registering a callback to be called when a save occurs on a different device (not properly tested)
    The project can be found on Github:
    https://github.com/dark-1-games/GKNativeExtensions

    It is licensed under the Mozilla Public License 2.0.

    This should technically work on OSX, but our focus has been iOS. Please let us know if you get it working on OSX.

    Comments and feedback are welcome!
     

    Attached Files:

    Last edited: Mar 31, 2019
  2. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    13
    Conflict resolution and native callbacks (conflicts and new save) have been added, and version 0.2 is now available for download on github.
    Do note that the conflicting save games callback is only called if two devices save with the same name while disconnected, and only after restarting the game.
    It is possible to manually fetch games and detect the conflict by looking for multiple games with the same name but different deviceName.
     
    OlivierEsolu likes this.