Results 1 to 2 of 2

Thread: Combine Sencha Touch with iOS Native Application

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default Combine Sencha Touch with iOS Native Application

    Hi, I'm looking at the situation where integration existing iOS native application with the sencha touch charting features.

    However, there are several challenges as below:
    by having a webview on the iOS native, and viewing the embedded HTML/javascript in the iOS native application, it's possible to show the chart, however, consider the following two issues arise:

    1- Interaction from Native code to Sencha Touch (Objective-C to Javascript/HTML5)
    how to update and sending data to the sencha touch chart? My thought is create a 'dynamic string of those HTMLs, and substitute the value part with variables, each time, updating the variable, update the value, and reload the webview in the iOS to show and update chart.

    2. Interaction from Sencha Touch to Native Code ? (Javascript/HTML trigger/callback the objective c code?)
    for an instance, click on the bar chart in the Sencha Touch, I would like to obtain the value of the bar that I clicked on, or some relevant information such as 'category', chart name, bar name, value.. etc.. what I could think of maybe using the Sencha Touch, 'write json' class to create any Json file, to be picked up and read by the objective-c native code part.. However, even with that, this is unable to trigger any function of the native code. thus.. any comment or suggestion on this hybrid approach development- native code to javascript/ html5 and vice-versa?

    appreciates, thanks..
    Last edited by divineforge; 24 Oct 2012 at 1:32 AM. Reason: formatting issue *

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    It sounds like you are overcomplicating your application. Either go with ST2 or stay native.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts