Software Archive
Read-only legacy content
17061 Discussions

Where the JAVA file of the plugin goes to? SMS not defined issue

Sara_P_1
Beginner
194 Views

Hi everyone

I am using the SMS file plugin (https://github.com/floatinghotpot/cordova-plugin-sms) and I am getting SMS not defined.

I believe it has something to do with the plugin not being loaded correctly. I added it graphically, through Projects->Plugin Management.

When I debug to a real android device, I see the folders plugin and the sms plugin is there with the .js file in it.

Should the JAVA file also be uploaded? I do not find it. Could this be the reason why I am getting SMS not defined?

Also, do I have to reference sms.js in the index.html file?

Thanks.

 

0 Kudos
2 Replies
Amrita_C_Intel
Employee
194 Views

Hello Sara,

Are you using third party plugin option? Which plugin source option you are using?

What are the steps you are following in order to add that plugin?

You can search inside the index.html that does it have any sms.js reference.

You don't have to add any JAVA files.

Please refer this link: https://github.com/cordova-sms/cordova-sms-plugin/issues/48

0 Kudos
Sara_P_1
Beginner
194 Views

Thanks Amrita. I already managed to get it working. Regards

0 Kudos
Reply