Closed johanlantz closed 9 months ago
Hello @johanlantz thanks for reaching out! Just to clarify, are you using the Android native SDK and theaddTag
method? We do not have an addTagWithKey
method. Thanks for the additional information!
This is using the Flutter SDK on an Android phone. I assumed it uses the native Android SDK under the hood but I guess the issue could also be in the plugin.
Hey @johanlantz, Yes this await comes from the plugin itself when it calls into the native Android SDK. Thanks for reporting, we will investigate.
Hi @johanlantz, thanks again for reporting this issue and your patience.
We have released the fix in Release 5.1.0.
Please update and reach out if you are still seeing issues. Thanks!
What happened?
Migrating to 5.0.4 I am doing this init:
However since most of these functions are async I added await on them but using:
await OneSignal.User.addTagWithKey('aKey', 'aValue');
Causes Android to hang, took me quite some time to understand why the permission prompt did not show. In iOS it is fine.
There is a 202 response in the log for uploading the tag but does not work properly.
Steps to reproduce?
What did you expect to happen?
The sdk should not hang
OneSignal Android SDK version
5.0.4
Android version
13
Specific Android models
Relevant log output
No response
Code of Conduct