Page 1 of 1

bonjour plugin for ios

Posted: Mon Apr 14, 2014 9:08 pm
by Yan Yi

Hello!

I'm trying to integrate this plugin https://github.com/jarnoh/cordova-dnssd into Appery for iOS but it did not work. Used the iPhone Configuration Utility to check console log and the function did not get called. There might be two problems with this: either my code to run the plugin is wrong, or the plugin is not even installed correctly. Thus I have two questions:

  • Are there any steps I'm doing incorrectly? I seem to have a hard time integrating external plugins, not just this.

  • As appery does not have a command line interface like Cordova, how do I check whether my code is wrong, or the plugin is installed wrongly? Currently there is no way to tell and hard to debug what went wrong.

    Steps I've done to integrate it:

  • Add dnssd.h and dnssd.m files

  • Edit cordova_plugins.js

  • Add dnssd.js (can't find www subfolder of the plug-in folder in iOS folder, so I added in Android folder)

  • Edit config.xml

    Image Image Image
    Image


bonjour plugin for ios

Posted: Mon Apr 14, 2014 10:55 pm
by Illya Stepanov

Hi Yan -

Unfortunately for now you can't add PhoneGap plugin for iOS directly through Appery.io. The only way to do it is export to xCode and add it to xCode project.


bonjour plugin for ios

Posted: Tue Apr 15, 2014 11:06 am
by Kateryna Grynko

Hi Yan,

You seem to do it correctly. Probably this will be helpful:
http://docs.phonegap.com/en/edge/guid...