Quote from
Guust on June 4, 2019, 9:00 am
Thanks for the quick answer!
For Windows it was simple:
CheckInternetConnection "[Internet]"
and you have a variable if there is internetconnection.
I'll try with a JS-code, but I can't create a variable to store, and check if cellular is connected.
function check() {
if (navigator.connection) {
var type = navigator.connection.type;
if(type) {
if(type == "cellular") {
alert("Attention! Les données mobiles (4G) sont activées! Éteignez-le avant d'ouvrir cette application! Lorsqu'il est utilisé sur un réseau 4G, l'administrateur réseau peut facturer des frais supplémentaires!")
}
}
}
}
check();
Thanks for the quick answer!
For Windows it was simple:
CheckInternetConnection "[Internet]"
and you have a variable if there is internetconnection.
I'll try with a JS-code, but I can't create a variable to store, and check if cellular is connected.
function check() {
if (navigator.connection) {
var type = navigator.connection.type;
if(type) {
if(type == "cellular") {
alert("Attention! Les données mobiles (4G) sont activées! Éteignez-le avant d'ouvrir cette application! Lorsqu'il est utilisé sur un réseau 4G, l'administrateur réseau peut facturer des frais supplémentaires!")
}
}
}
}
check();