Discussion Forums  >  Introduce Yourself

Replies: 8    Views: 219

Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
04/12/13 02:04 AM (12 years ago)

Integrating Phonegap with a Buzztouch App

Please I will like a little guide line on how to integrate a phonegap project as a subview in my buzz touch app. Would I use a blank screen to achieve this?
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
04/12/13 03:44 AM (12 years ago)
I suppose you can acieve it using HTML Doc Plugin. Just point it to your phonegap file and it should work then.
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
04/12/13 04:47 AM (12 years ago)
@Rishav are you saying I can have all my html, javascript files in a folder and use the HTML doc plugin?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/12/13 05:33 AM (12 years ago)
Should be able to.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
04/12/13 06:03 AM (12 years ago)
I know its possible but I am not sure how. I thought I saw something about this on the myskylla blog.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/12/13 06:32 AM (12 years ago)
In android at least, you can drop a phonegap project into the assets folder of a bt project and open it with a customURL - Probably an HTML Doc plugin too but I haven't used that. With the customURL the path for phonegap would be something like - file:///android_asset/www/yourphonegapproject/index.html Not so sure about a phonegap project that uses native functions though (camera, accelerometer etc)... might require additional work.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/12/13 06:57 AM (12 years ago)
That's pretty much it - drop the www files Phonegap generates into your BT_Docs folder and call the html doc with the HTML plug-in and you're set. You might need to look at the css/html it kicks out and verify the paths. And make sure to tell xcode not to compile the .js script. There's a whole new version of Phonegap Adobe is promoting right now. I just downloaded it yesterday. I was lucky enough to meet one of the head devs for Phonegap at an Adobe dog and pony show a few months back. He built an app calling native iOS functions and hardware in 10 minutes. Phonegap is slick bit it's all HTML stuffed inside js and css. Here's his blog with some cool app starter http://coenraets.org/blog/ This is that demo project: http://coenraets.org/blog/2012/12/phonegap-and-phonegap-build-in-5-minutes/ and check out Edge Animate on his blog. That and Tumlut Hype work in the same manner with BT. That BT_Docs folder is magic :) @ravey - I tried with assets/www on Android with HYPE and PG and had better luck with the BT_Docs folder. That URL path is KEY tho :)
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
04/12/13 03:28 PM (12 years ago)
So are you saying using BT_Docs will not work in IOS? if yes how will I have the URL path?
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
10/24/13 11:19 PM (12 years ago)
I have an app with which i used Jquery Mobile to build, I am using the custom URL plugin for it. I placed the files on a remote web server and placed the link in the Custom URL plugin but any time I run the app on the simulator or a test device the page keeps showing the loading sign but never loads. I tried using the HTML doc plugin and place all the files in the assests folder but when i run it, the page displays as though its not reading any of the CSS or Javescript files is just plain text i see. please how do you go about deploying it with Buzztouch. WHat is the plugin to use? and where should i store the files? should I store locally or call the files from a webserver. Thank you
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.