ICenium and (web service and localization )

2 posts, 0 answers
  1. AHMED
    AHMED avatar
    2 posts
    Member since:
    Jul 2010

    Posted 20 Dec 2013 Link to this post


    1st Qustion:

    Answering of this question determines if ICenium suitable for me or not.
    I'm working on the development of the application do the following:
    1 - The user takes a picture by the camera
    2 - and then identifies the geographical location (google MAP + GPS) so, he could not take a picture of a location outside the boundaries of a particular city
    3 - Get IP Address automatically
    4 - recording some of the data in the text boxes (such as name, age ....)
    5 - Check the recorded data (validation)
    6 - send this data (image - geographical location - other data) to the Web Service was developed by visual studio don net
    7 - and receive result from Web Service

    Is it easy to do that by using Icenium?


    2nd Qustion:

    Is Icenium support localization ?

  2. Fatme
    Fatme avatar
    7 posts

    Posted 25 Dec 2013 Link to this post

    Hello Ahmed,

    Thank you for contacting us.

    I will answer the questions you have in the same order you asked them:
    The clarify before I begin - Icenium is basically IDE and cloud services and is based on the Cordova framework and its command line tools to help you build hybrid applications.

    1st question's answer
    1. I suggest you to use getPicture() method. It takes a photo using the camera, or retrieves a photo from the device's image gallery. For more information you can check cordova camera docs.
      You can learn how to use cordova camera plugin from here.
    2. To identify the geographical location you can use geolocation cordova plugin. You can find more information here.
    3. It is possible to get IP address using Icenium. Here you can find the native code for Android. There is old cordova plugin's implementation that you could migrated to the new version of cordova. More information should be found here and here. As for native code for ios, I would recommend aamritrao's answer in this thread.
    4. To record data, you can use file cordova plugin. To learn how to use it check out here.
    5. I would recommend to use jQuery validation plugin. You can learn how to use jquery validation from here. Also you could implement your own validation logic code or use custom plugins depending on your particular needs.
    6. If you want to communicate with remote server you will have to call web services in your
      app using javascript. You can use $ajax to fetch data from server or post data to server. Check out the following sample code:                                                                                                                                  
         async: false,
          type: "POST",
          url: "Your_WebService_URL",
          data: YourData, //for example {name: "your_name", age: "your_age" }
          dataType: "json",
          // ...     

                                                                                                                                                                                    For more information you can check out jQuery documentation.
    7. To receive result from web service you would need to implement success and error callbacks.          
          // ..
          success: function (data, textStatus, jqXHR) {
              //Here you can implement your client side logic.
          error: function () {
    To summarize, all the things you mentioned above are easy with Icenium.
    2nd question's answer:
    You would need to handle the localization logic yourself as shown in this thread. There are some js libraries out there that can assist you with this task e.g.: I10n.
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top