APP IONIC3 ANGULAR4

Source: Internet
Author: User
Tags file url docker run

Https://golb.hplar.ch/p/Hot-deploy-updates-with-the-cordova-hot-code-push-plugin
NPM Install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic, platform-server,router,animations} @latest [email protected]--save

Ionic start IONIC3-ANGULAR4--v2


Https://www.becompany.ch/en/blog/2016/10/19/creating-apache-cordova-app-with-angular2


Docker run-it--net host--cpuset-cpus 0--memory 512mb-v/tmp/. x11-unix:/tmp/. X11-unix-e display=unix$display-v $HOME/downloads:/root/downloads--device/dev/snd--name arcwelder thshaw/ Arc-welder
Http://www.phonegap100.com/article-489-1.html
Ionic build Android--prod--release This method builds the fastest app to start
http://blog.csdn.net/lucy_100/article/details/51028366
Ionic build Android--prod--release
https://dpary.github.io/2016/12/23/
http://forsigner.com/2015/03/12/ionic-android-package/
Ompile_android:
Stage:build
Script
-CP Debug.keystore ~/.android/debug.keystore
-NPM Install
-Cordova Platform update Android
-Ionic Config Build
-Ionic State Restore
-Ionic Build Android
Docker run-it--net host--cpuset-cpus 0--memory 512mb-v/tmp/. x11-unix:/tmp/. X11-unix-e display=unix$display--volumes-from=data--name arcwelder thshaw/arc-welder
https://zhuanlan.zhihu.com/p/21566093
Install JDK
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
Ionic Start mytabs Tabs--v2
sudo npm install-g Cordova Ionic Ios-sim
Ionic start myApp Blank
Ionic Start myApp Tabs
Ionic start myApp Sidemenu
chrome://apps/
===
Cordova Create myApp

CD MYAPP

Cordova Platform Add Android
====
http://blog.csdn.net/qq_15096707/article/details/53846895
CD Myionicapp
Ionic Platform Add iOS
Ionic build iOS
Ionic prepare iOS re-packaging
Ionic emulate iOS (emulator run)
Ionic emulate Ios-livereload
Ionic platform Remove iOS
Onic Start Sidemenuapp sidemenu--v2
Https://github.com/driftyco
Https://github.com/driftycoz
CD Myionicapp
Ionic serve
Ionic Platform Add Android
Ionic Build Android
Ionic emulate Android (emulator run)
Ionic run Android (connected to the phone)
Ionic prepare Android RePack
Ionic platform remove Android removal environment

HTTP://WWW.JIANSHU.COM/P/DFD98AD47AF1 Packaging
====================================

http://kaibin.me/2016/07/17/ionic-hotcode/

sudo npm install-g Ionic Cordova
NPM install-g CORDOVA-HOT-CODE-PUSH-CLI
Cordova Plugin Add Cordova-hot-code-push-plugin
Cordova Build
CORDOVA-HCP Server

Config.
Chcp.json


$ Ionic Platform Add iOS
$ Ionic Build iOS
$ ionic Emulate iOS


Install JDK

Agileek/ionic-framework
https://www.oschina.net/question/576444_2167064
Android Update SDK--no-ui

Http://www.jianshu.com/p/9e3cd54f5f97
Http://www.cnblogs.com/johnzhu/p/5830450.html
http://blog.csdn.net/cydd007/article/details/52366982
NPM install-g cordova-hot-code-push-cli (used to dynamically generate Chcp.json and chcp.manifest two files)
Cordova Plugin Add cordova-hot-code-push-plugin (plugin)
Cordova Plugin Add Cordova-hot-code-push-local-dev-addon (PS: This plug-in is not installed actually does not affect, because we are not required to update the interface in real-time, And you have to remove the plugin when the app is officially released)

Cordova Build
{
"Content_url": "Http://localhost:8080/www",
"Autogenerated": true,
"Update": "Now",
"Release": "2017.01.04-14.30.44"
}

1.config.xml Add the following nodes:

<chcp>
<config-file url= "Http:/yourserver/www/chcp.json"/>
</chcp>

A, Chcp.json file content description
{
"Autogenerated": true,
"Release": "2016.08.29-15.52.14",//version number
"Content_url": "http://www.123.com/www/", the remote address where the//www folder resides
"Update": "Now"//divided into three kinds of situations
Start-app Install the update at startup. The default value.
Resume-app Install updates when switching from the background.
Now-web content is downloaded to install the update.
}

The file is automatically regenerated each time the CORDOVA-HCP build is run, so you can add a template file Cordova-hcp.json to the root of the app project, as follows:
{
"Autogenerated": true,
"Release": "2016.08.29-16.52.27",
"Content_url": "http://www.123.com/www/",
"Update": "Start"
}

var Testbutton=document.getelementbyid ("Testbutton");
function Handlertest ()
{
var oevent=window.event;//for IE
var oevent=arguments[0];//for DOM
if (oevent.type== "click")
{
Alert ("click");
}
else if (oevent.type== "MouseOver")
{
Alert ("MouseOver");
}
Else
{
alert (Oevent.keycode);
}
}
Testbutton.onclick=handlertest;
Testbutton.onmouseover=handlertest;

APP IONIC3 ANGULAR4

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.