hazems / cordova-sms-plugin

A custom Cordova plugin which allows sending SMS messages in Android, iOS and Windows Platforms.
33 stars 20 forks source link

sms undefined #1

Open projekt01 opened 9 years ago

projekt01 commented 9 years ago

I'm using phonegap 3.4.0 on android and the sms reference in my javascript is undefined if I access them. The plugin got installed with phonegap plugin add com.jsmobile.plugins.sms

Did I miss a setup step or should this plugin just work out of the box? Does it work with the latest phonegap 3.4.0?

hazems commented 9 years ago

Please give a look into the plugin test project: https://github.com/hazems/cordova-sms-plugin-test

As you see in this example, this plugin is tested and works perfectly with Cordova 3.4 in iOS, Android and wp8.

Although I never tried it with PhoneGap, however, it should work fine with no problems as PhoneGap code is much similar to Cordova code.

Feel free to share your code with me if you need my assistance.

kevyworks commented 9 years ago

Is there an option to delete this message on success? how to implement it?

hazems commented 9 years ago

@triplekdev I think this is not possible to delete a message that is already sent.

kevyworks commented 9 years ago

Hi @hazems, Is it possible for you to have a function to delete the message after this has been sent? I am trying to use the traditional way of putting null at sendPI (PendingIntent) this works other versions but not on Kitkat. I am trying to implement a SMS systems for the collectors and the SMS format must not however show on the messages inbox or thread. Can you help? I will surely appreciate it.