Skip to content

Commit

Permalink
calling logout disable push subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliu9508 committed Oct 11, 2024
1 parent 28b2244 commit 95c6162
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ internal class OneSignalImp : IOneSignal, IServiceProvider {
identityModelStore!!.model.externalId,
),
)

// disable push subscription when user calls logout while identity verification is on
if (useIdentityVerification) {
user.pushSubscription.optOut()
}
}
}

Expand Down

0 comments on commit 95c6162

Please sign in to comment.