Logs from Open PhoneGap Session
Logs from Open PhoneGap Session
Join the DZone community and get the full member experience.Join For Free
Learn how to stop testing everything every sprint and only test the code you’ve changed. Brought to you by Parasoft.
Thank you to everyone (especially the PhoneGap team!) who showed up to the open session that Holly and I ran today. We had a great size crowd and a very interesting set of questions. Between Holly and I and other PhoneGap members we were able to cover nearly everything. The pace picked up towards the end but we had a firm cut off time so we couldn't go long. We definitely plan on repeating this soon. I'm using Gists for the logs. First is the Q and A log:
Answered Questions (26) -------------------------- 1. Ray Camden: Testing for holly * Holly Schinsky: Testing is working :) 2. Nikhil Juneja: Phonegap recently aanounced the Enterprise program * Holly Schinsky: @Nikhil, yes, it's a new offering from Adobe for Enterprise developers looking to use our enterprise offerings like Adobe Experience Manager (AEM or CQ), Adobe Analytics and more in their mobile apps, taking advantage of the content already available there. * Holly Schinsky: @nikhil - check out http://enterprise.adobe.com if you haven't already. There will be a lot more to come on this in the future... 3. Gary: Is there a way when opening the app to make the splash screen stay up longer to avoid a white screen from displaying * Ray Camden: I think you want to diable hide. I blogged about this here where I made the SS last longer and took it away via JS. Let me know (via chat) if this doesn't help. http://www.raymondcamden.com/index.cfm/2013/4/23/Note-about-PhoneGap-Build-and-Splash-Screens 4. Alex: A phone gap / web view question - If you are building an app one challenge with a webview app is that all the logic (e..g search ordering) is visible to users (if they wish to). Are there any ways (now or in the future) to secure a webview app from prying eyes? * Ray Camden: The short answer is no - you can't hide the source you ship w/ PG/Cordova. You can put stuff on the server, as you said, but think of it like any web app. Folks *can* get to the source. * Holly Schinsky: Sorry @Nikhil it's http://enterprise.phonegap.com/ 5. Stefan: i get some trouble with the newest plugins of camera and file, with camera 0.2.4 and file plugin 1.0.2 my code works fine. Where can i post my code, maybe you will found my error? * Ray Camden: I'm going to rewirte your Q a bit, hope that is ok. I think it coudl be said, "if I find an issue with plugin X, what should I do". Remember that these plugins all have their own Github repos. So you have a place to file issues, as well as do PRs if you can submit a fix as well. :) 6. Martin: Is it possible for a phonegap application to send and/or receive data while closed? (e.g. when internet connection is restored) * Holly Schinsky: @Martin - do you mean using something like push notifications? * Holly Schinsky: @Martin - you can definitely use a push notification service to send your messages, and the intermediate server will hold on to them and retry until the message can be received by the target device. 7. Martin: (...) If the users had to fx repport when they started and stopped a job out in nowhere, and dot want them to manually open the app and upload when again connected * Holly Schinsky: Wanted to answer here with what @brianleroux had mentioned in Chat. Use background services as plugins... possibly http://plugins.cordova.io/#/package/com.red_folder.phonegap.plugin.backgroundservice. 8. Nikhil Juneja: Unable to access http://enterprise.adobe.com/ * Ray Camden: It is enterprise.adobe.com. :) * Holly Schinsky: It is http://enterprise.phonegap.com/ * Ray Camden: oops - I answered with the right thing in my head, the figners messed up. :) 9. greg marines: I'm new to phonegap and have installed node.js cordovia and phonegap and built the hello world app in each. I've been looking on the phonegap doc's site to get an understanding of when I would choose to build a Cordovia app vs a PhoneGap app. If I'm planning on using phonegap build, is there a reason one would be preferred over the other? * Ray Camden: You can do the same with both CLIs, the syntax is just different. Also, PG CLI makes it easier to push to PGB via command line. With that in mind, I'd probably use the PG CLI instead. 10. Alberto 2: We are looking to build a mobile app to process credit card sales and integrate with our web app. A key need is to integrate with a card reader. I have googled around with little success. Is this functionality available in PhoneGap? If so, can you please point me in the right direction on an approach? Thanks. * Ray Camden: Keep in mind that anything PG can't do with the core plugins, you can write your own plugin code for it. So the general answer is, if native code on the phone supports X, you can make PG support it via a plugin. Instead of googling around, be sure to check plugins.phonegap.com. It was recently updated and is a LOT easier to use. * Ray Camden: Sorry, make that plugins.cordova.io 11. Nikhil Juneja: My question is again related to the enterprise program. I have been working in SAP, and released an enterprise app for a customer on Phonegap last year Nov. My Question is there a preferred partner status/recognition that a company can apply for * Holly Schinsky: @Nikhil, yes we are definitely open to partnering. Contact Brian Leroux about this - email@example.com - he will hook you up with what you need :) 12. Gary: Is it possible on IOS to have the keyboard come up when you display a pop up so that the user doesn't have to place his finger into the text box to get the keyboard to show up. * Ray Camden: I found this on Stackoverflow - I assume it works. :) http://stackoverflow.com/questions/12140484/programmatically-show-soft-keyboard-on-iphone-in-a-phonegap-application * Ray Camden: From Shazron Abdullah: Gary: preference KeyboardDisplayRequiresUserAction set to false. then focus() on the text element 13. Alberto 2: Got it. Thanks. Are you aware of any plug-ins that accomplish this? * Ray Camden: Off the top of my head no - check the site (note I fixed the url). * Holly Schinsky: http://plugins.cordova.io/#/search?search=keyboard * Holly Schinsky: https://github.com/petehunt/react-touch 14. David: Will phonegap support building Cortana? * Shazron Abdullah: We're in the process of getting 8.1 support. Not sure when the Cortana APIs are going to be released, but when they are, we would definitely explore it 15. David: Will phonegap allow developers to build html5 apps for xbox? * Ray Camden: Via Brian Leroux - the answer is yes. 16. alberto: What is the advantage of using AngularJS and PG? * Ray Camden: Holly may chime in as well as she has done a LOT more w/ Angular. As someone new to it, I just find it to be a darn good framework for organizing my application. I can spend less time worrying about "where do I put so and so logic or view" and just plain do it. That's the same benefit of frameworks in general, so it really isn't PG specific I suppose. Again, Holly will chime in too. :) * Holly Schinsky: AngularJS is just a nice framework choice for faster development due to having to write less boilerplate type code, built-in handling for things like two-way binding (awesome for data-driven apps) and testability. I personally like to use it for mobile apps too because I can use Ionic to style my mobile apps quickly and make them look pro fast though I'm not a designer. Ionic is built on angular, see ionicframework.com... There are a lot of AngularJS directives already written to do things you may run across often as well, which makes overall dev't easier compared to some other framework choices. 17. Nikhil Juneja: Any tips or any particular features that should be included to get the App featured on the Phonegap.com website * Colene Chow: First step is to submit it to the PhoneGap app directory: http://phonegap.com/app/submit. Once it's been submitted, the team reviews it and will approve it for the site. If it's been picked to be featured, the team will follow up with the submitter to discuss. 18. David: When you get 8.1 support , will xbox support be included at that time? * Shazron Abdullah: Not sure, but my hunch is, no it will not be included 19. @robmuh: Alberto, have you heard any stylus options for ionicframework (other than sass) * Holly Schinsky: Does this thread help? http://forum.ionicframework.com/t/converting-scss-to-stylus/2277 20. Greg: Do we need to now manage PG versions, and Plugin versions? Just had a major File API issue due to the plugin updating. * Shazron Abdullah: Greg. that was a developer error, they didn't update the dependency. It should be rectified by now, or in the next Plugins Release 21. Greg: still not sure what the difference/benefit is for PhoneGap vs Cordova - also the documentation on the PG site seems to lack this explanation. * Holly Schinsky: http://phonegap.com/2012/03/19/phonegap-cordova-and-what%E2%80%99s-in-a-name/ 22. Alfredo Ramirez: Does anyone why PhoneGap Developer App isn´t available for some tablets? Thanks. * Ray Camden: I don't have an answer for that specifically, but I can follow up with the team to find out why. It could be simply a typo in the Android store settings. * Holly Schinsky: Which tablets? 23. Greg: @shazron Abdullah gotcha, so no need to manage plugin versions? * Shazron Abdullah: No you don't have to. However, there might be breaking changes if a major version is updated. ie from 0.x to 1.x to 2.x. Check the plugin page first. 24. Marc: Does phonegap support Amazon Fire tablet? * Shazron Abdullah: Yes we support FireOS 25. Marc: Would phonegap be providing support for Amazon Fire TV? * Holly Schinsky: If it runs on FireOS then yes. 26. Alfredo Ramirez: I've a Polaroid PMID702DC running Android 4.1.1 and when doing a search in Google Play it isn't listed. * Holly Schinsky: I will add to follow up! Open Questions (8) -------------------------- 27. Nikhil Juneja: can you throw some light on that 28. Gary: Thanks Ray 29. Hit0: obfuscate the code 30. alberto: how would you secure a PG app? 31. David: Will phonegap allow developers to build html5 apps for xbox? 32. Alberto 2: Thanks guys. I searched there does not appear to be one. 33. Diana: What is the problem with global variables? and If i use them, do i have to take care at smth specific? 34. Greg: Does the PG CLI get updated as well? Wondering this as PG is up to 3.4 but in the docs for 3.3 and 3.4 it says to use the Cordova utility, not the PG one.
And here is the chat log. This is a bit more free form but there are some good nuggets in here as well.
Published at DZone with permission of Raymond Camden , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.