Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
Admin (1 edit)

I couldn’t find a reliable way to determine if the user is on an iPad

Instead of detecting the device you should do feature detection. In this case you would try to access the localStorage object within a try catch statement. If that fails then you instruct them with alternative solution or a message about how their saves will not persist.

(3 edits) (+1)

Unfortunately that doesn't work (that was actually the first approach I tried). The localStorage calls all succeed on iPad--they just don't persist across page reloads :(

On a previous version of Safari, they would all fail and you could detect it, but that's not the case anymore...