error: local OneSignal=require("plugin.OneSignal")

  1. I’ve logged into Corona and see that OneSignal is Active.

  2. I’ve logged into my OneSignal account and added my new app for Android, which it now shows as ACTIVE.

  3. I have my build.settings configured with these two lines - if I remove the second line, I get a different error, so I suppose they must both be included:

     [“plugin.OneSignal”] = { publisherid = “com.onesignal” },
     [“plugin.google.play.services”] or [“plugin.googleanalytics”], --usually needed for Corona SDK build 2016.3004 and older

When Corona attempts to build/run, I get this error:

ERROR: Runtime error
?:0: attempt to call a nil value
stack traceback:
    ?: in function ‘require’
    /Volumes/New A4/main.lua:16: in main chunk
Program stopped (pid: 72117).
Program completed in 3.83 seconds (pid: 72117).

line 16 of main.lua is:
local OneSignal=require(“plugin.OneSignal”)

Any help is very much appreciated.

Hmmm. You don’t need the play services. The only difference I see between what I have and you have shared is the lower case letter I (eye) in publiserid. I have an upper case.

Wow! That did it! Thank you @agramonte!

Hmmm. You don’t need the play services. The only difference I see between what I have and you have shared is the lower case letter I (eye) in publiserid. I have an upper case.

Wow! That did it! Thank you @agramonte!