Accessing Player Prefs from Another App

Hey,

So, I have an app that I wouldn’t mind having the ability to read a player pref from another app.

Are the player prefs (which as I understand it are just a wrapper for the NSUserDefaults) protected by the OS, or can you in fact just read/write to them all freely?

I think apps are sandboxed from each other but I’d love to hear otherwise. Could be some interesting uses for this.

It could also be horribly abused, so I assume it’s not possible.

–Eric

Oh yeah, the potential for mayhem would be spectacular. I however, do not wish to use it for such purposes.

Failing that, any ideas for a work around? I can obviously track everything online with a fairly simple database, but that limits how the app would function in an offline environment.

You can register url handlers for your apps (myapp1:// and myapp2://) and then communicate data between the apps in the url. This would require that when you want to exchange data one app would need to launch the other.

Food for thought :slight_smile: