– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings = {
orientation = {
default = “portrait”,
supported = { “portrait” }
},
plugins =
{
– share native popup
[“CoronaProvider.native.popup.social”] =
{
publisherId = “com.coronalabs”
},
– facebook api, invite frds, etc
[“plugin.facebook.v4”] =
{
publisherId = “com.coronalabs”
},
– corona allow notifications
[“plugin.notifications”] =
{
publisherId = “com.coronalabs”,
},
– push notification provider
[“plugin.OneSignal”] =
{
publisherId = “com.onesignal”,
},
– used by OneSignal, googles push infrastructure
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true, [“android-kindle”]=true },
},
},
iphone =
{
plist =
{
UIBackgroundModes = {“remote-notification”},
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
– this setting must be false, because various plugins
– put suspend the app while they do their business
– then resume the app
--UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
--facebookAppId =“165360666152xxxx”, – TEST
FacebookAppID = “163291933359xxxx”,
– iOS app URL schemes:
– basically these are ways of invoking an app using a url
– and can therefore be used to pass control between apps
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
--facebookAppId =“fb165360666152xxxx”, – TEST
“fb163291933359xxxx”, – example scheme for facebook
--“coronasdkapp”, – example second scheme
}
}
},
– Whitelist Facebook Servers for Network Requests
NSAppTransportSecurity =
{
NSExceptionDomains =
{
[“fbcdn.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“facebook.com”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“akamaihd.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
},
},
– Whitelist Facebook Apps
LSApplicationQueriesSchemes =
{
“fb”,
“fbapi20130xxx”,
“fbapi20130xxx”,
“fbapi20140xxx”,
“fbapi20140xxx”,
“fbapi20150xxx”,
“fbapi20150xxx”,
“fbauth”,
“fbauth2”,
“fb-messenger-api20140xxx”,
},
}
},
android =
{
facebookAppId = “163291933359xxxx”,
--facebookAppId =“165360666152xxxx”, – TEST
permissions =
{
{ name = “.permission.C2D_MESSAGE”, protectionLevel = “signature” },
},
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.GET_ACCOUNTS”,
“android.permission.RECEIVE_BOOT_COMPLETED”,
“com.google.android.c2dm.permission.RECEIVE”,
“.permission.C2D_MESSAGE”,
},
},
}