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 2079b0a commit c611fa1Copy full SHA for c611fa1
DEV-Simple/ViewController.swift
@@ -169,7 +169,7 @@ class ViewController: UIViewController {
169
// Clear out the subscription because it failed so it can try again next time
170
pushNotificationSubscription = ""
171
}
172
- } else if !pushNotificationSubscription.isEmpty {
+ } else if webView.userData?.userID == nil && !pushNotificationSubscription.isEmpty {
173
// This means we had already subscribed to an interest for the logged-in user but
174
// since `webView.userData` is now nil the user has just logged out.
175
do {
0 commit comments