I just purchased the license for the facebook analytics plugin on solar2dmarketplace.com but the simulator fails to download it.
This is the plugins table in build.settings:
["plugin.facebookAnalytics"] =
{
publisherId = "scotth.tech",
supportedPlatforms = {
iphone = { url="https://solar2dmarketplace.com/marketplacePlugins?ID=<id>&plugin=FacebookAnalytics_scotth-tech&type=iOS"},
android = { url="https://solar2dmarketplace.com/marketplacePlugins?ID=<id>&plugin=FacebookAnalytics_scotth-tech&type=Android"},
macos = { url="https://solar2dmarketplace.com/marketplacePlugins?ID=<id>&plugin=FacebookAnalytics_scotth-tech&type=MacOS"},
}
},
This is how I require it in my code:
local facebookAnalytics = require("plugin.facebookAnalytics")
This is the error I get when launching the simulator:
ERROR: Runtime error
/Users/runner/work/corona/corona/platform/resources/init.lua:931: module 'plugin_ facebookAnalytics' not found:
no field package.preload['plugin_facebookAnalytics']
no file '/Users/vince/Library/Application Support/Corona/Simulator/Plugins/plugin_facebookAnalytics.lua'
no file '/Users/vince/Projects/Vince_Game/plugin_facebookAnalytics.lua'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_facebookAnalytics.lua'
no file '/Users/vince/Library/Application Support/Corona/Simulator/Plugins/plugin_ facebookAnalytics.dylib'
no file './plugin_ facebookAnalytics.dylib'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_ facebookAnalytics.dylib'
I’ve tried on both Solar2d versions 3583 and 3601.