Mixing Corona Enterprise with Corona Cards

Hi,

I’ve got a Corona Enterprise App which has a web view. I have to display a menu made in Corona over this web view. Since this is not possible using Pro nor Enterprise, I wanted to use Corona Cards.

I’ve started with Android.

Unfortunately, when I try to open up a new Corona Cards instance, it always displays the same content as Corona Enterprise. It’s like the Corona View would not read the main.lua file from assets, bur rather use the CAR file OR like it would not create new Corona View but would reuse the old one.

Anyway, I can see that new Corona instance is created, the main.lua file is processed, however it’s not the one I would like :frowning:

I’m attaching a sample, sorry for the little mess in code, I’ve tried to cleanup after plenty of experiments I have made.

What this example does is:

  1. Load Corona Enterprise with a single rect/button, when you tap on it it will…

  2. Display Native Web View with a test.html, which has a single button on it, which triggers a Java method which in turn should…

  3. Display Corona Cards panel

Unfortunately, instead of displaying the buttons I have defined in assets/test/main.lua, it displays the same as created in the corona enterprise.

It seems to me the only thing you need to do to run this thing is to;

  • copy all of the libs from Corona Cards android to App/android/libs.

  • copy your corona cards license key to App/android/assets/test/

  • adjust local.properties to point to your android SDK dir

File:

https://www.dropbox.com/s/pumuxfpn58754y1/EnterpriseCards_POC.zip?dl=0

I will be grateful for any tips, this one is extremely important to me,and before someone asks… no, I’m not migrating the project to Corona Cards, I only want to use Cards for this simple popover panel.

Hey,

I was able to solve my issue by using a previous version of Corona Cards [now this is probably fixed], however I’m still struggling.

I would love to hear something from Corona about this possibility, because I think I’m only wasting time here.

Android version works as I would expect it, but I have a hard time with iOS version.

No matter how hard I try, it’s either Enterprise or Cards. 

If I use Cards library to build the project, there’s no way in hell I can use _CoronaApplicationMain_ and if I use Enterprise to build it, I cannot display the correct main.lua in CoronaView. It will always take the .car file. If I try to run CoronaView with _runWithPath:parameters_ it simply crashes.

Please… if this is not possible, just say so, I will stop wasting my time and find another solution.

I cannot simply use CoronaCards for both parts of the project, I need access to media [for recording] and widgets [for table views etc].

Thank you

Krystian

Hey,

I was able to solve my issue by using a previous version of Corona Cards [now this is probably fixed], however I’m still struggling.

I would love to hear something from Corona about this possibility, because I think I’m only wasting time here.

Android version works as I would expect it, but I have a hard time with iOS version.

No matter how hard I try, it’s either Enterprise or Cards. 

If I use Cards library to build the project, there’s no way in hell I can use _CoronaApplicationMain_ and if I use Enterprise to build it, I cannot display the correct main.lua in CoronaView. It will always take the .car file. If I try to run CoronaView with _runWithPath:parameters_ it simply crashes.

Please… if this is not possible, just say so, I will stop wasting my time and find another solution.

I cannot simply use CoronaCards for both parts of the project, I need access to media [for recording] and widgets [for table views etc].

Thank you

Krystian