I have a Spring Mvc
web app, placed on a Tomcat server on my localhost.
In one of the pages, I'm using this code, available on Fiddle
On Pc it works, but on my phone(Google Chrome), it's not asking for permission, it's denying instantly. Also checked on Chrome, and my app does not appear on blocked app, at location tab.
If I access that fiddle on my phone, it's asking for permission and it's working.
But on my 192.168.0.xyz:8080/myapp
,the permission is denied by default. How can I solve this problem?
Also, I tried 192.168.0.xyz:8080/myapp
on mozzila(android) and default android web browser and it's asking for my permission.
I don't know why chrome(android) is refusing my app for location-, but chrome(pc) works fine..
LE: I tried my app from 2 more android devices, still, the same result!