Last active
December 19, 2015 04:09
-
-
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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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