Page 1 of 1
Added cordova sam plugin, now export to .apk fails
Posted: Tue Nov 10, 2015 9:26 pm
by apollo mcowiti
I added a cordova sms plugin (https://github.com/cordova-sms/cordov...), following the instruction found here (https://devcenter.appery.io/documenta...).
App failed when testing on browser with with error of "variable sms not defined"
Tried export of .apk so that can test on device, but the export fails. One suggestion of failure is that the source was modified ( true, during plugin addition, as suggested by the documentation). Is this is indeed the case of the failure, how else can a plugin be added?
Added cordova sam plugin, now export to .apk fails
Posted: Wed Nov 11, 2015 7:37 am
by Serhii Kulibaba
Hello,
Please check again all files, which you added into project. Have you added .js files and add them in the config.xml?
Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack: http://appery.io/services/#Advisory_Pack.
Added cordova sam plugin, now export to .apk fails
Posted: Thu Nov 12, 2015 3:52 pm
by apollo mcowiti
All files added as per the instructions i noted above.
Question is not on the plugin per se, but why the failure of the .apk export? The error is missing android package:
java:[80,43] error: package Telephony does not exist
Added cordova sam plugin, now export to .apk fails
Posted: Fri Nov 13, 2015 8:42 am
by Serhii Kulibaba
It looks like you didn't include JS file with Telephony variable (object/function).
Please add that JS file as a custom one (create new-JavaScript)
Added cordova sam plugin, now export to .apk fails
Posted: Fri Nov 13, 2015 4:52 pm
by apollo mcowiti
Added cordova sam plugin, now export to .apk fails
Posted: Fri Nov 13, 2015 5:02 pm
by apollo mcowiti
The error is actually on the Java file
/myapp/src/com/phonegap/plugins/sms/Sms.java:[13,23] error: cannot find symbol package android.provider /myapp/src/com/phonegap/plugins/sms/Sms.java:[79,76] error: cannot find symbol class VERSION_CODES /myapp/src/com/phonegap/plugins/sms/Sms.java:[80,43] error: package Telephony does not exist
Added cordova sam plugin, now export to .apk fails
Posted: Sat Nov 14, 2015 11:50 am
by Illya Stepanov
Hello -
In some cases you cannot add Cordova plugin only by using Appery.io builder you will need to export your project to Eclipse and continue adding it in there. Or wait for our update this weekend which will make possible adding mostly any Cordova CLI based plugin.