We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b31bf4 commit b40a368Copy full SHA for b40a368
Loop/Managers/ServicesManager.swift
@@ -263,7 +263,13 @@ extension ServicesManager: StatefulPluggableDelegate {
263
264
extension ServicesManager: ServiceDelegate {
265
var hostIdentifier: String {
266
- return "com.loopkit.Loop"
+ var identifier = Bundle.main.bundleIdentifier ?? "com.loopkit.Loop"
267
+ let components = identifier.components(separatedBy: ".")
268
+ // DIY Loop has bundle identifiers like com.UY653SP37Q.loopkit.Loop
269
+ if components[2] == "loopkit" && components[3] == "Loop" {
270
+ identifier = "com.loopkit.Looo"
271
+ }
272
+ return identifier
273
}
274
275
var hostVersion: String {
0 commit comments