Skip to content

Instantly share code, notes, and snippets.

@bruinbrown
Last active December 19, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruinbrown/5895068 to your computer and use it in GitHub Desktop.
Save bruinbrown/5895068 to your computer and use it in GitHub Desktop.
Azure mobile services device limit workaround. This really isn't ideal and I wouldn't recommend doing it as I don't know the consequences When mobile services went GA, there was a 100 device limit introduced on the free tier and unlimited on the paid tier. Not ideal if you're releasing a free app. It turns out it's easier than you'd think to tri…
//For Windows 8
DeviceGuid = "2DC22302-AB12-4DDD-86A0-4265843C78FC";
JObject obj = new JObject();
obj["applicationInstallationId"] = DeviceGuid;
string configText = obj.ToString();
ApplicationData.Current.LocalSettings.Values["MobileServices.Installation.config"] = configText;
Client = new MobileServiceClient("AMS URL");
//For windows phone 8
DeviceGuid = "2DC22302-AB12-4DDD-86A0-4265843C78FC";
JObject obj = new JObject();
obj["applicationInstallationId"] = DeviceGuid;
string configText = obj.ToString();
IsolatedStorageSettings.ApplicationSettings["MobileServices.Installation.config"] = configText;
Client = new MobileServiceClient("AMS URL");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment