Guest blog post by: Tim Windsor
Some of the more intricate Cordova plugins have been projects we’ve worked on through multiple terms with different students through the UCOSP program. This time we worked on adding features to the BarcodeScanner plugin. Sean from the University of Alberta worked on the BarcodeScanner, after confirming that implementing a NavigationHandler plugin was not going to be possible. Here is his account of the term:
Being a part of the UCOSP program and working on BlackBerry 10 plugins for Cordova has been a great experience. The first issue I worked on was the NavigationHandler plugin, for getting low level trackpad events on the BlackBerry Classic.
From my perspective of a student, closing the issue without having finished the plugin felt weird, and was definitely not something I was used to from my University courses. However, I learned from this project that even though I never finished the plugin, documenting the work I had done was important. Now other developers will not have to try the same methods I did, if the issue is ever reopened. Furthermore, I gained valuable experience reading and understanding other developer’s code and have a much better understanding of how BlackBerry 10 Cordova plugins work. Consequently, I learned an important lesson about software development, which is not everything you work on will be doable, but what you learn from trying can be just as valuable.
Sean was able to complete his work on the encode method and that code has been integrated into the upstream branch on the PhoneGap GitHub. This feature puts the BlackBerry 10 implementation more on par with iOS and Android.