A Fuse Powered Company

Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Phonegap sample project?
Started by carlos.olivera.t Mar 10 2014 02:32 AM

7 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

carlos.olivera.t

[GLOBAL: userInfoPane.html]
carlos.olivera.t
  • Observer

  • 21 posts
  • Enterprise

Hi!
 
I had the opportunity to test CoronaCards for iOS, great product, really easy to use, I had no issues to configure and run.
 
Can you please post an example for iOS/Android with a Phonegap/Cordova base project
 
I've already implemented, nevertheless I am not sure if I went for the best way
 
Thanks!
 
Carlos.


[TOPIC: post.html]
#2

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 713 posts
  • Corona Staff

Here's our attempt at a Phonegap plugin. There were several parts we were unclear about as well, so we're not sure if this is the "correct" way. We did model it after the structure we saw in official Cordova plugins. 

 

You should be able to use the cordova/phonegap command line tool to install the plugin by pointing it to this repo:

 

https://github.com/CoronaCards/plugin-phonegap

 

We also put together a HelloWorld Xcode project that launches CoronaViews from JavaScript. It mimics the UIViewController relationship from our standard ChildView sample:

 

https://github.com/CoronaCards/sample-ios-ChildView-Phonegap



[TOPIC: post.html]
#3

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 713 posts
  • Corona Staff

BTW, let us know if there's something we could improve based on your investigation.



[TOPIC: post.html]
#4

GreyJellyLabs

[GLOBAL: userInfoPane.html]
GreyJellyLabs
  • Enthusiast

  • 44 posts
  • Corona SDK

Hi, I just joined the closed beta. Can you give any sample code for Appcelerator too?

 

My initial thoughts are it would need to be a custom module created in Xcode, following the practices shown here: http://docs.appcelerator.com/titanium/latest/#!/guide/iOS_Module_Development_Guide

 

But maybe there's another way?

 

Regards,

Gary



[TOPIC: post.html]
#5

DavidRangel

[GLOBAL: userInfoPane.html]
DavidRangel
  • Moderator

  • 882 posts
  • Corona Staff

GreyJellyLabs - we are working on some docs for Appcelerator. Coming soon...



[TOPIC: post.html]
#6

GreyJellyLabs

[GLOBAL: userInfoPane.html]
GreyJellyLabs
  • Enthusiast

  • 44 posts
  • Corona SDK

Cool beans!



[TOPIC: post.html]
#7

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 713 posts
  • Corona Staff

Hi all, we've posted a prelim Appcelerator/Titanium plugin here: 

 

https://github.com/CoronaCards/plugin-appcelerator-ios

 

More info in the README. It's prelim, so we're assuming you're already familiar with using Appcelerator and installing modules manually.

 

UPDATE: We've moved the Appcelerator plugin discussion to a separate thread (http://forums.coronalabs.com/topic/45554-appceleratortitanium-plugin/).



[TOPIC: post.html]
#8

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 2,345 posts
  • Enterprise

Hi guys,

 

I've been trying to get a PhoneGap build working with the Corona plugin to demo (eg) the Corona painting on top of the regular "device ready" standard PhoneGap app.

 

Has anyone managed this? I'm afraid I'm not familiar with XCode etc and am probably making a lot of mistakes getting it all configured.

 

Thanks,

Matt.




[topic_controls]
[/topic_controls]