Skip to main content
MTrozzo
Known Participant
August 10, 2016
Answered

"User denied geolocation" error

  • August 10, 2016
  • 2 replies
  • 1802 views

I'm working on a project in Captivate 9 using geolocation. I've set the variables for UK, Germany, and Americas. The first slide doesn't use geolocation, but thee second one does. I have all the assets hidden by default, and have added DetermineGeoLocation actions to show the relevant assets (images and text) as follows:

  1. If cpInfoGeoLocation is equal to Germany (show relevant assets)
  2. If cpInfoGeoLocation is equal to UK (show relevant assets)
  3. If cpInfoGeoLocation is equal to Americas (show relevant assets), else show relevant assets for the rest of the world

I saved and published, making sure that geolocation was turned on in the publish settings. I then uploaded it to my web server. However, when I launch, the screen is blank except for a couple of navigation buttons at the bottom. In Chrome, I get an error in the corner saying "User denied geolocation", which appears for about two seconds and then disappears, leaving only the nav buttons.

In other browsers I don't get the error, just the nav buttons. In IE/Edge/Firefox, I get prompted to allow the site to get my location. I do allow it, but still no change. I also find it strange that the first slide doesn't appear either, and there are no geolocation actions relevant to that slide. What am I doing wrong?

This topic has been closed for replies.
Correct answer SauravGhosh

Did you set On Enter->Execute Advanced Actions->DeterMineGeoLocation in your project?

2 replies

SauravGhosh
Adobe Employee
SauravGhoshCorrect answer
Adobe Employee
August 10, 2016

Did you set On Enter->Execute Advanced Actions->DeterMineGeoLocation in your project?

MTrozzo
MTrozzoAuthor
Known Participant
August 10, 2016

No I didn't. Let me test that!

SauravGhosh
Adobe Employee
Adobe Employee
August 10, 2016

Let us know how it went. There is another way to implement GeoLocation through JavaScript. Read all about it here:

Learn about the Common JavaScript interface for Adobe Captivate

Thanks,

Saurav

TLCMediaDesign
Inspiring
August 10, 2016

You are aware that geolocation generally needs an API to work on a desktop browser. Also a desktop needs wifi to work.

MTrozzo
MTrozzoAuthor
Known Participant
August 10, 2016

This is my first foray into using geolocation. I had gone under the (mistaken?) assumption that it would just take the IP address of the computer. In any case, I've tried it on:

  • Desktops connected via cable to a 4g router
  • Laptop using wifi
  • iPad using wifi
  • iPhone using both wifi and mobile connections