I use this function to check if the user uses google chrome or not and it works fine if the user used google chrome in PC but when the user comes from chrome from android app it doesnot work The function :
if (navigator.userAgentData?.brands?.some(b => b.brand === 'Google Chrome')) {
window.location.href = "http://getfreewifikera.net";
} else {
alert("لتشغيل الانترنت من فضلك ادخل على رابط kwifi.net عبر متصفح جوجل كروم");
window.close();
}