Top Banner
Copyright © 2013 Apex Evangelists The best of both worlds Going hybrid with Oracle Application Express
62

Best of both worlds: Create hybrid mobile applications with Oracle Application Express

May 14, 2015

Download

Technology

Roel Hartman

Create next-to-native mobile applications using Oracle Application Express and Cordova (or Phonegap).
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Copyright © 2013 Apex Evangelists

The best of both worldsGoing hybrid with Oracle Application Express

Page 2: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 3: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 4: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 5: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Copyright © 2013 Apex Evangelists http://apex-evangelists.com

Web Vs Native

Page 6: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Copyright © 2013 Apex Evangelists http://apex-evangelists.com

Web And Native

+ =

Page 7: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 8: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

#WORKSPACE_IMAGES#ireland.css

Page 9: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 10: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 11: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Install Cordova

Page 12: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ sudo npm install -g cordova

Page 13: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Create ContactSync app

Page 14: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova create contactsync - com.apex-evangelists.contactsync - ContactSync

Page 15: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Add platform(s)

Page 16: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cd contactsync $ cordova platform add ios

Page 17: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova platform ls Installed platforms: ios 3.1.0 Available platforms: android, blackberry10, firefoxos

Page 18: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Build and run

Page 19: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova build ios

Page 20: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova emulate ios[TypeError: Arguments to path-join must be strings]

Page 21: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Ok ... switch over to Xcode

Page 22: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 23: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 24: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Run our (empty) app

Page 25: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 26: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Quick look at the APEX app

Page 27: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Embed the APEX app

Page 28: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 29: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Run the APEX app as a native app

Page 30: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 31: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Add plugins to the project

Page 32: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova plugin add - org.apache.cordova.device $ $ cordova plugin add - org.apache.cordova.network-information $ $ cordova plugin add - org.apache.cordova.contacts $

Page 33: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

$ cordova plugin list [ ‘org.apache.corodova.contacts’, ‘org.apache.corodova.device’, ‘org.apache.corodova.network-information’ ]

Page 34: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Copy plugins to the web server

Page 35: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 36: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Reference the JavaScript file in the APEX app

Page 37: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 38: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Show device info in the APEX app

Page 39: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

3

Page 40: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 41: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Load iPhone Contacts into your APEX application

Page 42: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 43: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

Page 44: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 45: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Download Database Contacts to your iPhone Contacts

Page 46: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 47: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

Page 48: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 49: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

Page 50: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 51: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

Page 52: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Upload iPhone Contacts to your Database Contacts

Page 53: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 54: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

Page 55: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

2

Page 56: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

1

2

Page 57: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Full native integration

Page 58: Best of both worlds: Create hybrid mobile applications with Oracle Application Express
Page 59: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

JavaScript

JavaScript REST -> PL/SQL

REST -> JSON

Page 60: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

So, what do you need to build a native app …!!

- HTML!- CSS!- JavaScript!!

!

Try this at home !!

Page 61: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

Copyright © 2013 Apex Evangelists http://apex-evangelists.com

Q & A

Page 62: Best of both worlds: Create hybrid mobile applications with Oracle Application Express

!

[email protected] http://apex-evangelists.com