I have a question concerning plugins. I am using the ionic framework (/) and Cordova for my hybrid app. I am using a toast (text popup) plugin to provide some feedback. Everything works but I decided that I needed some customization so I edited some of the .java files. It seems that my edit has no impact, it's really strange, the plugin also seems to keep working even when I ment out the execute function.
I am using the following ionic mand to test the app on my smartphone: "ionic run android"
Any idea why the plugin is not updating? Thanks in advance!
I have a question concerning plugins. I am using the ionic framework (http://ionicframework./) and Cordova for my hybrid app. I am using a toast (text popup) plugin to provide some feedback. Everything works but I decided that I needed some customization so I edited some of the .java files. It seems that my edit has no impact, it's really strange, the plugin also seems to keep working even when I ment out the execute function.
I am using the following ionic mand to test the app on my smartphone: "ionic run android"
Any idea why the plugin is not updating? Thanks in advance!
Share Improve this question asked May 18, 2014 at 14:27 JdruweJdruwe 3,5306 gold badges40 silver badges60 bronze badges 5- where did you change plugin code? in your project or in location from where you did install the plugin? – Maxim Shoustin Commented May 18, 2014 at 14:58
- I installed the plugin using this mand: phonegap local plugin add github./EddyVerbruggen/Toast-PhoneGap-Plugin.git. And than I edited its .java files – Jdruwe Commented May 18, 2014 at 15:11
-
I didn't use
ionic run android
mand but run from Eclipse. I'm not sure that this mand piles your project. It only takes project apk and runs on connected device. Compile project first. – Maxim Shoustin Commented May 18, 2014 at 15:15 - I am using webstorm for my whole project, any idea how I can do that? – Jdruwe Commented May 18, 2014 at 16:34
-
Can you see the plugin changes under these folder
platforms/android/src/<package name or directory>/<filename.java>
? – Aditya Singh Commented Apr 17, 2016 at 7:49
2 Answers
Reset to default 3I had issues with plugins as well and decided to remove/add them back in, then update platform and it worked.
cordova plugin rm org.apache.cordova.<plugin>
cordova plugin add org.apache.cordova.<plugin>
cordova platform update <platform>
When I remove my android platform and install it back it works (it seems the only place where it installs plugins)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745152240a4613919.html
评论列表(0条)