I would like to find out if the user is in flight mode, and thought that would possibly work with appodeal.canShow("xyz").
In the docs, it says that the call should work with the modular beta plugins, which I am using. Daily build 3393 for Android.
But whenever I call the line, the app crashes. I hoped it would at least return nil. appodeal.isLoaded() works fine. These are the lines in the code:
print ("ABCD") print (appodeal.canShow("banner"))
11-04 12:56:37.865 28039 28054 I Corona : ERROR: Runtime error
11-04 12:56:37.865 28039 28054 I Corona : java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference