FuseJS/GeoLocation not working

This code does not run on my current version of Fuse, https://github.com/yupferris/fuse-example-gps-basics.

It worked previously with an older version of Fuse but not with version 0.9.5.

I can get other codes working, it stops working when trying to use the FuseJS/GeoLocation.

The following code runs:

var GeoLocation = require("FuseJS/GeoLocation");

This don´t and gives the error below.

var GeoLocation = require("FuseJS/GeoLocation");
var immediateLocation = JSON.stringify(GeoLocation.location);

ERROR: Object reference not set to an instance of an object
    System.NullReferenceException occured.
      at Fuse.GeoLocation.LocationTracker.GetLocationAsync (Double timeout) [0x00000] in <filename unknown>:0 
      at Fuse.Reactive.FuseJS.GeoLocation.GetLocationAsync (System.Object[] args) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.NativePromise`2+ContextClosure[Fuse.GeoLocation.Location,Fuse.Scripting.Object].CreatePromise (System.Object[] args) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.ScriptCallback.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.FunctionProxy.CallLateBound (System.Object thisObject, System.Object[] argumentValues) [0x00000] in <filename unknown>:0 
      at Jurassic.Library.FunctionInstance.CallWithStackTrace (System.String path, System.String function, Int32 line, System.Object thisObject, System.Object[] argumentValues) [0x00000] in <filename unknown>:0 
      at (wrapper dynamic-method) Jurassic.Compiler.MethodGenerator:anonymous (Jurassic.ScriptEngine,Jurassic.Compiler.Scope,object,Jurassic.Library.FunctionInstance,object[])
      at Jurassic.Library.UserDefinedFunction.CallLateBound (System.Object thisObject, System.Object[] argumentValues) [0x00000] in <filename unknown>:0 
      at Jurassic.Library.FunctionInstance.Call (System.Object thisObj, System.Object[] arguments) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.FunctionImpl+<>c__DisplayClass1.<Call>b__0 () [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.Helpers.Try[Object] (System.Func`1 operation) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.FunctionImpl.Call (Fuse.Scripting.Jurassic.FunctionHandle handle, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Jurassic.Function.Call (System.Object[] args) [0x00000] in <filename unknown>:0 
      at Fuse.Scripting.Context.Evaluate (IModule src, System.String id) [0x00000] in <filename unknown>:0 
      at Fuse.Reactive.JavaScript.EvaluateDataContext () [0x00000] in <filename unknown>:0 
      at Fuse.Reactive.ThreadWorker.Run () [0x00000] in <filename unknown>:0

What platform? I think there is a bug in 0.9.5, which prevents the use of FuseJS.GeoLocation on Local Preview.

You can do this as a temporary work-around:

        var env = require('FuseJS/Environment');
        if (env.mobile) {
            debug_log("Init geo.");
        else {
            debug_log("Not on mobile, so we don't have geo");

Thank you, this was the cause of the error.