push-notifications-swift icon indicating copy to clipboard operation
push-notifications-swift copied to clipboard

Crash in `setUserId` in iOS 18

Open andy-vanwagoner-jn opened this issue 1 year ago • 0 comments

Screenshot 2024-11-08 at 2 45 58 PM copy

stack trace in organizer

It looks like the dictionary PushNotifications.shared.tokenProvider or serverSyncEventHandler.userIdCallbacks is being accessed concurrently on different threads, which causes the crash. I haven't been able to reproduce the issue locally, but I have 1,864 devices affected in organizer in the last 2 weeks.

I'll try to consistently call on a particular thread to see if that helps.

andy-vanwagoner-jn avatar Nov 08 '24 22:11 andy-vanwagoner-jn