Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created May 13, 2020 14:36
Show Gist options
  • Save sjehutch/7edfd9acb4c66bccd8f77ecfab58d27b to your computer and use it in GitHub Desktop.
Save sjehutch/7edfd9acb4c66bccd8f77ecfab58d27b to your computer and use it in GitHub Desktop.
// Retrieve installation from local storage and
// create new one if it does not exist
var installation = SettingsHelper.Installation;
if (installation == null)
{
installation = new Installation
{
InstallationId = Guid.NewGuid().ToString(),
Platform = NotificationPlatform.Wns,
PushChannel = pushNotificationChannel.ToString(),
Tags = new List<string> {“news", "sports"}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment