We’re working on a project with a Corona Enterprise license, and have created a plugin to access the complete contact list on both iOS and Android. The plugins has been tested for both platforms using Xcode 5.1.1 and Eclipse Luna SDK version 21, as well as with Corona Simulator 2015.2538.
The plugin has been made using the information from
http://docs.coronalabs.com/daily/native/plugin/index.html
http://docs.coronalabs.com/daily/native/plugin/submission.html
http://docs.coronalabs.com/daily/native/hostedPlugin.html
https://github.com/coronalabs/plugins-submission-template
The plugin is a library, and we have named it as such for now – referencing it as ”plugin.library”in build.settings.
We are using this as a self-hosted plugin, and have uploaded to
http://54.69.86.94/app/iphone.tgz
http://54.69.86.94/app/android.tgz
However, when we try to compile versions for device we run into a problem:
File: main.lua Line: 29 Attempt to call field ’getAllContacts’ (a nil value) Stack traceback: Main.lua:29: in main chunk
The plugin is located here:
https://github.com/zhongge/getAllContacts-Corona-Library
From build.settings:
plugins = { ["plugin.library"] = { publisherId = "com.coronalabs", supportedPlatforms={ iphone={url="http://54.69.86.94/app/iphone.tgz"}, android={url="http://54.69.86.94/app/android.tgz"}, mac-sim=false, win-sim=false, } }, },