Changes

Jump to navigation Jump to search
Line 35: Line 35:  
To allow the web developers to interact with the device's native functionality, we shall build a communication between the python and javascript part by using the sugar web architecture.Once that is done, we then need to add to the cordova-js project of cordova - which provides the common API's for sending messages and triggering error and success callbacks with native framework responses.
 
To allow the web developers to interact with the device's native functionality, we shall build a communication between the python and javascript part by using the sugar web architecture.Once that is done, we then need to add to the cordova-js project of cordova - which provides the common API's for sending messages and triggering error and success callbacks with native framework responses.
   −
[[File:Cordova applications run on different platforms.png|100x200|Figure1]]
+
[[File:Cordova applications run on different platforms.png|500px|Figure1]]
    
Figure1 shows how the hybrid apps help the developers to port their applications to different platforms using the cordova platform and give a view why developing the cordova container for sugar would be useful.
 
Figure1 shows how the hybrid apps help the developers to port their applications to different platforms using the cordova platform and give a view why developing the cordova container for sugar would be useful.
   −
The basic architiecture of how the html application are able to run on different platforms using cordova is shown below.
+
Also the application build using HTML,CSS,JS can be designed to run over various devices which in turn provides the developer to develop apps which are universal in nature. This can be achieved by making the design responsive which adapts according to the device's features.This forms a key reason why we would want to develop using HTML,CSS and JS usiing the cordova platform.The concept can be explained by the following image.
   −
[[File:Cordova_Html_application_on_different_platforms.jpg|100x200|Figure1]]
+
[[File:Why_is_cordova_neccesary.jpg|600px|Figure2]]
 +
 
 +
The main part allowing the interoperability of the html apps over different platforms is the cordova libraries that provide the javascript APIs.This architecture which allows seamless operation over different platforms can be explained as below:
 +
 
 +
[[File:Cordova_Html_application_on_different_platforms.jpg|100x200|Figure3]]
    
This figure describes the way through which the cordova application can be run on different platforms because of the cordova layer in between which helps the same html applications to communicate with the different native platforms through the cordova javascript API and native libraries in between. As a part of this project our major goal would be to develop the middle layer, which shall help the HTML apps to communicate with the sugar platform beneath.
 
This figure describes the way through which the cordova application can be run on different platforms because of the cordova layer in between which helps the same html applications to communicate with the different native platforms through the cordova javascript API and native libraries in between. As a part of this project our major goal would be to develop the middle layer, which shall help the HTML apps to communicate with the sugar platform beneath.
112

edits

Navigation menu