connecting problem

  1. MyEclipse IDE > Mobile Tooling

This topic contains 3 replies, has 2 voices, and was last updated by  support-swapna 4 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #487604 Reply

    oxygen01
    Participant

    I got this probem when i try to add plugin to phonegap project :
    “Problem while getting Cordova plugin details
    Can not retrieve plugin information for nl.x-services.plugins.toast. Please check network connection.
    Connection timed out: connect”

    #487656 Reply

    support-swapna
    Moderator

    oxygen01,

    I am afraid you are seeing a known issue. The Apache Cordova core plugins registry and source has been changed and the Add Plugin wizard does not reflect the changes.

    You can install the Cordova plugins using either of these ways:

    1. Using the GIT url. Switch to the GIT tab in the Add Plugin wizard and specify the GIT url for the plugin. You can search for the plugins you want to install and get the corresponding GIT url from here : http://cordova.apache.org/plugins/

    2. You could click “Download Zip” from github, unzip the downloaded file and then, switch to the Directory tab in the Add Plugin wizard and point to the unzipped folder.

    Please make sure that the version of the plugin being added is supported by the PhoneGap build.

    I could install the nl.x-services.plugins.toast plugin to a PG project by adding the following xml to the config.xml :

    <gap:plugin name="nl.x-services.plugins.toast" source="plugins.cordova.io" version="2.5.2" />

    as per the instructions in this thread :

    https://github.com/Paldom/ETrade-Client-NG/tree/master/plugins/nl.x-services.plugins.toast

    Since the Apache Cordova core plugins registry and source has been changed to npm from plugins.cordova.io, remote build will fail for the plugin. Only local build will work with the above xml. ‘

    I could get the remote build to work when I add the following to xml (note the older version of the plugin and the change in the source):

    <gap:plugin name="cordova-plugin-x-toast" spec="2.3.2" source="npm" />

    It looks like a known issue with the newer versions of the plugin in the npm as per this thread : https://software.intel.com/en-us/forums/intel-xdk/topic/607578

    Here is the plugin catalog in npm : https://www.npmjs.com/package/cordova-plugin-x-toast

    Hope this helps. Apologies for inconvenience caused. Let us know how it works for you.

    –Swapna
    MyEclipse Support

    #487665 Reply

    oxygen01
    Participant

    Hello,how can i recognize the corresponding GIT url (i could not find it)?

    #487667 Reply

    support-swapna
    Moderator

    oxygen01,

    The corresponding GIT url is : https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git
    The GIT details are mentioned in this thread :
    https://build.phonegap.com/plugins/740

    As per the above link, you can also use the following xml :

    <gap:plugin name="nl.x-services.plugins.toast" source="pgb" spec="2.0" />

    Hope this helps. Let us know if you have any questions.

    –Swapna
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: connecting problem

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