Oracle mcs overview 1029

Post on 23-Jan-2018

302 views 1 download

Transcript of Oracle mcs overview 1029

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Mobile Cloud Service Overview

Alice Liulzhmails@163.com6/25, 2015

Oracle Confidential – Internal/Restricted/Highly Restricted

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Agenda

What is Mobile Cloud Service?

Features and Platform APIs

Getting started with Client SDK Android

Demo

1

2

Oracle Confidential – Internal/Restricted/Highly Restricted 3

3

4

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |4

What is Mobile Cloud Service? Mobile Cloud Service is a cloud-based service that provides a unified hub for developing, deploying, maintaining, monitoring, and analyzing your mobile applications and the resources that they rely on.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Describe the MCS developer portal components

Mobile Backends: This is area where mobile client developers will spend most of their time. A mobile backend is all the backend services that a specific mobile application will consume.

Storage: Mobile developers use this function to manage custom storage collectors for use across mobile backends. This is useful when mobile developers want to store data collected from devices that do not have a backend available to map or store. E.g. GPS, Notes, Photos, Videos etc

User Management: Used by mobile developers to create and store user credentials for B2C use cases or where there may not be a user credential store to federate

Connectors: This is area where the service developers spend time in defining, creating, securing and testing connections to backend systems. This could be via REST, SOAP or via connectors to legacy APIs

APIs: This is the area where service developers can design, test, implement, shape and deploy custom API into the API Catalog . Click on mobile backend

5

What is Mobile Cloud Service?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |6

What is Mobile Cloud Service? Mobile Cloud Service is a cloud-based service that provides a unified hub for developing, deploying, maintaining, monitoring, and analyzing your mobile applications and the resources that they rely on.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |7

Features and Platform APIs

• Send push notifications to both iOS and Android mobile devices• Store application data in the cloud so it’s protected and easy to get at• Cache locally store REST resources to optimize application performance• Provide user login capabilities and test real users and roles• Gather usage data and generate analytics reports• Monitor health and troubleshoot problems

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |8

Features and Platform APIs

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |9

Getting started with Client SDK Android

The official Android Client SDK tutorial is available now:http://docs-uat.us.oracle.com/cloud/latest/mobilecs_gs/MCSUA/GUID-B9B3FEB0-7B52-4691-B410-4D8DF70D7933.htm#MCSUA-GUID-B9B3FEB0-7B52-4691-B410-4D8DF70D7933

Pre-requisites 1. Android

Android SDK installed Android Platform Tools 19.0.3

2. iOSMac OS X 10.9.x (Mavericks)Xcode 5.1.x

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |10

Getting started with Client SDK Android

1. Create an Android Gradle Application with Android Studio

a. Download and install Android Studio https://developer.anroid.com/sdk/installing/studio.htmlb. Download and install Stand-alone SDK Tools version of Android SDK: http://developer.android.com/sdk/installing/index.htmlc. Create an Android Gradle application, and use the Stand-alone SDK instead the one comes with Android Studio

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |11

Getting started with Client SDK Android

a. Get IDMSDK project

b. Unzip it and put the IDMSDK folder under your application's main directory

c. Edit file settings.gradle in project directory, change it to:

include ':app',':IDMSDK'

d. Edit file build.gradle in src directory, change dependencies settings to:

dependencies { compile project(':IDMSDK') compile fileTree(dir: 'libs', include: ['*.jar'])}

e. Click "Sync project with Gradle files" in Android Studio Tools tab Android's sub menu (Or you can choose to do this later)

Link IDMSDK project to your app

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |12

Getting started with Client SDK Android

Add MCS Config file

a. Create a folder named "assets" under app/src/main/

b. Add oracle_mobile_cloud_config.xml to app/src/main/assets folder, and you will need to change:mbeName, mbeVersion, oAuthTokenEndPoint, oAuthClientId, oAuthClientSecret, oAuthLogoutUrl base on your MCS Env settings.

<mobileBackend> <mbeName>test</mbeName> <mbeVersion>1.0</mbeVersion> <default>true</default> <appKey>1ccba599-8e48-44e1-ba8b-7e70f5a3f57f</appKey> <baseUrl>http://blr2203087.idc.oracle.com:7201</baseUrl> <enableAnalytics>true</enableAnalytics> <enableLogger>true</enableLogger> <identityDomain>mob1</identityDomain> <oAuthTokenEndPoint>http://slc07grb.us.oracle.com:14100/oam/oauth2/tokens</oAuthTokenEndPoint> <oAuthClientId>eac8b447-014c-4b60-9c0e-5451dda448bc</oAuthClientId> <oAuthClientSecret>dFdupZuGGhyJCrWGTaWc</oAuthClientSecret></mobileBackend>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |13

Getting started with Client SDK Android

Setup Mobile Backend

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |14

Getting started with Client SDK Android

Add/Define User and Roles

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |15

Getting started with Client SDK Android

Create a Storage Collection (Optional, only need it when working with Storage SDK)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |16

Getting started with Client SDK Android

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |17

Getting started with Client SDK Android

Add permissions to AndroidMainfest.xml

add at least these permissions<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /><uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |18

Getting started with Client SDK Android

Build the Android Application

Click on Android Studio Tool bar, or like below to Sync Project with Gradle Files

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |19

Getting started with Client SDK AndroidRun the Android Application

start emulator with command: emulator -avd YourAvdNameHere -http-proxy http://cn-proxy.jp.oracle.com:80

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |20

Demo

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |21

Demo

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |22

•http://docs-uat.us.oracle.com/cloud/latest/mobilecs_gs/MCSUA/toc.htm•The official Android Client SDK tutorial is available now: http://docs-uat.us.oracle.com/cloud/latest/mobilecs_gs/MCSUA/GUID-B9B3FEB0-7B52-4691-B410-4D8DF70D7933.htm#MCSUA-GUID-B9B3FEB0-7B52-4691-B410-4D8DF70D7933• http://developer.android.com/training/index.html • http://www.vogella.com/tutorials/android.html

References :

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Q&A

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |