4 Replies Latest reply on May 26, 2017 5:03 AM by gabrielg64889035

    Custom plugin not working (iOS)

    gabrielg64889035

      Hi,

      I have a custom Cordova plugin developed by a third party. I have created a test app for it and it works when compiled with Xcode, but not when compiled with PGB.

       

      The plugin is in a private GitHub repository and I have a PGB paid plan so I can use it.

       

      I have a test app that uses this plugin and builds fine (no errors) in the PGB service. The problem is that when I deploy and run it in my iPad, the app cannot communicate with the native plugin API. The following error can be seen in the iPad log:

       

      ERROR: Plugin 'MyPrivatePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

       

      The plugin element in config.xml looks like this:

      <plugin name="my-private-plugin" spec="https://github.com/my-repository/my-plugin.git#0.0.5" />

       

      This are not the real names, but I am sure they are correctly matched in my plugin.xml file. Whan can be causing the problem then?

       

      As I have said, the app and plugin work when compiled in Xcode (the plugin developer aided me in testing this), but I don't have the skills to develop/maintain this app with PhoneGap CLI and Xcode, so I need to use PGB.

       

      Thank you!

        • 1. Re: Custom plugin not working (iOS)
          kerrishotts Adobe Community Professional

          Try using the PGB repo instead -- if you're paying, you should be able to upload your own plugins for private use. Last I knew a private github repo wasn't an option (but maybe that's changed...)

          • 2. Re: Custom plugin not working (iOS)
            vangroover Adobe Employee

            private plugin repos are not yet supported.  it's on our list, but currently your github oauth token isnt available for plugins.

            • 3. Re: Custom plugin not working (iOS)
              gabrielg64889035 Level 1

              I will try with a public repo then. Thanks.

              • 4. Re: Custom plugin not working (iOS)
                gabrielg64889035 Level 1

                Hello Brett,

                I have tried with a public repo and I still get the error.

                This is the log produced at app start:

                 

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Apache Cordova native platform version 4.3.1 is starting.

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Multi-tasking -> Device: YES, App: YES

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Using UIWebView

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: [CDVTimer][handleopenurl] 0.414014ms

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Unlimited access to network resources

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Unlimited access to network resources

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: [CDVTimer][intentandnavigationfilter] 4.769027ms

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: [CDVTimer][gesturehandler] 0.321984ms

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: [CDVTimer][TotalPluginStartup] 6.807983ms

                May 26 13:35:42 iPad-de-Josep TestRFID[1085] <Warning>: Resetting plugins due to page load.

                May 26 13:35:44 iPad-de-Josep TestRFID[1085] <Warning>: Finished load of: file:///var/containers/Bundle/Application/54BB35A7-9C3E-4486-9270-CEDAD622C88B/TestRFID.a pp/www/index.html

                May 26 13:35:45 iPad-de-Josep TestRFID[1085] <Warning>: ERROR: Plugin 'CaenRfidPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

                 

                This is my plugin, as specified in config.xml:

                <plugin name="tracetoo-plugin-caenrfid" spec="https://github.com/an3ss/pplgubg.git#0.0.5" />

                 

                Any ideas?