Save on iOS?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
comradesparklepony
Prole
Posts: 11
Joined: Mon Dec 30, 2019 6:57 pm

Save on iOS?

Post by comradesparklepony »

Hello,

Is it possible to create a savefile on iOS? I have a LOVE project that saves correctly when run on a computer, but it does not appear to work on iOS. It uses

Code: Select all

love.filesystem.read
and

Code: Select all

love.filesystem.write
with binser in order to save. On the wiki, there is no save path listed for iOS, so given that was well as my test it seems like it is currently not possible to save on iOS, but I wanted to double check.

Thank you!
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Save on iOS?

Post by slime »

File saving and loading should work fine on iOS. It uses the app's sandboxed Application Support directory.
comradesparklepony
Prole
Posts: 11
Joined: Mon Dec 30, 2019 6:57 pm

Re: Save on iOS?

Post by comradesparklepony »

I was handling saving in

Code: Select all

love.quit
which as slime pointed out in the Discord doesn't really work on iOS. Changing it to

Code: Select all

love.focus
fixed it!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests