You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Public/Apphud.swift
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ import Foundation
14
14
import UserNotifications
15
15
import SwiftUI
16
16
17
-
internalletapphud_sdk_version="3.5.5"
17
+
internalletapphud_sdk_version="3.5.6"
18
18
19
19
// MARK: - Initialization
20
20
@@ -791,10 +791,12 @@ final public class Apphud: NSObject {
791
791
792
792
/**
793
793
Web-to-Web flow only. Attempts to attribute the user with the provided attribution data.
794
-
If the `data` parameter contains either `aph_user_id` or `apphud_user_id`, the SDK will submit this information to the Apphud server.
795
-
The server will return a premium web user if found; otherwise, the callback will return `false`.
794
+
If the `data` parameter contains either `aph_user_id`, `apphud_user_id`, `email` or `apphud_user_email`, the SDK will submit this information to the Apphud server.
795
+
The server will return a restored web user if found; otherwise, the callback will return `false`.
796
+
797
+
__Important:__ If the callback returns `true`, it doesn't mean the user has premium access, you should still call `Apphud.hasPremiumAccess()`.
796
798
797
-
Additionally, the delegate methods `apphudSubscriptionsUpdated` and `apphudDidChangeUserID` will be called.
799
+
Additionally, the delegate methods `apphudSubscriptionsUpdated` and `apphudDidChangeUserID` may be called.
798
800
799
801
The callback returns `true` if the user is successfully attributed via the web and includes the updated `ApphudUser` object.
800
802
After this callback, you can check the `Apphud.hasPremiumAccess()` method, which should return `true` if the user has premium access.
0 commit comments