Skip to content

[Bug]: iOS: addTagWithKey does not apply #1087

@ftl-huongdv

Description

@ftl-huongdv

What happened?

On iOS Release builds, the user logs in, calling addTagWithKey does not apply the tag — the SDK returns no error but the tag never appears on OneSignal. If the user try again, the tag is applied successfully. This only happens on iOS in Release mode

Steps to reproduce?

Install the app from App Store

Launch app

Initialize OneSignal:

OneSignal.initialize(APP_ID);
OneSignal.Notifications.requestPermission(true);


User logs in

Call:

await OneSignal.User.addTagWithKey('userId', userId);


Tag is not applied

Logout, OneSignal.User.removeTag('userId') → login again

Tag is applied successfully

What did you expect to happen?

OneSignal.User.addTagWithKey('userId', 'user.$userId') works fine

OneSignal Flutter SDK version

5.3.4

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions