Software Archive
Read-only legacy content
17060 Discussions

what codova.js script lib needed

Leonidas_S_
New Contributor I
1,288 Views

Intel XDK - using android or crosswalk - Not legacy

what codova.js script lib needed for jQuery Mobile imported project (Phonegap build was prior) - use only Cordova lib - Not use xdk - this needed:

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

???

The Problem with my project is Contacts Write not working... well? Inappbrowser work success but other page...

I have this in index.html where contact write NOT work:  // using android or crosswalk - Not legacy

<script>
    $(document).on( "mobileinit", function() {
        $.support.cors = true;
        $.mobile.allowCrossDomainPages = true;
    });
</script>
<script src="jquery.mobile-1.2.1/jquery.mobile-1.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="phonegap.js"></script>

 

 

 

0 Kudos
10 Replies
Leonidas_S_
New Contributor I
1,288 Views

BASICALLY THE 

contact object is like not exist... // may upgrade plugin?

    <script type="text/javascript">
    
    var contact;

    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    function onDeviceReady() {
        
		            contact = navigator.contacts.create();

    }

 

0 Kudos
John_H_Intel2
Employee
1,288 Views

Do you have the latest XDK?

Did you enable the plugins that you need under Project Settings?

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

yes

yes

Please note in ripple inside xdk all work Correct.

Only on my test real Device the problem ... 

 

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

what i should use in Cordova CLI Version - in Build Settings - ...? I use 3.5.1...but as said Contacts Write not work in device but in ripple i get the alert saved... I put in.

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

CAN BLEND CORDOVA  API WITH XDK API eg Use XDK Contacts API and elsewhere Cordova APIs??? try with xdk...?

0 Kudos
John_H_Intel2
Employee
1,288 Views

Yes you can. You need to include both of the following lines in your index.html file.

 

 <script type="text/javascript" charset="utf-8" src="intelxdk.js"></script> 
    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

this needed ONLY to index.html... and not in secondary html files - correct?

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

-Not legacy builds-

My App apk arm (crosswalk - understand from the size downloaded) in Tablet (Android 4.4.2) has series bugs in layout and in ajax calls... 4 screenshots provided....attached.

In my phone Android 4.1.2 (old phone)... Installed in phone Android (cordova 3.5.1 used) Not crosswalk (neither arm nor x86 - just not crosswalk but other build Android)... and all is fine...

What cordova version use crosswalk??? crosswalk version 10 - just now understood exist 11 & 12 ver - retry with 12...?

 

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

Please note

I installed App to smartphone - not crosswalk from xdk - and work

later I

purchased my App and seems I installed crosswalk... arm version

this time I do not got layout problems 

but seems ajax calls and jsonp not work like tablet... 

well?

any tip - why layout problems , why ajax problems but in non-crosswalk neither of them?

xdk app settings are the most identical as can be between crosswalk or not - Android ver min 10 - max 19 ver.

0 Kudos
Leonidas_S_
New Contributor I
1,288 Views

PLEASE REPLY ASAP ABOVE - I UNPUBLISHED APP CURRENTLY - AND ANOTHER Q:

I upload To PLAY 3 APKs the APP VERSION CODE have to be the same in ALL...?

0 Kudos
Reply