Skip to content

[Bug]: iOS: Not able to update email using OneSignal.User.addEmail(userInfo.email) #1498

Closed
@piyushTendable

Description

@piyushTendable

What happened?

I am using one signal iOS SDK version: 5.2.5

I am not able to update user email but I can update my user tag.

I don't know what's the issue or any other steps missing.

Screenshot 2024-10-14 at 5 42 03 PM

Any suggestions?

Steps to reproduce?

OneSignal.User.addEmail(userInfo.email)
OneSignal.User.addTag(key: "user_id", value: "\(userInfo.id)")

Tag is updating but email is not updating in subscription.

Setting -> Keys and ids, I have also check that 
Identity Verification for email + external_id (recommended): false 

Checked below documents: 
https://documentation.onesignal.com/docs/react-native-expo-sdk-setup#set-email--phone-number
https://documentation.onesignal.com/docs/ios-sdk-setup
https://github.com/OneSignal/OneSignal-iOS-SDK/blob/main/MIGRATION_GUIDE.md

What did you expect to happen?

I want to update email for my user subscription.

OneSignal iOS SDK version

5.2.5

iOS version

17

Specific iOS version

17.6.1

Relevant log output

VERBOSE: OSOperationRepo enqueueDelta: <OSDelta OS_ADD_SUBSCRIPTION_DELTA with property: Email value: [email protected]>
VERBOSE: OneSignal.User addTags called with: ["user_id": "7887"]

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions