Software Archive
Read-only legacy content
17060 Discussions

is ANYONE able to compile to Hybrid Lecacy apps using 1816??

New_Japan_A_
Beginner
1,099 Views

just that question, i dont know what i'm doing wrong, after upgrading to disastrous 1816 everything went bad for me, even restoring the 1621 didn't helped, i'm unable to compile anything using hybrid legacy, my apps crash when reading the cordova.js include:

<script src="cordova.js"></script>

EVEN TEMPLATE GENERATED PROJECTS WITHOUT TOUCHING ANYTHING EXTRA crashes, if i remove that line the app runs fine but push notifications aswell as webapp functionality get disabled, what a solution....

i need to be able to compile again on hybrid legacy apps, what i need to do ?? 

p.s. i can send the project folder to a dev, but i dont want to publish it here.

0 Kudos
9 Replies
New_Japan_A_
Beginner
1,099 Views

I tried to compile on CORDOVA, but pushmobi dont work there so its useless for me, and IFRAMES aren't connecting to their destination links, more useless.

0 Kudos
John_H_Intel2
Employee
1,099 Views

As I said in the other thread you started, Legacy apps work with pushMobi (when pushMobi is working). Cordova apps will not work with pushMobi until appMobi releases a Cordova plugin for pushMobi.

When you create new apps based on templates or demos, most of them are designed to work with Cordova 3.5+ builds, NOT the legacy builds. The legacy builds do have limited Cordova functionality. By limited, I mean that Cordova 2.9 is baked into the build. Most Cordova plugins these days require at least Cordova 3.5, which again explains why things dont work.

0 Kudos
PaulF_IntelCorp
Employee
1,099 Views

To make any demos or templates work in the legacy build containers you need these three lines:

    <script src="intelxdk.js"></script>         <!-- phantom library, needed for XDK api calls -->
    <script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls -->
    <script src="xhr.js"></script>              <!-- phantom library, needed for XDK CORS -->

Many of the templates have been updated to remove the outer two lines because they are only needed for the legacy container, which has been deprecated and will eventually be retired. We ask that everyone use Cordova for new applications.

0 Kudos
New_Japan_A_
Beginner
1,099 Views

ok so far i'm getting ok with the cordova, except for the iframes not loading shit (problem i don't care about now, switched to webview), and the inhability to enable push notifications, using pushwoosh.

there are no single guide on XDK IDZ related on how to install pushwoosh successfully on XDK, maybe u all guys are gurus who know all the steps to get it done in 10 min (as other dev pointed out on other thread), but for the ones out there who are starting with the html5 and intel xdk, it's not being easy.

so if anyone wants to share their knowledge about how to successfully integrate pushwoosh into a cordova build for ios and android i'm sure more than one will find it usefull.

0 Kudos
John_H_Intel2
Employee
1,099 Views

I am probably the one what gave the 10 minute estimate :)

Its much easier if you use their AUTO option (you will have to enter your apple username/password). But if you want to go about it the hard way, here is their guide. https://www.pushwoosh.com/programming-push-notification/ios/ios-configuration-guide/

0 Kudos
John_H_Intel2
Employee
1,099 Views

FYI - You will need a Mac to follow the manual process. If you dont have one and your account with pushWoosh has expired, create a new pushWoosh account and use the auto process if you hare having trouble. The Manual process is a little convoluted if you dont know what you are doing on a Mac(which was me!), it took me a good 45 minutes to go through the Manual process...

0 Kudos
New_Japan_A_
Beginner
1,099 Views

ok i got that, indeed pushwoosh is giving 15 days free platinum subscription wich allows o do that, i did that from the very beginning, so pushwoosh config is complete as i dont need to upload the p12 from the mac.

the problem is within the app, the plugin installs correctly, but i may be using the incorrect code even when they provided on their website the basic code, somehow isnt working with my build.

0 Kudos
John_H_Intel2
Employee
1,099 Views

The code provided in this post looks correct.

When you run your app, does it prompt you to allow for push notifications? It will only do this once, even if you delete/reinstall the app. If you have never seen this, then you have something wrong. 

0 Kudos
New_Japan_A_
Beginner
1,099 Views

gotta check that code now.

exactly is what im facing, the app never asks prompt for allowing.

0 Kudos
Reply