Android Issues after Latest Visual Studio Update

VS updated yesterday (15.4.3). I started seeing issues that weren't present before the update. For example, in the MainActivity.cs file OnHandleIntent -- I started getting an error with the ApplicationContext,

Member 'Application.Context' cannot be accessed with an instance reference; qualify it with a type name instead

So I changed this line:
var instanceID = InstanceID.GetInstance(Application.Context);

to this:
var instanceID = InstanceID.GetInstance(this.ApplicationContext);

Which resolves the error, however now I continually get an Unauthorized error with notification hubs and GCM. I get the following error:

Unhandled Exception:
WindowsAzure.Messaging.NotificationHubUnauthorizedException: Unauthorized occurred

When I call hub.Register(token, tags);

All of this worked fine before the latest update. Are there any suggestions as to how to handle this issue or point out if I've done something wrong?

Sign In or Register to comment.