When requesting the location with the native Geolocation plugin under an NW.js export or preview, the event "On error" triggers, the error message is:
"Network location provider at 'https //www.googleapis.com/' returned error code 400"
This seems to be related to NW.js only.
I googled the error message, some results said it's related to Google Chrome (would make sense, NW.js uses Chromium), but when previewing in Chrome (not NW.js), everything works.
I'm no programmer, but I would assume, this problem is related to NW.js, not C2.
But maybe there's a workaround to get it to work (apart from not using NW.js, obviously) without having to rely on an NW.js update.
You can use the default Geolocation template.
Description of Capx
Testing the Geolocation plugin to its full content.
Steps to Reproduce Bug
- Use either action Request location or Track location
- When previewing in or running the exported NW.js, On error will trigger
- The expression Geolocation.ErrorMessage will be the above-mentioned message
See steps above.
The event On location update should trigger and the expressions Geolocation.Longitude and Geolocation.Latitude should return the approximate location.
- Chrome: (NO)
- FireFox: (NO)
- Internet Explorer: (NO)
- NW.js: (YES)
Operating System and Service Pack
Windows 7 64bit, SP1
Construct 2 Version ID
Construct 2 r244, most current NW.js (v0.22.0 (Chromium 58)), released 20th of April 2017.