Lua code for OneSignal notification

OneSignal notification example code that are provided here¬†include¬†languages such as Node.js, C#, Python, PHP, Java, Ruby, Perl…, but there’s no Lua.

So here it is, the Lua version for Corona SDK (including a listener):

2 thoughts on “Lua code for OneSignal notification

  1. Hi,

    Thanks for the code.

    I always get the following error even though I have set everything right:
    RESPONSE: {“errors”:[“app_id not found. You may be missing a Content-Type: application/json header.”]}

    Any idea why I’m getting that error?

    1. Sorry I don’t have an answer but googled “app_id not found. You may be missing a Content-Type: application/json header.” and found some solutions that may be useful for you.

Leave a Reply

Your email address will not be published. Required fields are marked *

one × = nine