cordova plugins for samsung: build hybrid apps with ... - seap plugins for... · cordova plugins...
Post on 30-Nov-2018
256 Views
Preview:
TRANSCRIPT
Copyright© 1995-2016 SAMSUNG. All rights reserved.
Cordova plugins for Samsung: Build hybrid apps with Samsung device features! Victor Okunev SEAP Developer Evangelist
Samsung Electronics
Copyright© 1995-2016 SAMSUNG. All rights reserved. 2
Introduction
Hello! My name is Victor Okunev.
Developer Evangelist • Vancouver Enterprise Lab
• Samsung Electronics Canada
• Email: v.okunev@samsung.com
Copyright© 1995-2016 SAMSUNG. All rights reserved.
Agenda Webinar Duration: 1 hour
1. Presenter Introduction
2. Hybrid apps • How it works • Relevancy to enterprises • Using proprietary device features
3. Apache Cordova • Concept of a plugin
4. Cordova plugins for Samsung • Functionality • Examples • Resources
5. Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 4
Next topic
Setting context
• Hybrid apps
• Apache Cordova
• Cordova plugins for Samsung
• Resources
• Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 5
Samsung Knox SDKs
Copyright© 1995-2016 SAMSUNG. All rights reserved. 6
Samsung Knox SDKs
Copyright© 1995-2016 SAMSUNG. All rights reserved. 7
Next topic
• Setting context
Mobile App Development Options
• Apache Cordova
• Cordova plugins for Samsung
• Resources
• Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 8
Native applications
Developed for specific mobile platform
Implemented in target platform language • Java, C#, Objective-C
Best usability and performance • Have "native" look and feel
• Full access to native device functionality • Camera, calendar, GPS, etc.
Copyright© 1995-2016 SAMSUNG. All rights reserved. 9
Web applications
Developed for cross-platform use
Implemented with standard web toolset • HTML5, JavaScript and CSS
Limited usability and performance • May partially emulate "native" look and feel
• Can't access native device functionality • Major limitation!
Copyright© 1995-2016 SAMSUNG. All rights reserved. 10
Hybrid applications
Developed for cross-platform use
Implemented with • Standard web toolset
• Web container-to-native bridging framework
A happy medium between native and web apps • Limited access to native device functionality
• Subject to available plugins
Copyright© 1995-2016 SAMSUNG. All rights reserved. 11
Mobile App Development Options Compared
Source: https://developer.salesforce.com/, June 2016
Copyright© 1995-2016 SAMSUNG. All rights reserved. 12
Top three reasons to go hybrid
1. WORA principle • Write once, run anywhere!
2. Reduced cost • Native programming skills are not required
• Web designer skills are sufficient
3. Faster turnaround • Shorter development, QA and distribution cycle
Copyright© 1995-2016 SAMSUNG. All rights reserved. 13
Hybrid apps in the enterprise
• WORA principle • Generally not relevant
• Full control of the device fleet
• Single vendor for mobile hardware
• Reduced cost • Very relevant
• Faster turnaround • Very relevant
Copyright© 1995-2016 SAMSUNG. All rights reserved. 14
Proprietary features in hybrid apps
Using vendor-specific device features • B2C solutions
1. Query the device at run-time
2. Utilize the feature if supported
• For enhanced user experience
• B2B solutions • Generally use single-vendor devices
• Often single model
• Extensive use of proprietary device features
• To provide the best user experience
Copyright© 1995-2016 SAMSUNG. All rights reserved. 15
Next topic
• Setting context
• Mobile App Development Options
Apache Cordova
• Cordova plugins for Samsung
• Resources
• Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 16
Apache Cordova
https://cordova.apache.org/
Copyright© 1995-2016 SAMSUNG. All rights reserved. 17
Cordova application architecture
Source: https://cordova.apache.org/, Aug 2016
Copyright© 1995-2016 SAMSUNG. All rights reserved. 18
Cordova tools ecosystem
Leading mobile app tools integrate with Cordova • PhoneGap, Ionic, Monaca, Onsen UI, Visual Studio, TACO, Telerik, GapDebug,
AppBuilder, Intel XDK, Cocoon, Framework 7, Evothings, Oracle MAF, Sencha Touch, IBM Mobile First, etc.
Copyright© 1995-2016 SAMSUNG. All rights reserved. 19
Cordova Custom plugins
Custom (third-party) plugins • Complement Core plugins
• Provide additional bindings to features not necessarily available on all platforms
Copyright© 1995-2016 SAMSUNG. All rights reserved. 20
Next topic
• Setting context
• Mobile App Development Options
• Apache Cordova
Cordova plugins for Samsung
• Resources
• Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 21
Cordova plugins for Samsung
Samsung has contributed plugins to Cordova • Use differentiating features of Samsung Android devices
• Enhance user experience
• Communicate with Samsung wearable devices
• Open source • Use freely
• Adapt
• Re-distribute
• No support through usual CS channels • Can still use SEAP forum to find answers
Copyright© 1995-2016 SAMSUNG. All rights reserved. 22
List of available Samsung plugins
Ver Plugin Functionality
1.0 S Pen Control the S Pen stylus for Galaxy Note devices. Launch in pop-up or inline mode.
1.0 MultiWindow See multiple apps simultaneously - split the device display or use reduced size overlay.
1.0 Rich Notification Design and send rich UIs notifications to connected Gear devices.
1.2 BLE Add Bluetooth Low Energy (BLE) features to your app.
1.2 Image Filter Enhance your images by applying filters, such as Sepia, Pastel, and Cartoonization.
1.2 Remote Sensor Retrieve information from a wearable or sensory device. Data is passed through a Bluetooth link.
1.2 S Planner Access the S-Planner application from Samsung for viewing and creating events and reminders.
1.3 S Health Collect your health activities data captured by S Health compatible wearable devices.
1.4 S Pass Improve your apps security through integration with biometric authentication.
1.5 NFC Quickly exchange information wirelessly between devices.
Copyright© 1995-2016 SAMSUNG. All rights reserved. 23
S Pen plugin
Provide a view/surface to take handwritten input through • Pens
• Fingers
• Other kind of virtual pens
Supported functionality • Text recognition, shape recognition, eraser, redo, undo, text selection features
are available for better user experience.
Two type of surface/view is available • Popup: opens above the application surface
• Inline: which opens within application surface
23
Copyright© 1995-2016 SAMSUNG. All rights reserved. 24
S Pen plugin functionality
Copyright© 1995-2016 SAMSUNG. All rights reserved. 25
S Pen plugin API
Check whether device supports S Pen functionality:
Copyright© 1995-2016 SAMSUNG. All rights reserved. 26
S Pen plugin launch modes
Use in popup or inline mode
Copyright© 1995-2016 SAMSUNG. All rights reserved. 27
S Health plugin
Provides access to Samsung Digital Health SDK features
Allows the user to get data directly from health data store
Currently plug-in support following data type • Heart Rate
• UV-Exposure
• Sleep
Copyright© 1995-2016 SAMSUNG. All rights reserved. 28
S Health plugin API
Acquire health data permission
Copyright© 1995-2016 SAMSUNG. All rights reserved. 29
S Pass plugin
Use fingerprint recognition in your application • Identify actual users of the device whose fingerprints have been registered in
the device
• Provide better application security
• Increase the convenience of the user identification process
29
Copyright© 1995-2016 SAMSUNG. All rights reserved. 30
S Pass plugin API
Identify fingerprint
Copyright© 1995-2016 SAMSUNG. All rights reserved. 31
S Planner plugin
Access the S Planner application for • Viewing the calendar
• Creating events and reminders
31
Copyright© 1995-2016 SAMSUNG. All rights reserved. 32
S Planner API
Open S Planner application
Copyright© 1995-2016 SAMSUNG. All rights reserved. 33
Next topic
• Setting context
• Mobile App Development Options
• Apache Cordova
• Cordova plugins for Samsung
Resources
• Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 34
Developer resources
Available from SEAP portal • JavaScript API reference
• With working script examples
• Just copy and paste to your app
• A step-by-step tutorial • Get started with the Cordova S Pen plugin
• FAQs
Copyright© 1995-2016 SAMSUNG. All rights reserved. 35
Next topic
• Setting context
• Traditional MDM solution
• Samsung Knox Cloud SDK solution
• Licensing
• Resources
Introduction to SEAP
Copyright© 1995-2016 SAMSUNG. All rights reserved. 36
Where do I get Cordova plugins for Samsung?
https://seap.samsung.com/
SEAP – Samsung Enterprise Alliance Program
Instant registration, start developing in minutes:
Copyright© 1995-2016 SAMSUNG. All rights reserved. 37
Samsung Enterprise Alliance Program
Sales Support • Dedicated sales support from Samsung sales
network based on Business Opportunities
Co-Marketing Activities • Partner Promotion via Samsung online channels
• Co-branded marketing materials
• Samsung event participation
• SEAP Newsletter & Logo
Access Samsung’s technology • KNOX SDKs and licenses
• Technical Q&A ticket
• Priority technical support
• Technical consultants
Marketing
Sales
Tech
Support
Copyright© 1995-2016 SAMSUNG. All rights reserved.
Q&A
and THANK YOU for your time.
Victor Okunev v.okunev@samsung.com
top related