Roland Oldengarm - Independent IT Contractor

Living in the coolest little capital Wellington, New Zealand!

Month: August 2015

ADAL Cordova, Android => Loading?

We are developing an app for Cordova. It will authenticate against Azure AD, and we are using the ADAL library for Cordova. To test this is working, we did a proof of concept, and thas was all working fine.

When testing it in our “production” app, it did not work. When kicking off the authentication with this code:

var ctx = new Microsoft.ADAL.AuthenticationContext(authority);
ctx.acquireTokenAsync(resourceUrl, appId, redirectUrl).then(function (authRes) {
//todo
console.log(authRes.accessToken);
});

… it did no longer work on Android. On Windows 8.1 it was fine. On Android it opened a new window for the authentication screen, but it was stuck at “Loading”. Nothing in the JavaScript console either. So, I stripped all the includes out of the HTML, until I finally had the identical HTML + JS as the working proof of concept.

So, it must be something in the Android settings. I compared them, and it turned out “Keep running” was turned off in the “Production” app, and turned on in the working POC. I enabled that and now it is working… This setting can be found by opening config.xml => Android. In the XML it is:

<preference name=”KeepRunning” value=”True” />

TechNet is wrong; You CAN add add-ins to Word Online

After some confusion and discussion on Yammer and TechNet forums, I found out that TechNet has published an article that has incorrect information. According to this article you cannot add Add-ins to Word Online, only to the desktop client.

Office Add-ins
You can get an add-in for Word from the Office Store. Office add-ins only work in the Word desktop app and are not available in Word Online. Learn how to get an add-in for Word.

I first trusted this information, but then I found out it’s wrong. You can add add-ins to Word Online, similar to Word Desktop! It is also possible to add add-ins to Word for the iPad, but I haven’t seen this working yet.

I’ll demonstrate how to make a custom add-in available to Word Online.

Continue reading