1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    13
    Vote Rating
    0
    gamani is on a distinguished road

      0  

    Default Unanswered: Integrating phonegap.js in sencha touch 2.1.0 > not compatible ?

    Unanswered: Integrating phonegap.js in sencha touch 2.1.0 > not compatible ?


    Hi Guys,

    I've copied the cordova.js file from phonegap lib (android) into the sencha root dir project.
    Added the javascript declaration in the index.html of sencha.
    Inserted this function in index.html :
    Code:
    <script type="text/javascript"> document.addEventListener("deviceready", function () { alert('Our first PhoneGap app'); }, false); </script>
    Then packaged everything using sencha package cmd and tested on android emulator.

    Well, it doesn't seems to work... Moreover i have tons on lines enumerating "Unexpected value from nativeGetEnabledTags:0"

    Have a clue ?

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    22
    Vote Rating
    0
    Answers
    1
    pille72 is on a distinguished road

      0  

    Default


    hey, have you tried to include the js file in app.json ? Then it will be loaded by ST. Maybe this could help...

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    508
    Vote Rating
    73
    Answers
    25
    shepsii is a jewel in the rough shepsii is a jewel in the rough shepsii is a jewel in the rough shepsii is a jewel in the rough

      0  

    Default


    I haven't used this myself, but have heard very good things from other threads on the forums. Maybe following an example through will help you out:
    http://bricemason.github.com/sencha-cordova-builder/

Thread Participants: 2