Hello, I was create a auth file on flutter. This is working. But I get 2 issues.
If I re login it create each time a new target with that push. I dont know how to check all targets based on user to not create for same device token a new target.
And if I try to send message I get the following error on backend
Failed sending to targets with error: Cannot access offset of type string on string
I was add the providerId who I was get once I create the appleapn.
I hope some can help me to fix that file. 😦
Best, Sebastian
TL;DR
Issue: Developers facing problems with sending push notifications and registering devices multiple times as new targets.
Solution: To prevent creating new targets for the same device token, developers can check all targets based on the user. Additionally, the error "Cannot access offset of type string on string" when sending messages can be resolved by ensuring correct formatting of the providerId related to the appleapn.