Skip to content

Comments

Added example showing how to store data in JSON format in the keychain#1

Open
TedThePanda wants to merge 3 commits intophamtanlong:masterfrom
TedThePanda:master
Open

Added example showing how to store data in JSON format in the keychain#1
TedThePanda wants to merge 3 commits intophamtanlong:masterfrom
TedThePanda:master

Conversation

@TedThePanda
Copy link

Hello,

I played around with your code base and added also an example of how you could store some JSON data in the keychain. In my example the application is storing the background color after the user presses "Save", and then loads it back in when the application is started up again.

I've tested this on a device and it seems to be working without any issues.


public static void Initialize()
{
#if UNITY_IPHONE

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UNITY_IPHONE is deprecated. Use UNITY_IOS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, this file works on my phone

@RHamers
Copy link

RHamers commented Oct 29, 2020

Hey could maybe fix the issues on the PR and accept it? These are some nice changes that would make the library more usable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants