leecrossley / cordova-plugin-game-center

Cordova / PhoneGap Game Center Plugin for Apache Cordova >= 3.0.0
http://ilee.co.uk
78 stars 29 forks source link

Offline #11

Closed benadamstyles closed 10 years ago

benadamstyles commented 10 years ago

This is a fantastic plugin, and worked first time for me, so thanks for making my life infinitely easier. I'm struggling with handling an offline scenario though - am I right in thinking that neither Game Center nor this plugin automatically handle caching etc. if the device is offline during auth() and submitScore() calls?

leecrossley commented 10 years ago

Apple's Game Center native code will cache the scores etc and submit when it can (you don't need to account for it in your app code or worry about offline).

You'll notice that if you switch your device to aeroplane mode, you still get signed into Game Center when auth is called.

benadamstyles commented 10 years ago

Oh brilliant! Searched through Apple docs but couldn't find reference to this anywhere. Thanks.