Pollfish: Cant get a poll to load

Hi, Im using Pollfish to show a poll and unlock a feature when it is completed, but I cant get a poll to load. The event.phase == “loaded” never get trigger. I made a separate project with just the code for show the polls.

Main.lua

 local justify = require("justify") local pollfish = require( "plugin.pollfish" ) local widget = require("widget") local w = display.contentWidth\*0.5 local h = display.contentHeight\*0.5 local centerX = display.contentCenterX local centerY = display.contentCenterY local width = display.actualContentWidth local isComplete = 0 local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization pollfish.load({custonMode=true}) --pollfish.load() elseif (event.phase == "loaded") then local wasLoaded = display.newText("Survey is loaded",centerX, centerY-300,native.systemFont,18) wasLoaded:setFillColor( 1 ) wasLoaded.anchorX = 0.5 elseif (event.phase == "completed") then isComplete = 1 end end pollfish.init( adListener, { apiKey="1abd4973-8288-41dd-acd4-87c86494f809", developerMode=true } ) goSurvey = function ( self, event ) local isSurveyLoaded = pollfish.isLoaded() if isSurveyLoaded == true then pollfish.show() end return true end checkR = function ( self, event ) local checkText = display.newText("", centerX, centerY+250,native.systemFont,18) checkText:setFillColor( 1 ) checkText.anchorX = 0.5 if isComplete == 1 then checkText.text = "Successful completed" elseif isComplete == 0 then checkText.text = "non completed" end return true end yesText= "Get started" checkRewardText = "Check reward" uText="UNLOCK THIS FEATURE" uMText= "Do a survey to PERMANENTLY unlock the diamond feature. INTERNET connection is required." local menuUp = display.newRect( centerX, centerY, width-15,width-150 ) menuUp.fill = {1} local unlockText = display.newText(uText, 15 ,menuUp.y- menuUp.height\*0.35, menuUp.width-15,0,native.systemFont,18) unlockText:setFillColor( 255/255, 180/255, 0 ) unlockText.anchorX = 0 unlockMText = justify.justifyFull { maxWidth = menuUp.width-15, rtl = false, text = uMText, font = native.systemFont, fontSize = 18, fillColor = {0} } unlockMText.anchorX = 0 unlockMText.x = 15 unlockMText.y = unlockText.y + 20 yesButton = widget.newButton( { label = yesText, labelColor = { default={ 0 }, over={ 1} }, onEvent = goSurvey, emboss = true, shape = "rect", width = (width-15)\*0.5, height = 50, fillColor = { default={ 255/255, 180/255, 0 }, over={1} }, font = native.systemFont, fontSize = 18 } ) yesButton.x = centerX + (width-15)\*0.25 yesButton.y = centerY + menuUp.height\*0.5 + 25 checkReward = widget.newButton( { label = checkRewardText, labelColor = { default={ 0 }, over={ 1} }, onEvent = checkR, emboss = true, shape = "rect", width = (width-15)\*0.5, height = 50, fillColor = { default={200/255,200/255,200/255,1}, over={1} }, font = native.systemFont, fontSize = 18 } ) checkReward.x = centerX - (width-15)\*0.25 checkReward.y = centerY + menuUp.height\*0.5 + 25

 Build.settings

settings = { orientation = { default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { minSdkVersion = "16", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", }, }, -- -- Plugins section -- plugins = { ["plugin.pollfish"] = { publisherId = "com.coronalabs" }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

Is initialization successful?

You have a typo in customMode = true.

Any errors?

Also dont forget pollfish.hide() since you use customMode = true.

Hi, yes, initialization is successful. I fixed the typo error, but still the poll dont load. I dont get any errors.

Hi, I solve the problem, looks like when the corona live server is active the surveys dont load. When you deactivated it the surveys load. 

Is initialization successful?

You have a typo in customMode = true.

Any errors?

Also dont forget pollfish.hide() since you use customMode = true.

Hi, yes, initialization is successful. I fixed the typo error, but still the poll dont load. I dont get any errors.

Hi, I solve the problem, looks like when the corona live server is active the surveys dont load. When you deactivated it the surveys load.