Sorry for my poor english, i just build a SPA with the latest version of framework7, it works fine
from android 6-8, but the ajax request doesn’t work in android 9.0, may i ask what is the problem for this,
is it framework7 only support to android 8.0?
also here is the list of those mobile that cannot work.
Samsung Note 3, Android 5
LG Q6+, Android 8
huawei P30 Pro, Android 9
thanks for the reply, sir, may i ask the config that you mentioned is it refer to the page of cordova/config.xml
<?xml version='1.0' encoding='utf-8'?>
孝思園
A sample Apache Cordova application that responds to the deviceready event.
Apache Cordova Team
thanks for your reply, for me I really dont' understand what you mean by attach it to the pc browser dev tools, i already put the config xml to chrome and check with developer mode, and there is no error.
I mean you tell it doesn’t work? But why? Do you see any error? I say to you to take your phone, plug it with USB cable into your PC and using Chrome dev tools to check browser developer console, to see what is error exactly
I checked that the problem is not from the ajax, but from the router.navigate method, it works in android, but when i tried to test in ios simulator, routes does not work , and leave a blank page
here is the code when the request is success from ajax:
success: function(data, status, xhr){
var res = $.parseJSON(data);
if (res.status == "success") {
app.views.main.router.navigate("/success");
$(".rand_num").html(res.randCode);
}
if (res.status == "regexist") {
$(x[0]).show();
$(".view-main").animate({ scrollTop: 0 }, "slow");
$(".btn_submit_wrapper").eq(0).hide();
$(".middle_reg").show();
$(".regerror").html("閣下已經有申請記錄,請等上一次申請完結後再申請");
}
if (res.status == "updatesuccess") {
app.views.main.router.navigate("/updatesuccess");
}
if (res.status == "updatefail") {
alert("更新失敗");
}
}
i really dont know what is happening with this in all ios version, thanks
Just to add to this, make sure your endpoint is https. Android, with version 9 is very strict about transport layer security and will balk if its not https