Skip to main content
Participant
Oct 4, 2014 12:03 PM UTC
Answered

GeoLocation not working.

Hi, when I try to call the variable cpInfoGeoLocation (window.cpAPIInterface.getVariableValue('cpInfoGeoLocation')) the variable is undefined. I have turned on location tracker in both Chrome and Firefox (Mac OS 10.10), and tested it on local and public server. Is there a setting inside Captivate 8 I have to turn on in order to do this?

This topic is closed to new replies. Start a new post to keep the conversation going.
Captiv8r
Captiv8rCorrect answer
Legend
Oct 4, 2014 12:51 PM UTC

Oh, and you also may need to click the Window menu and open the Mobile Palette and enable Geolocation.

Cheers... Rick

5 replies

wherelocated
Participant
May 3, 2020 1:01 PM UTC
Once you've created the project for both audiences, adding the geolocation features is very easy. First, choose Window > Mobile Palette to open the Mobile Palette dialog box.

 

Select Geolocation and then click the OK button
Translate
Lilybiri
Legend
May 3, 2020 2:51 PM UTC

Why did you repeat the answer that was already marked as correct answer? 

Translate
Captiv8r
Legend
Oct 4, 2014 12:47 PM UTC

Hi there

In the examples I've seen, you first create a variable that is used with this. For example, create a variable for UK, then during the creation process, you define the Latitude, Longitude and the Accuracy. Then in your Captivate, you use the variable in an Advanced Action. Perhaps look at the example supplied with Captivate. Click that little icon in the upper left of the start screen.and open the Cloudair_SoftSkills sample project and look at its Variables and Advanced Actions.

Cheers... Rick

Translate
Captiv8r
Captiv8rCorrect answer
Legend
Oct 4, 2014 12:51 PM UTC

Oh, and you also may need to click the Window menu and open the Mobile Palette and enable Geolocation.

Cheers... Rick

Translate
dannyfuglAuthor
Participant
Oct 4, 2014 2:28 PM UTC

Hi Rick, thank you for the help. The problem was that I did not had geolocation activated in the mobile palette. Cheers Daniel.

Translate