facebook

Mobione -> myEclipse migration issues

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #353028 Reply

    Have a big enough (for html5) project, game, have received a great help from Genuitec team with keys, instructions. Very appreciate. Everything went smooth.

    The only problem I can’t figure out and release my game:

    my game is working like a charm in test center (google chrome), on device only if compiled with mobione (i had to reduce half of my graphics to reduce size). when i made build with myEclipse 2015 and ran over my phone no JS/transitions did worked, i press buttons and nothing works, i tried to set several alert() in my main_custom.js and they shoot good.

    i think the problem is in Phonegap version, because mobione used 2.x branch, and myEclipse uses 3.5.

    i’ve downloaded 2.3 from phonegap.com, unpacked, but i’m stucked when i tried to “Add Phonegap Runtime” in Preferences i could not make it, it still saying that the folder invalid (i tried different folders in deep) and it can’t validate it. So I came here… so i got two questions mates:

    1. How to correctly add different phonegap version to myEclipse, and what would you suggest in my case (mobione project) ?

    2. Is there any other reason why my project does not work built in myEclipse and work built in mobione or just test center?

    Thanks in advance

    #353029 Reply

    Hi,

    As you are trying to add runtime manually I am guessing you are trying to build locally, is this only for Android?
    Have you tried building using the PhoneGap Build service to see it will generate a working binary?

    You should be able to add PhoneGap runtimes in the way you are trying, however, due to the security warnings you will get in lower versions we suggest using 3.5 or greater. The Mobione process ware tested using both 3.5 and 3.6.3.

    The best way to find out why you application is not working is to use a debugger. Alerts can sometimes tell you about where the problem is (though not always), but not the problem itself you really need to use a real debugging tool. By installing a debuggable version on your device and using a program like GapDebug you can see all issues in the console and can help pin point the problem. GapDebug is free, you can get it here as well as learning more on how to use it:
    https://www.genuitec.com/products/gapdebug/

    If you can get us a screenshot of the GapDebug console output it can probably help us pinpoint the issue.

    #353061 Reply

    Hi, brandon, thanks for the reply, here is the GapDebug pic (it’s really great tool i’ve been searching for whole my life):

    http://i58.tinypic.com/15n9c1e.png

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

    Hi,

    It looks like from the screen shot the cordova api is not getting called causing the api to fail. Can I ask how you set this up in MyEclipse? Are you doing a local build? if so have you tried using the PhoneGap build to do a test build?

    Thanks

    #353070 Reply

    >>> Are you doing a local build?
    Brandon, yes I do local build (because my app is large size and adobe’s max is about 40 Mb even in paid subscription).

    >>> Can I ask how you set this up in MyEclipse?
    How should I set this up in MyEclipse ? Sorry I dont understand. PhoneGap set embedded, i have not change anything. I just ran over Mobione->MyEclipse tutorial and made this steps to my app.

    >>> if so have you tried using the PhoneGap build to do a test build?
    No. I’m not clearly understand what you mean and how to do it. You mean some simple test app to test cordova just real quick ?

    #353072 Reply

    Hi,

    In your main html file Mobione adds the following line:
    <script type=”text/javascript” src=”rte/cordova.js”></script>

    can you make sure after you ran the ant script that it now shows:
    <script type=”text/javascript” src=”cordova.js”></script>
    or
    <script type=”text/javascript” src=”phonegap.js”></script>
    I believe the script adds the phone gap.js tag.

    Im wondering if that did not get changed.
    Thanks

    #353075 Reply

    Here it is, i’ve added anything, but still don’t work:

    http://i60.tinypic.com/2wrf5fn.jpg

    http://i57.tinypic.com/15cmxwz.jpg

    #353087 Reply

    Hi,

    This should be getting replaced when you run the ant script. Can you redownload the resource pack to make sure you have the latest one and retry running through the tutorial with your app. Check to see if the tag is getting replaced. It seems like something is getting missed.

    #353088 Reply

    Hi, Just thought I would give you an update that PhoneGap Build announced a app size increase.
    50MB, 100MB and 1GB!

    http://phonegap.com/blog/2014/12/09/phonegap-build-new-features/

    #353093 Reply

    Brandon, i used the same pack, here you can see the screenshot and comparing of both files.

    I would prefer local build because my app need a bit more than 100 Mb and goes to worthly plan. I just think why should I pay if I can get it free with local builds.

    Brandon, can you tell me what lines should be in the code to make it proper work with hands? would be nice

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

    Hi,

    The main one to look for is this tag:
    <script type=”text/javascript” src=”phoneui.js”></script>

    and if this one is there take it out:
    <script type=”text/javascript” src=”rte/cordova.js”></script>

    Its also good to make sure you are using the latest resource pack, inside the phoneui.js file near the top you should see this version information:

    version 2.6.4.20141126

    #353141 Reply

    Hi, brandon, that’s exactly what i have in phoneui.js:

    * MobiOne PhoneUI Framework
    * version 2.6.4.20141126

    also i don’t have <script type=”text/javascript” src=”rte/cordova.js”></script> (anyways it was empty in mobione)

    and i had <script type=”text/javascript” src=”res/phoneui.js”></script>, i’ve added just phoneui.js (without res dir), what i have now:

    <script type=”text/javascript” src=”phonegap.js”></script>
    <script type=”text/javascript” src=”cordova.js”></script>
    <script type=”text/javascript” src=”phoneui.js”></script>
    <script type=”text/javascript” src=”rte/rte.js”></script>
    <script type=”text/javascript” src=”res/jquery-1.8.3.min.js”></script>
    <script type=”text/javascript” src=”res/iscroll.js”></script>
    <script type=”text/javascript” src=”main.js”></script>
    <script type=”text/javascript” src=”res/phoneui.js”></script>
    <script type=”text/javascript” src=”res/spinningwheel.js”></script>
    <script type=”text/javascript” src=”main_custom.js”></script>

    But i still have same problems, no vibrate func found, referencing to phoneui.js, i also tried to use old phoneui.js from my old mobione package, but still same problems. It’s all seems that program can’t find phonegap functions: navigator.connection.type, navigator.notification.vibrate

    But in APK or GapDebug i seee phonegap.js, cordova.js, phoneui.js in main dir, seems like anything ok with it.

    I’m really stucked 🙁

    #353142 Reply

    Hi,

    Is this a local build or using the Phonegap Build services?
    Can you make sure the vibration plugin is installed (for local) or referenced in the config file for remote builds?

    Thanks

    #353156 Reply

    Yes, Brandon I do local build. How can I make sure that vibrate plugin installed ? I got all that in config.xml as

    org.apache.cordova.vibration

    Also problem is not only in vibrate plugin. navigator.type also throw bug. Seems like program can’t see cordova functions, but anything included in main.html and when I’m open APK with WinRAR i see phonegap.js, cordova.js in www. I don’t understand what happen

    #353165 Reply

    Hi,

    When doing local builds make sure the plugin is located in the Pluigns folder under the projects root directory. If you added it using the right click… Add Plugin it should be there.

    To debug other errors I suggest using software like GapDebug, this will allow you to debug the app on the device and see what errors you might have in your code.

    You can find more info and help using GapDebug here:
    https://www.genuitec.com/products/gapdebug/

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: Mobione -> myEclipse migration issues

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