facebook

Newbie question, problem with cordova on Cloud App Center

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #345384 Reply

    smaris
    Member

    Hi,

    I try to get my first app running though the Cloud App Center for testing, but cordova does not seem to get initialized:

    get this error in the web console:

    Failed to load resource: the server responded with a status of 404 (Not Found) http://c29-dot-mobioneappcenter2.appspot.com/get/INTERNAL_WEBSIM/cordova/cordova-2.9.0.js
    Failed to load resource: the server responded with a status of 404 (Not Found) http://c29-dot-mobioneappcenter2.appspot.com/get/INTERNAL_WEBSIM/cordova/rte-2.9.0.js

    Running the app in the local web simulator (on localhost) everything is working…

    Do I miss something?

    Tnxs

    #345387

    Hi smaris,

    Can you share more details about the issue?
    What Mobione version are you using?
    Are you testing a web app or native app?
    Do you get that error messages in the web simulator?
    Can you describe the exact steps that cause this problem? Also a screenshot or any additional info is always appreciated.

    #345389

    smaris
    Member

    Hi,

    I’m running MobiOne 2.5.0 with just a very simple button handler

    
    //called button's OnClick RunJS action
    function changeStatus(tId) {
     if (phoneui.cordovaAvailable()){
        if (isDeviceReady) {
            changeColor(tId);
        } else {
          phoneui.alert("Cordova not initialized, try again");
        }
      } else {
        phoneui.alert("Cordova is not available");
      }
    }
    

    when testing on the local “Mobile Web Simulator” (see img. mobione-local), cordova is loaded and functioning.

    when testing on ‘publish to Cloud App server’ (see img. mobione-cloudapp), cordova lib is not loaded (not foud); code triggers the message “Cordova is not available”.

    Tnx

    Attachments:
    You must be logged in to view attached files.
    #345467

    Hi smaris,

    Thanks for sharing those details and screenshots. The problem is that web simulator doesn’t emulate cordova functions when testing a web app since it has not been added in the generated code for a simple web app. You should test it running directly your project in web Simulator either pushing the Run in Mobile Web Simulator button or in Project Menu > Run Target in Mobile Simulator (your design should be selected as the target design).

    #345786

    smaris
    Member

    How can I test on my device? Do I need to build the app… so needing the iOS developer licence?

    Tnx

    #345793

    Hi smaris,

    You can get started learning to build your native apps in Making Apps Public section of Learning Center.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Newbie question, problem with cordova on Cloud App Center

You must be logged in to post in the forum log in