Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sara_P_1
Beginner
46 Views

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

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.

 

Tags (2)
0 Kudos
2 Replies
Amrita_C_Intel
Employee
46 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

Sara_P_1
Beginner
46 Views

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

Reply