EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Cordova Deployment

Discussion Topic

Discussion TopicMon September 28, 2015 04:11 AM

Discussion Topic

Discussion TopicMon September 28, 2015 04:32 AM

  • 1.  Cordova Deployment

    Posted Wed September 23, 2015 09:11 AM

    Hi,

    is there a tutorial how to create and deploy an EGL Cordova project?

     

    Kind Regards!

    Marcel-D


  • 2.  Re: Cordova Deployment

    Posted Thu September 24, 2015 05:13 AM

    Ok,

    i've found this wonderfull IBM Sites :

    http://www-01.ibm.com/support/knowledgecenter/SSRTLW_9.5.0/com.ibm.hybrid.mobile.doc/topics/tcreatinghybridmobileapps.html

    http://www-01.ibm.com/support/knowledgecenter/SSMQ79_9.5.0/com.ibm.egl.gg.doc/topics/gegl_add_mobile_deploy.html?lang=de

     

    I tried it but it doesn't work for me..

     

    This is what i did:

     

    1. I intall the Android SDK and Java JDK 6

    2. I install the default packages in the Android SDK

     

    3. I install a AVD

     

    4. in the RBD 9.5 i import the cordova samples

    5. In the Deployment Descriptor i activate 'Cordova Deploy' and create a new Cordova Project

    6. I add the JQuery ressouces (don't know if it's necessary?!)

     

    7.  I chose the Android platform

     

    8.  I add the Cordova plugins

     

    9. After all i get this error:

     

     

     

     

    Did i missed something or what's wrong?!

     

    This is my project:

    Download

     

     

    Kind regards.

     

    Marcel-D


  • 3.  Re: Cordova Deployment

    Posted Sun September 27, 2015 10:24 PM

    Hi,

        I think the root cause is that cordova does not support android api 23 now.  Pls try to use android api 22 instead.

        And I recommend  you to use oracle jdk7 instead of jdk6 after android api 19.

    Jerry.

     

     

    Bin.


  • 4.  Re: Cordova Deployment

    Posted Mon September 28, 2015 04:11 AM

    Hi,

    thank you Jerry.

    The error is gone...

     

    But if i try to run the application i got an other error...

     

     

     

     

     

    Kind regards!

    Marcel-D


  • 5.  Re: Cordova Deployment

    Posted Mon September 28, 2015 04:27 AM

    Hi,  it shows that you may not have any available android devices connected on your machine.  If you connected, maybe the driver is not configured.  Pls run "adb devices" in cmd to check the available device lists.(adb.exe in android-sdk-folder\platform-tools).

    And another question, have you tried  "run on Mobile Device Emulator"? Does it work?

    Jerry.

    Bin.


  • 6.  Re: Cordova Deployment

    Posted Mon September 28, 2015 04:40 AM

    Hi thank you very much,

    there is an available android device.

     

     

    This is the device:

     

     

     

    Marcel-D


  • 7.  Re: Cordova Deployment

    Posted Mon September 28, 2015 04:56 AM

    Well  I need to investigate the project but I could not download your project from that site. Any other ways to share?

    Bin.


  • 8.  Re: Cordova Deployment

    Posted Mon September 28, 2015 05:13 AM

    Thank you for your help!

    here is an other download link (can't upload it here 22MB is too big...) :

    https://onedrive.live.com/redir?resid=693F19082585AE30!630&authkey=!AHgTcfXxscodlvc&ithint=file%2czip

    Marcel-D


  • 9.  Re: Cordova Deployment

    Posted Mon September 28, 2015 05:19 AM

    Hi, I got the project  from the first link after using VPN....And I am downloading android sdk and will investigate your project soon.

    You can try to uninstall api 23, and set up a new workspace(do not need Jquery). I doubt there are some conficts between latest sdk/build tools and cordova.

    Bin.


  • 10.  Re: Cordova Deployment

    Posted Mon September 28, 2015 05:41 AM

    Hi,

    API 23 is not installed.

    Maybe the Andoird SDK Build-tools are wrong?!

     

    Marcel-D


  • 11.  Re: Cordova Deployment

    Posted Mon September 28, 2015 06:07 AM

    I've removed the SDK Build-tools 23.0.1 and added 22.0.1.

    Then i've created a new project, but i've got still the same errors.

    Marcel-D


  • 12.  Re: Cordova Deployment

    Posted Mon September 28, 2015 07:22 AM

    Hi, I tried your project and it works for me. It was not caused by build tools I think because I use 23.0.1.

    The differences between your envirments and mine are AVD devices,android sdk,and oracle jdk(1.7 64bit).

     

     

    Bin.


  • 13.  Re: Cordova Deployment

    Posted Mon September 28, 2015 07:25 AM

    Bin.


  • 14.  Re: Cordova Deployment

    Posted Mon September 28, 2015 10:34 AM

    Thanks again for your help.

    But i still don't know what's wrong in my environment...

    In the second project i've uploaded i'm using jdk 1.7 too and i've also tried the settings of your AVD..

    I tried it also on a second workstation with the same errors....

     

    Kind regards!

    Marcel-D


  • 15.  Re: Cordova Deployment

    Posted Mon September 28, 2015 04:32 AM

    Just ignore my second question...

    Bin.


  • 16.  Re: Cordova Deployment

    Posted Tue September 29, 2015 04:04 AM

    Hi Marcel,

    From the console message, the error happens when running "C:\EGL91\test\test\platforms\android\cordova\run.bat --emulator". Could you please run the command in the external cmd so that we can have more logs?

    This looks like a configuration problem of the cordova tools or android SDK. Here is the guide in Apache Cordova document about the configuraion for Android platform. "Install Android SDK", "Configure the emulator" can be a good reference. If you happen to have ADT installed, you can also try to create a android project and run it to verify the environment.  

    -Jiyong

    HuangJiYong


  • 17.  Re: Cordova Deployment

    Posted Tue September 29, 2015 05:09 AM

    Hi Ji Yong Huan,

    thank you.

    The result is very strange...

     

     

     

    However i've installed the SDK Platform for Android 2.2 but still the same error.

     

    Marcel-D


  • 18.  Re: Cordova Deployment

    Posted Tue September 29, 2015 05:21 AM

    Hi Marcel,

    Have you tried the "Hint" in the cmd log? It looks like the path for the SDK is incorrect as there is a space before SDK (\ SDK), can you confirm it?

    Please also check the RBD cordova preference ( Window -> Preferences -> Platforms -> Android, Check the location for the SDK, make sure it is correct.

    -Jiyong

     

    HuangJiYong


  • 19.  Re: Cordova Deployment

    Posted Tue September 29, 2015 06:22 AM

    ok,

    i've reinstalled the Android SDK to a path without a space.

     

    But there is still the same error (if i try the 'Hint' the SDK Manager opens)

     

    I've also checked the cordova preferences

     

     

     

    everything looks fine for me but nothing works.

     

    Marcel-D


  • 20.  Re: Cordova Deployment

    Posted Tue September 29, 2015 06:36 AM

    Hi Marcel,

    I google the error, this answer in stackoverflow may help you:

    http://stackoverflow.com/questions/29396252/cordova-error-please-install-android-target-android-21

    HuangJiYong


  • 21.  Re: Cordova Deployment

    Posted Tue September 29, 2015 07:17 AM

    Hi,

    i checked this.

    But i think it is correct because i want to use sdk version 22 ?!

     

    I've also checked the environment variable...

    Marcel-D


  • 22.  Re: Cordova Deployment

    Posted Tue September 29, 2015 08:53 AM

    Hi Marcel,

    It is weird because all configuration looks pretty good. Two more things to check

    1. In your cordova preference screenshot, your JDK location is set to a folder under C:\IBM. The JDK is required to be oracle JDK instead of IBM JDK. Do you use the correct one?

    2. Can you create a new Cordova project directly and try if it works. Click File -> New -> Preject, enter cordova to filter the project type. After the project created, just right click to run it.

     

    HuangJiYong


  • 23.  Re: Cordova Deployment

    Posted Tue September 29, 2015 09:41 AM

    Thank you very much Jiyong and Jerry Smile !!

    You are the best !

    I used the IBM JDK....

     

     



    Marcel-D


  • 24.  Re: Cordova Deployment

    Posted Wed April 12, 2017 03:47 AM

    Hi Marcel,

    What are your experiences with EGL's Cordova integration?

    Are you still developing mobile apps with EGL and Cordova?

    Regards,

    Guus

     

    gweis


  • 25.  Re: Cordova Deployment

    Posted Wed April 12, 2017 06:41 AM

    Hi Guus,

    after the trouble at the start, it worked for Android.

    But the possibilities to create a usefull mobile app for business customers are limited.

    At the moment we don't develop mobile apps with EGL and Cordova.

     

    Kind Regards!

    Marcel-D


  • 26.  Re: Cordova Deployment

    Posted Fri April 14, 2017 06:09 AM

    Hi Guus,

    we developed some mobile apps with EGL and Cordova. If you need more specific details, you know how to contact us.

     

    Arie

    Axians

    Axians


  • 27.  Re: Cordova Deployment

    Posted Wed April 19, 2017 02:36 AM

    Hi Arie,

     

    Thanks for your response. If applicable we will most certainly contact you.

    At this point we are investigating whether EGL and Cordova are the right platform for us to build mobile apps on, or not.

    Besides some technical details we have overcome, one of our concerns is the size of the EGL community user base actually developing mobile apps based on EGL-Cordova-DojoMobile, and IBM's commitment in supporting this functionality in future RBD releases.

    Are the mobile apps you have been developing still in experimental stage? Or are (some of) your customers actually using the mobile apps you have developed? 

    Are there any other forum users who have made EGL-Cordova-DojoMobile their strategic platform to build mobile apps on?

    Any comment of you Arie, other forum members or IBM on this topic, would help us make this choice, and hopefully others too.

     

    Kind regards,

    Guus

    gweis


  • 28.  Re: Cordova Deployment

    Posted Sun April 23, 2017 04:14 PM

    Hi Guus, yes we certainly developed some mobile apps with EGL which are being used on a daily basis

    Watch this video for example (in Dutch)

    https://www.youtube.com/watch?v=257R3luvKQ4

     

    Regards

    Arie

    Axians

    Axians