si
Posts: 0
Joined: Mon Jul 14, 2014 5:13 pm

Plugin problem

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Plugin problem

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/...

si
Posts: 0
Joined: Mon Jul 14, 2014 5:13 pm

Plugin problem

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!

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Plugin problem

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Plugin problem

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

si
Posts: 0
Joined: Mon Jul 14, 2014 5:13 pm

Plugin problem

Hi Evgene,
Screen captures from app "SMS_TEST"
js folder:
Image
Cordova_plugins.js:
Image
java folder:
Image
config xml:
Image

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.

si
Posts: 0
Joined: Mon Jul 14, 2014 5:13 pm

Plugin problem

Oops...AndroidManifest should have been: Image
...getsatisfaction swallowed the xml!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Plugin problem

Hello Si,

Thank you for your update.

si
Posts: 0
Joined: Mon Jul 14, 2014 5:13 pm

Plugin problem

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Plugin problem

Hello,

We are very sorry for delay, we are working on it at the moment

Return to “Issues”