Entrepreneurship-bootcamp-02 / M-storybook

미션 수행 열전 - 2기 홧팅~
1 stars 1 forks source link

M5-MessengerApp-#2-Make Android App & Test Web App and Android App #32

Open dodongho opened 7 years ago

dodongho commented 7 years ago

1. Make Android App

meteor add-platform android

2. Install Android App in Mobile device

meteor run android-device

3. Test Web App and Android App

check communication b/w both

dodongho commented 7 years ago

Android App build error

image

Solution : Install is-property module

cd %userprofile%\AppData\Local\.meteor\packages\meteor-tool\1.4.1_3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\cordova-lib\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid
​meteor npm install is-property

image

Another build error

image

Solution : set environment variables (for Windows)

These setting values are depends on installation directories.

set JAVA_HOME=D:\Dev\Java\jdk1.8.0_102 set ANDROID_HOME=D:\Dev\Java\Android\sdk

Build Android App and install on Android Device

Some error happened but no problem to run Apps

image image

Test Web App and Android App

image image

#2 is completed

dodongho commented 7 years ago

Location of produced Android App :

angular-meteor-whatsapp.meteor\local\cordova-build\platforms\android\build\outputs\apk

  • android-debug.apk
  • android-debug-unaligned.apk

What is Codorva ?

Overview

Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms' native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status.

Use Cordova if you are:

a mobile developer and want to extend an application across more than one platform, without having to re-implement it with each platform's language and tool set.

a web developer and want to deploy a web app that's packaged for distribution in various app store portals.

a mobile developer interested in mixing native application components with a WebView (browser window) that can access device-level APIs, or if you want to develop a plugin interface between native and WebView components.