Software Archive
Read-only legacy content

iOS issue

Marcondes__Marcos
1,884 Views

Hello

I got issue on iOS itunes ... .same code on Android with sucess !

Error message and app code attached

Thanks in advance for support and help me 

Marcos

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
1,887 Views
/*jslint browser:true, devel:true, white:true, vars:true */


function onAppReady() {
    if( navigator.splashscreen && navigator.splashscreen.hide ) {   // Cordova API detected
        navigator.splashscreen.hide() ;
    }

    var el ;
    el = document.getElementById("idColaboradores") ;
    el.addEventListener("click", eventColaboradores, false) ;

    el = document.getElementById("idCaes") ;
    el.addEventListener("click", eventCaes, false) ;

    el = document.getElementById("idGatos") ;
    el.addEventListener("click", eventGatos, false) ;

...etc...

}
document.addEventListener("deviceready", onAppReady, false) ;


// see https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen
var eventColaboradores = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://www.carolzerbini.com.br/colaboradores/colaboradores.asp" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


var eventCaes = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://url/to/caes" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


var eventGatos = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://url/to/gatos" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


...etc...

 

View solution in original post

0 Kudos
27 Replies
Marcondes__Marcos
491 Views

Hello,

Works perfect for 1 option BUT not for more than !

My problem now is when there more than 1 option 

If user press Cães go to Caes page
If user press Gatos. go to Gatos page
If user press .... and so on 

thanks in advance 

Marcos
 

0 Kudos
PaulF_IntelCorp
Employee
1,888 Views
/*jslint browser:true, devel:true, white:true, vars:true */


function onAppReady() {
    if( navigator.splashscreen && navigator.splashscreen.hide ) {   // Cordova API detected
        navigator.splashscreen.hide() ;
    }

    var el ;
    el = document.getElementById("idColaboradores") ;
    el.addEventListener("click", eventColaboradores, false) ;

    el = document.getElementById("idCaes") ;
    el.addEventListener("click", eventCaes, false) ;

    el = document.getElementById("idGatos") ;
    el.addEventListener("click", eventGatos, false) ;

...etc...

}
document.addEventListener("deviceready", onAppReady, false) ;


// see https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen
var eventColaboradores = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://www.carolzerbini.com.br/colaboradores/colaboradores.asp" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


var eventCaes = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://url/to/caes" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


var eventGatos = function() {

    // add code here to check to see if the network is available and usable
    // before doing the following...

    var url = "http://url/to/gatos" ;
    var target = "_self" ;              // or "_blank" or "_system", see docs for more
    var options = "location=off" ;      // see docs for more 
    var ref = cordova.InAppBrowser.open(url, target, options) ;

    // add code here to clean up, do other appropriate things, etc.
}


...etc...

 

0 Kudos
Marcondes__Marcos
491 Views

Hello,

Thanks for all support on this issue 

I could send to itunes

Waiting for review

I update asap I get Apple approval or rejection

Marcos

0 Kudos
Marcondes__Marcos
491 Views

YESSSSSSSSSSS

Problem resolved and all set on itunes.com .... approved Thanks God and Paul :-)

0 Kudos
Stefano_C_
Beginner
491 Views

Hi everybody,

I have the same issue, but I need to post a form to my webpage for processing.

How can I apply this method to a <form method="post" action="http://mysite.ext"> ?

Many thanks for sure help

Stefano

0 Kudos
PaulF_IntelCorp
Employee
491 Views

Stefano -- I recommend you search the web and Stack Overflow for something like "using <form> to post data in cordova phonegap app" to find a solution that works for your situation. There are many ways to accomplish what you want to do, all very dependent on the nature of your data, your app and your server. The XDK builds a standard Cordova (aka PhoneGap) app, so solutions you find for Cordova and PhoneGap will also apply to the XDK.

0 Kudos
Stefano_C_
Beginner
491 Views

Thanks Paul,
I try again to find a solution for the reject message from Apple when I try to publish:

"Thank you for your resubmission. We noticed that your app is still not in compliance with our guideline.
Performance - 2.1
We discovered one or more bugs in your app when reviewed on iPhone and iPad running iOS 10.2.1 on Wi-Fi connected to an IPv6 network."

Since now I've find a lot of suggestions, but no one is accepted by Apple

0 Kudos
Reply