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?
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.
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?
@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.
@ingemar_corona unfortunately adding that comma didnt not resolve my issue. I still am getting this error when I try to launch the simulator : http://puu.sh/qpWen/ba6afdcb61.png
Very strange.
If I understand the problem correctly you get the “plugin not found” error right at the beginning when opening the Corona Simulator with this project. You don’t even get a chance to perform a device build, right? If so, the Windows stub for the plugin isn’t being downloaded to your computer for some reason…
@ingemar_corona,
Yes that is correct. What I have heard in the past was to include the plugin within the build settings, dont reference it in the code, launch the simulator and kick off a build. This is supposedly suppose to download the back end stuff and then when I re-add in the reference in the code it should work out, but that didnt help in this situation.
Any suggestions?
Run a command shell (cmd.exe) and type in:
cd %HOMEPATH%\AppData\Roaming\Corona Labs\Corona Simulator\Plugins
remove any plugin_pollfish.* file you find and retry your app.
Rob
Ive had some issues with plugins too
try adding this:
settings = { plugins = { ["plugin.advertisingId"] = { publisherId = "com.coronalabs" }, } }
make sure your connected to internet
worked for me. good luck
@Rob, I didnt see a plugin_pollfish.* file. Here is a screenshot: http://puu.sh/qr2Ui/0f59ddd071.png
To me that makes sense because that’s what the error is reporting that it cant find the plugin. Maybe its somehow not getting downloaded correctly?
@robertsthomasd Not sure what plugin this is or what you are trying to say here. I attempted to add in this to the project without the pollfish require refence in the main code and it runs in the simulator fine. Its once I add in the require for the pollfish plugin is where I am running into the error that the plugin cant be found. Internet shouldnt be an issue since I can access this webpage and such.
Humor me and remove everything in that folder and try again.
Rob
Removing the files: http://puu.sh/qr3Cy/e18eca36c8.png
Running project again: http://puu.sh/qr3I6/d69f8cef75.png
Directory after running project: http://puu.sh/qr3Km/14df882037.png
Quite strange :unsure:
-Adam
Edit: This is for the simple Hello World project.