lessons learned while building mobile dead. a location based game for your phone
TRANSCRIPT
Lessons learned while building Mobile Dead
A location based game for your phone.
Concerns For Modern Mobile Apps
• Battery Life
• Bandwidth
• Processing speed
• Flexibility
Quit Talking Too Much
Message Format Protocol
<!-- XML --> <names>
<name>Anna Maria</name> <name>Fitzwilliam</name> <name>Maurice</name> </names>
/* JSON */
{"names": ["Anna Maria", "Fitzwilliam", "Maurice"]}
Message Chunking…
Message Size…
Let Nerdlinger Take Care of
It
Who should do the work?
Consider the benefit of a image being dynamically generated server side
StayFlexible
Do your stretches
1. Throttle client/sever interaction based on phone context
2. Automatically protect privacy or conserve battery (sleep)
3. Let the server manage the constant values
1.What map to use
2.How often the server is hit.
Breaking The Rules
Make exceptions
• Not everything has to exist within an OO model
• Exposing private variables
• Reuse objects throughout the lifetime of the app
• Global data.
BeGraceful
Typical Scenarios In Mobile
1. Loss of data connection
2. Loss of location information
3. App unexpectedly killed
4. Phone is busy doing something else
mobiledead.com
perkmobile.com