Page 1 of 2
Plugin problem
Posted: Tue Jul 15, 2014 4:13 pm
by si
Hi
I have followed your document 'Using native device features (PhoneGap)' to try and install an SMS plugin 'com.jsmobile.plugins.sms'. Having carefully followed the instructions several times, and installed the app on my mobile, I always end up with an "sms is not defined" javascript error. I know the plugin initialisation script is called because I have tried putting an alert() in to it. And the app builds ok. It seems as if the Appery shell is losing the reference to the plugin initialisation object, making it impossible to call.
I have built a stripped down version of my app called 'SMS_test' containing only 2 text boxes, a 'send sms' button and the plugin.
What can I try next?
Plugin problem
Posted: Tue Jul 15, 2014 5:10 pm
by Kateryna Grynko
Hi,
Most probably you haven't connected some JavaScript file or incorrectly specified a file path. Custom plug-ins fall outside the scope of our support unfortunately (http://devcenter.appery.io/support-po...).
I would recommend that you check this SMS app example
http://devcenter.appery.io/documentat... or http://devcenter.appery.io/tutorials/...
Plugin problem
Posted: Wed Jul 16, 2014 7:36 am
by si
Thanks for the reply.
Unfortunately, neither of your recommendations is suitable.
The 'window.location.href = "sms:...' method only allows a single telephone number to be included, and my application needs to send a text to a group of numbers.
The AT&T SMS service doesn't identify the original sender, and charges for each message...when most users have free SMS included in their contract!
Plugin problem
Posted: Wed Jul 16, 2014 9:35 am
by Kevin Preston
Si,
Have a look at
https://getsatisfaction.com/apperyio/...
It seems adding plugins isn't as easy as the docs suggest and the Appery build process doesn't work properly.
Kevin
Plugin problem
Posted: Wed Jul 16, 2014 12:54 pm
by Evgene Karachevtsev
Kevin,
Yes this is a good example of the plugin integration, thank you.
Si,
Please look at the link provided by Kevin. If'll have any questions please provide us with screenshots and description of what you did
Plugin problem
Posted: Wed Jul 16, 2014 3:55 pm
by si
Hi Evgene,
Screen captures from app "SMS_TEST"
js folder:
Cordova_plugins.js:
java folder:
config xml:
Also I have added the following to AndroidManifest.xml:
SMS Plugin on GitHub: https://github.com/hazems/cordova-sms...
My app 'SMS_TEST' calls the plugin from a button click event exactly as in the GitHub docs above.
Plugin problem
Posted: Wed Jul 16, 2014 3:58 pm
by si
Oops...AndroidManifest should have been:
...getsatisfaction swallowed the xml!
Plugin problem
Posted: Fri Jul 18, 2014 10:27 am
by Evgene Karachevtsev
Hello Si,
Thank you for your update.
Plugin problem
Posted: Fri Jul 25, 2014 8:32 am
by si
Hi Evgene
You asked me to send screenshots, which I did 9 long days ago. I'm worried that my subscription is ticking away and I'm not making any progress.
Is there any realistic prospect of Appery being able to integrate an SMS plugin that transmits a message to multiple recipients from the user's mobile?
Plugin problem
Posted: Mon Jul 28, 2014 1:11 pm
by Evgene Karachevtsev
Hello,
We are very sorry for delay, we are working on it at the moment