Skip to content

Commit 45b8d15

Browse files
Use primary package name for settings.
1 parent e2f0c5f commit 45b8d15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/Notifo.SDK/Services/Settings.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
using System;
99
using System.Collections.Generic;
10+
using System.Text.RegularExpressions;
1011
using System.Threading;
1112
using System.Threading.Tasks;
1213
using Newtonsoft.Json;
@@ -17,7 +18,9 @@ namespace Notifo.SDK.Services
1718
{
1819
internal class Settings : ISettings
1920
{
20-
private static readonly string SharedName = $"group.{AppInfo.PackageName}.notifo";
21+
private static readonly string PrimaryPackageName = Regex.Replace(AppInfo.PackageName, @"\.([^.]*)ServiceExtension$", string.Empty);
22+
private static readonly string SharedName = $"group.{PrimaryPackageName}.notifo";
23+
2124
private static readonly SemaphoreSlim Semaphore = new SemaphoreSlim(1, 1);
2225

2326
public string Token

0 commit comments

Comments
 (0)