firebase database demo does not run

Scott, i hope.

i downloaded your Firebase DB demo and i tried to run it to test out how to do a simple external DB save and recall.  But it does not run on my system.  i have actived your plugins, Firebase Storage, Database and Config.

i get a big error message about ‘plugin_firebaseDatabase’ not found

no field package.preload[‘plugin_firebaseDatabase’]

no file ‘C:\User\Administrator\AppData\Roaming\Corona\Labs\Corona Simulator\Plugins\plugin_firebaseDatabase.lua’

See image for full error list.

all i want to do is a simple external DB save to save some data from my app but as i am not familiar with this type of code or your plugin, i am getting nowhere fast.

is it possible that a simple Demo of saving something like Device ID and date to an external DB or file could be produced as an example to everybody.

Regards

Bruce

The plugin works for me. First, off firebase does not work on the desktop. It should have stubs to prevent you from getting errors. Have you activated the plugins the marketplace? Which demo are you using?  Can you post build.setting

Scott, i was trying to run it on my PC and i was trying your Demo programme whcih i down loaded from GitHub.

here is the error string i got in the simulator.

09:30:39.494 WARNING: issue found in D:\My Documents\Corona\firebaseDatabase-demo-master\firebaseDatabase-demo-master\build.settings:

09:30:39.494 WARNING: deprecated key: settings.iphone.plist.CFBundleIconFile (string)

09:30:41.724 PluginSync: plugin tech.scotth/plugin.firebaseDatabase needs to be updated for platform win32-sim to build number: 2264

09:30:41.724 PluginSync: downloading plugin: http://plugins.coronasphere.com/tech.scotth/plugin.firebaseDatabase/2014.2264/win32-sim/plugin.firebaseDatabase.zip

09:30:41.874 ERROR: Runtime error

09:30:41.874 module ‘plugin_firebaseDatabase’ not found:

09:30:41.874 no field package.preload[‘plugin_firebaseDatabase’]

09:30:41.874 no file 'C:\Users\Administrator\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_firebaseDatabase.lua’

and the build settings is as follows

settings =
{
 --[[
 orientation = {
  default = “portrait”,
  supported = { “portrait”, },
  – supported = { “landscapeLeft”, “landscapeRight” },
  – supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown”, },
 },
 --]]

 iphone =
 {
  plist =
  {
   – UIApplicationExitsOnSuspend = true, – default is false
   CFBundleIconFile = “Icon.png”,
   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”,
   },
  },
 },
 plugins =
 {
  [“plugin.firebaseDatabase”] =
        {
            publisherId = “tech.scotth”,
        },
 },
 android =
    {
        useGoogleServicesJson = true,
    },
}

What version of corona are you running? 

Scott

I am running the latest build 2017.3160

Bruce

I pinged a corona staff member. I believe this is a corona bug. I just tested this on my Mac. I know your running Windows but on corona simulator I just have lua stub to prevent you from getting a bunch of errors.

As far as I can see you are running under Administrator. I don’t usually work on Windows under this account so I am not sure about permissions but my suggestion here - you can’t save downloaded file because you don’t have write permissions. 

Try to launch Corona Simulator with option “Run As Administrator” and see if it works for you,