benbahrenburg / benCoding.SMS

SMS Dialog Module for Titanium Mobile
Other
29 stars 17 forks source link

Issue with doc #12

Open yankovalera opened 8 years ago

yankovalera commented 8 years ago

Hello this example:

var sms = require('bencoding.SMS').createSMSDialog({ barColor:'#336699', //set the SMS Dialog barColor messageBody:"Appcelerator Titanium Rocks!", //Set SMS Message toRecipients:[{"555-555-5555"},{"444-444-4444"}] //Who we are the SMS sending to });

Requiring "'bencoding.SMS" throws this: Script Error Couldn't find module: bencoding.SMS for architecture: armv7 (should be all lowercase)

Also having the recipients enclosed with {} throws an error when compiling.

Thanks

hansemannn commented 8 years ago

The module definitely requires an Array argument that holds Strings, not Objects, see here.