Geolocation running on Azure

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

WiseJ Version 1.3.27. Browser have geolocation activated, problem on all browsers

 

I have a problem with running the Wisej.Ext.Geolocation component on Azure Cloud.

In local environment the geolocation event runs fine.

If I deploy the app on azure the event never execute.

 

Below are my code snippet, is there any option I must activate on azure?

Web.config:

<add assembly=”Wisej.Ext.Geolocation”/>
<add assembly=”Wisej.Web.Ext.Bubbles”/>
….
geolocation1.ActiveWatch=true;
geolocation1.EnableHighAccuracy=true;
geolocation1.PositionChanged+=Geolocation1_PositionChanged;

….

private void Geolocation1_PositionChanged(object sender,EventArgs e)
{
Wisej.Ext.Geolocation.Position oPosition=geolocation1.LastPosition;
if(oPosition!=null)
{
MessageBox.Show(“Position: “,oPosition.ToString());
}
}

….

  • You must to post comments
0
0

Commit that GeoLocation works in FireFox with http.

I try Chrome with https later … thank you for information.

  • You must to post comments
0
0

Hi Kay,

The issue is probably Chrome: https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

FireFox doesn’t have that restriction. Basically you need to use https to use geolocation from a source that is not localhost.

Best,

Luca

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.