One App for All

tearfuloilMobile - Wireless

Dec 10, 2013 (3 years and 8 months ago)

73 views

One App for All

Coding for different iOS variants

Mike Oliver

iOS Team Lead

moliver@pyxismobile.com

© 2010 Pyxis Mobile. Confidential Information

One App For All

Most iOS apps start with limited range


One iOS version (likely most recent)


Optimized for low resolution devices


No genuine iPad support (compatibility mode doesn’t count)


Assumption of standard iPhone hardware (camera, accelerometer,
etc.)

© 2010 Pyxis Mobile. Confidential Information

Options to consider…

Video

High Resolution

Low Resolution

Accelerometer

GPS

Multitasking

Camera

HDMI Out

iPhone 4

iPad 2

iPad

iPod Touch

iPhone 3GS

4.3

3.2

4.2

4.0

3.1

4.1

© 2010 Pyxis Mobile. Confidential Information

More to come


NFC (Near Field Technology)


High Resolution iPad


iPhone 5


Fingerprint scanning


Mobile Payments


Voice Integration


…?


© 2010 Pyxis Mobile. Confidential Information

The F
-
word…

RELAX

This isn’t Android….

© 2010 Pyxis Mobile. Confidential Information

One App For All

iOS variances can be
accounted for with minimal code

© 2010 Pyxis Mobile. Confidential Information

One App For All

Demo 3 major topics today:

1.
Handling both high and low resolution devices

2.
Coding for potentially unavailable API’s

3.
Adding iPad specific code for Universal Apps.

© 2010 Pyxis Mobile. Confidential Information

One App For All

Facebook Photos app:

1.
Log in using Facebook Connect

2.
Show user’s photos at best resolution possible

3.
Allow printing of photos using Airprint

4.
Give best layout for iPhone and iPad



© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

iMug

© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

Don’t rely on exact screen dimensions

Courtesy of WWDC 2010 Session 130

© 2010 Pyxis Mobile. Confidential Information

Don’t rely on device model

Bad Code:

Better Code:

One App For All: Best Practices

Courtesy of WWDC 2010 Session 130

© 2010 Pyxis Mobile. Confidential Information

One App For All: Best Practices

UIRequiredDeviceCapabilities
limits distribution based on
hardware:


Camera (front, video, etc.)


Communication (sms, wifi, etc.)


Motion (accelerometer,
gyroscope)

Full list can be found at…
UIRequiredDeviceCapabilities
Documentation

© 2010 Pyxis Mobile. Confidential Information

Best Practices

Always default your
code to basics (low res
iPhone idiom)

© 2010 Pyxis Mobile. Confidential Information.








Page
14


Pyxis Mobile

Pyxis Mobile is the only mobile application development
platform designed to meet today’s constantly changing needs.

© 2010 Pyxis Mobile. Confidential Information.








Page
15


Pyxis Mobile

A Platform for Building Mobile Applications



Multi
-
Device Support
-

Easily develop rich, native Apps once and
deploy on all smartphone and tablet devices. Support Local
-
Device Feature Superset, not Least Common Denominator



Back
-
End System Integration
-

Seamlessly integrate with
multiple back
-
end systems and standards


internal and public


for read and write access.



Enterprise
-
Grade Features


User Authentication, Security,
Usage and Performance Monitoring Tools, Language Support
and Offline Access and Synchronization



Support Agile Deployment
-

Quickly create, modify, update and
expand Apps, and deploy those changes immediately.




© 2010 Pyxis Mobile. Confidential Information

Resources


Pyxis Mobile (
http://www.pyxismobile.com
)


WWDC 2010 Session 130


Future Proofing your application (can be
downloaded through iTunes by registered developers)


UIRequiredDeviceCapabilities
documentation


Supporting High
-
Resolution Screens


Custom Icon and Image Creation Guidelines