Pollfish plugin not found

Hello,

Problem

I wanted to try out the new Pollfish plugin but I seem to be getting an error when loading up the simulator. Here is a screenshot: http://puu.sh/qmXEC/4b1b0d7bc7.png 

What I have

  1. Added this to the top of build settings:

    [“plugin.pollfish”] =         {             publisherId = “com.coronalabs”,             supportedPlatforms = { iphone=true, android=true }         },

  2. Added this to my main lua file :

    local pollfish = require( “plugin.pollfish” )

following permissions:

         

   "android.permission.INTERNET",             "android.permission.RECEIVE\_BOOT\_COMPLETED",             "android.permission.ACCESS\_NETWORK\_STATE",            "android.permission.READ\_PHONE\_STATE",             "android.permission.ACCESS\_WIFI\_STATE",             "android.permission.ACCESS\_COARSE\_LOCATION",             "android.permission.ACCESS\_FINE\_LOCATION"

Simulator 2015.2731

What I have tried

  1. I remember seeing this before when I used a new plug in and the recommendation was to remove all references within the lua code, make sure the build.settings has the plugin and permissions updated, and then build an android app from the remote server. I believe the idea was the server would notice a new plugin and bring the files over but that might just be speculation. 
  2. Just removing the require line seems to remove the runtime error but once I put it back in it appears again.

I know this is a new plugin and I was wondering if its a bug, if anyone is having the same issue, or if I am just doing something wrong?

Thanks,

Adam

Have you subscribed to the plugin in the Corona store?

From what I can tell its pre-activated

Can you post your complete build.settings?

I have the following:

settings = { orientation = { default ="landscapeRight", content = "landscapeRight", supported = { "landscapeRight" }, }, plugins = { -- key is the name passed to Lua's 'require()' -- ["plugin.googleAnalytics"] = -- { -- publisherId = "com.coronalabs" -- }, ["plugin.parse"] = { -- required publisherId = "com.develephant", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, ["facebook"] = { publisherId = "com.coronalabs" }, ["plugin.pollfish"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, android=true }         }, }, android = { usesPermissions = { "android.permission.INTERNET",            "android.permission.RECEIVE\_BOOT\_COMPLETED",   "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION" }, }, }

Try this:
 

settings = { orientation = { default ="landscapeRight", content = "landscapeRight", supported = { "landscapeRight" }, }, plugins = { -- key is the name passed to Lua's 'require()' -- ["plugin.googleAnalytics"] = -- { -- publisherId = "com.coronalabs" -- }, ["plugin.parse"] = { -- required publisherId = "com.develephant", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, ["facebook"] = { publisherId = "com.coronalabs" }, ["plugin.pollfish"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE" "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", }, }, }

I am not at my computer to try but I only see a style difference. I pulled this from my github latest version and added the pollfish plugin which I messed up the pasting which messed up the formatting. So I believe I have the same formatting at home but I cant guarantee that for sure. I havent seen any other post on Pollfish plugin so I am not sure if anyone has even tried it yet? Did you try and add it in a sample project to see if it works(I havent tried this but I might once I get home)?

Thanks,

Adam

The build setting had a bunch of color tags [color=“ababab”] in them. This will cause errors. I cleaned the color codes out of the build.settings and posted clear text back.

Yes thats what I was trying to refer to in my last post, I messed up the pasting and it threw those in there and manually tried to clean them out which I missed a few. 

My question still stands is has anyone gotten this to work before?

Issue continues

Alright so I tried what you had and got the same result. The layout was all funky but that’s because you forgot to add comma after one of the permissions.

Experiment

I created a blank project where all I tried to add was that 1 plugin, with the required permissions listed, and the require line “local pollfish = require( “plugin.pollfish” )” and still got the same result. I also restarted my computer just to make sure it was in a clean state. 

Just for reference here are settings I am using for my main project:

settings = { orientation = { default ="landscapeRight", content = "landscapeRight", supported = { "landscapeRight" }, }, plugins = { -- key is the name passed to Lua's 'require()' -- ["plugin.googleAnalytics"] = -- { -- publisherId = "com.coronalabs" -- }, ["plugin.parse"] = { -- required publisherId = "com.develephant", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, ["facebook"] = { publisherId = "com.coronalabs" }, ["plugin.pollfish"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", }, }, }

I just did a quick test requiring the plugin and including it in build.settings. I was unable to reproduce the problem. I even tried to build on windows and it worked as expected.

I’ve sent a note to an Engineer to look into it.

Rob

In the mean time, can you take a sample project like our “HelloWorld” sample and try to add Pollfish to the build.settings and require it in the main.lua and see if you have the same problem?

Rob

Yep I already did that.
Well not exactly but I created my own “HelloWorld” project. In a few hours I can try out that but I suspect to get the same result.

@Rob I tried again with a sample project and got the same results.

Can you zip up that sample project and post a dropbox link (or such) here for me to grab it?

Thanks

Rob

Yes I can do that in a couple of hours once I get home.

-Adam

@Rob

Here is the zip file you were asking for : https://www.dropbox.com/s/h7s3z4ygep6b1dr/helloWorld.7z?dl=0

And here is the error for this project: http://puu.sh/qpWen/ba6afdcb61.png 

Thanks,

Adam

Can you make it a .zip file please?

Here you go: https://www.dropbox.com/s/mi0g1w2ufddk3ip/helloWorld.zip?dl=0

@Adam
I had a look at the sample project you submitted above. The build.settings file was missing a comma after the plugins section (before the android section) 

 plugins = { ["plugin.pollfish"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, ["iphone-sim"] = true } }, }, \<== WAS MISSING THIS COMMA -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", }, },

After I added the comma to build.settings I was able to build and run on iOS and Android.