distriqt / ANE-Message

Send messages from AIR using email and SMS
https://airnativeextensions.com/extension/com.distriqt.Message
0 stars 0 forks source link

Error #1065: Variable com.distriqt.extension.message::Message is not defined. #37

Closed csumsky closed 6 years ago

csumsky commented 6 years ago

This is the 2nd Distriqt ANE that I am using. The first is the Contacts ANE and it is operating correctly. I have regenerated my key, and it shows both ANEs below the regenerated key.

But when I call

Message.init( Globals.DistriqtAPIKey ); // This is same key I use for my Contacts

I get an exception.

ReferenceError: Error #1065: Variable com.distriqt.extension.message::Message is not defined.

I downloaded the project from github, and pulled the ANE from the ANE-Message-master/lib dir

It SEEMS dead simple, so I am not sure what I am doing incorrectly.

Thoughts?

marchbold commented 6 years ago

Have you correctly added the extension to your application including the extension entry in your descriptor?

https://github.com/distriqt/ANE-Message/blob/master/example/starling/src/TestMessage-app.xml#L75-L79

Also check you have included the correct import statement in your code:

import com.distriqt.extension.message.Message;
csumsky commented 6 years ago

Doh, forgot to add the extension. Thanks.