Cordova

From Tizen Wiki
Jump to: navigation, search

Apache Cordova is a mobile software development framework, underlying PhoneGap.

Consider using it when HTML5 is not enough for Application_Development.


Onsen UI:

Monaca.png

Monaca / OnSen is providing cloud IDE facilities for hybrid mobile Application_Development based on (Phonegap/Cordova).

Tizen is not fully supported but it's possible to repackage app.

Here are some hints

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"  id="http://example.com/app" version="1.0.0" viewmodes="maximized">
  <tizen:application id="ComExample.main" package="ComExample" required_version="2.4"/>
  <content src="www/index.html"/>
  <feature name="http://tizen.org/feature/screen.size.all"/>
  <name>main</name>
  <tizen:setting context-menu="disable"/>
  <tizen:profile name="mobile"/>
</widget>
    • If you keep generated config.xml make sure to:
      • Declare in widget element this attribute : "xmlns:tizen="http://tizen.org/ns/widgets"
      • Add "tizen:application
      • Keep content src="www/index.html"
      • Add <tizen:profile name="mobile"/>
  • Then deploy using SDK, or CLI SDK (we assume you know about generating certificates)
cert=tizen
wgt_file=main.wgt
package=ComExample
~/tizen-studio/tools/ide/bin/tizen build-web
~/tizen-studio/tools/ide/bin/tizen package -t wgt -s ${cert}
~/tizen-studio/tools/ide/bin/tizen install -n ${wgt_file} -- .
~/tizen-studio/tools/sdb  shell pkgcmd -l -t wgt
~/tizen-studio/tools/ide/bin/tizen run --pkgid ${package}

Et voila !

May sample code could be ported to Tizen, for instance check this OpenSource Application using React JavaScript framework:


Ask me more --Pcoval (talk) 11:36, 23 October 2016 (UTC)


Resources: