I found the answer for 7.x versions of sdk how to disable push notifications. Its a simple call sfmc_setPushEnabled(Bool)
. But I have migrated to 8.x spms, i couldnt find a equivalent to sfmc_setPushEnabled(Bool)
. Please help me how to stop push when user logs out.
I tried clearing attributes also.
SFMCSdk.identity.setProfileId([ModuleName.push: "NoPush"])
SFMCSdk.identity.setProfileAttributes([ModuleName.push: [["firstname": "","lastname":"","subscriberId":""]]])
SFMCSdk.identity.PushEnabled(false)---------> Should i put anything like this ??