ok, here is my build settings ;
– 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 =“1653606661511111”, – TEST
FacebookAppID = “574882662611111”,
– 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 =“fb1653606661511111”, – TEST
“fb574882662611111”, – example scheme for facebook
--“coronasdkapp”, – example second scheme
}
}
},
– Whitelist Facebook Servers for Network Requests
NSAppTransportSecurity =
{
NSExceptionDomains =
{
[“myserver.com”] =
{
NSIncludesSubdomains = true,
NSThirdPartyExceptionAllowsInsecureHTTPLoads = true
},
[“fbcdn.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“facebook.com”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
[“akamaihd.net”] =
{
NSIncludesSubdomains = true,
NSExceptionRequiresForwardSecrecy = false,
},
},
},
– Whitelist Facebook Apps
LSApplicationQueriesSchemes =
{
“fb”,
“fbapi20130214”,
“fbapi20130410”,
“fbapi20140410”,
“fbapi20140116”,
“fbapi20150313”,
“fbapi20150629”,
“fbauth”,
“fbauth2”,
“fb-messenger-api20140430”,
},
}
},
android =
{
facebookAppId = “574882662611111”,
--facebookAppId =“1653606661511111”, – 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”,
},
},
}