when i start my app, and come to the scene where i placed pollfish, then app gets error " unfortunately app has stopped"
Scene:
local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization pollfish.load() elseif ( event.phase == "loaded" ) then pollfish.show() end end pollfish.init( adListener, { apiKey="1710ffb1-206f-4b18-8f93-7050a16b91e4" } )
build.settings:
–
– For more information on build.settings see the Corona SDK Build Guide at:
– http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
–
settings =
{
plugins =
{
[“plugin.applovin”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true, appletvos=true }
},
– Include this for Android only
[“plugin.coronaAds”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
},
[“plugin.android.support.v4”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
},
[“plugin.inMobi”] =
{
publisherId = “com.coronalabs”
},
[“plugin.pollfish”] =
{
publisherId = “com.coronalabs”
},
[“plugin.revmob”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
},
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, }
},
excludeFiles =
{
– Include only the necessary icon files on each platform
iphone = { “Icon-*dpi.png”, },
android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
},
–
– iOS Section
–
iphone =
{
plist =
{
UIStatusBarHidden = false,
UIApplicationExitsOnSuspend = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
},
–[[
– iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fbXXXXXXXXX”, – replace XXXXXXXXX with your Facebook appId
}
}
}
–]]
}
},
–
– Android Section
–
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
},
},
}