now saving persistent data to disk right at the beginning

That way, even when the app crashes (or the developer hits 'stop' in Xcode), the installation id and local player id will remain.