Getting Active View - Office 365 Add-in

I am able to get the active view when using Office 365 PowerPoint on my desktop. However, I can only get the 'edit' view when using Office 365 PowerPoint on my work network. According to Microsoft documentation - getActiveViewAsync() is supported in desktop, online and Ipad. Here is the code Iam using

      Office.context.document.getActiveViewAsync(function (asyncResult) {
              if (asyncResult.status === "succeeded") {
                  if (asyncResult.value === "read") {

                      //do something;

             }
             else {
               console.log(asyncResult.error.message);
           }
      });

Is there something I am missing? Please help.