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 9, 2024
1 parent d0d7f2c commit a6e4349
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 a6e4349

Please sign in to comment.