Software Archive
Read-only legacy content

iOS issue

Marcondes__Marcos
初学者
4,577 次查看

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 项奖励
1 解答
PaulF_IntelCorp
4,580 次查看
/*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 项奖励
27 回复数
Marcondes__Marcos
初学者
1,225 次查看

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 项奖励
PaulF_IntelCorp
4,581 次查看
/*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 项奖励
Marcondes__Marcos
初学者
1,225 次查看

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 项奖励
Marcondes__Marcos
初学者
1,225 次查看

YESSSSSSSSSSS

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

0 项奖励
Stefano_C_
初学者
1,225 次查看

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 项奖励
PaulF_IntelCorp
1,225 次查看

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 项奖励
Stefano_C_
初学者
1,225 次查看

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 项奖励
回复