Skip to content

Commit 9414aaa

Browse files
committed
Merge branch 'develop' into feature/web2app
2 parents a5271d8 + cdac213 commit 9414aaa

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Sources/SuperwallKit/Superwall.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,17 @@ public final class Superwall: NSObject, ObservableObject {
354354
await self.dependencyContainer.delegateAdapter.subscriptionStatusDidChange(
355355
from: oldStatus, to: newStatus)
356356
let event = InternalSuperwallEvent.SubscriptionStatusDidChange(status: newStatus)
357-
await Superwall.shared.track(event)
357+
await self.track(event)
358+
}
359+
Task {
360+
let deviceAttributes = await self.dependencyContainer.makeSessionDeviceAttributes()
361+
let deviceAttributesPlacement = InternalSuperwallEvent.DeviceAttributes(
362+
deviceAttributes: deviceAttributes)
363+
await self.track(deviceAttributesPlacement)
358364
}
359365
}
360-
))
366+
)
367+
)
361368
}
362369

363370
/// Sets ``subscriptionStatus`` to an`unknown` state.

0 commit comments

Comments
 (0)