Hi,
This is the source that should work (but does not)
BUILD.SETTINGS
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, },
},
–
– Android section
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
},
},
–
– iOS section
iphone =
{
plist =
{
UIStatusBarHidden = false,
UILaunchStoryboardName = “LaunchScreen”,
CFBundleIconFiles =
{
“Icon-40.png”,
“Icon-58.png”,
“Icon-76.png”,
“Icon-80.png”,
“Icon-87.png”,
“Icon-120.png”,
“Icon-152.png”,
“Icon-167.png”,
“Icon-180.png”,
},
NSContactsUsageDescription = “This app would like to access your contacts.”,
},
},
–
– Plugins section
plugins =
{
[“CoronaProvider.native.popup.addressbook”] =
{
publisherId = “com.coronalabs”
},
},
–
– Project section
excludeFiles =
{
– Exclude unnecessary files for each platform
ios = { “Icon.png”, “Icon-*dpi.png”, },
android = { “Icon.png”, “Icon-??.png”, “Icon-???.png”, “LaunchScreen.storyboardc”, },
},
}
[/lua]
MAIN.LUA
[lua]-----------------------------------------------------------------------------------------
– main.lua
– Your code here
–require(“addressbook”)
native.showPopup( “addressbook”,
{
option = “newContact”, --“pickContact”, “viewContact”, “newContact”, or `“unknownContact”
–additional options (see below)
firstName = “Jack”,
lastName = “Sparrow”,
}
)[/lua]
Thanks