OneSignal-Unity-SDK
OneSignal-Unity-SDK copied to clipboard
[Bug]: Moving setLocationShared() operation to a pending task queue.
What happened?
OneSignal 3.0.10, after opening app by pressing push notification white popup appeared on the screen with such text: "ERROR Waiting for remote params. Moving setLocationShared() operation to a pending task queue."
Steps to reproduce?
1. Install OneSignal 3.0.10.
2. Use this code in project:
'IEnumerator Start () {
yield return new WaitForSeconds(1.0f);
OneSignal.Default.LogLevel = LogLevel.Info;
OneSignal.Default.AlertLevel = LogLevel.Error;
OneSignal.Default.RequiresPrivacyConsent = true; // before init
OneSignal.Default.Initialize("xxx-xxx-xxx-xxx-xxx");
PromptForPush();
OneSignal.Default.ShareLocation = false;
OneSignal.Default.SetLaunchURLsInApp(false);
}'
3. While app in background or closed(not sure) tap on received notification in order to open application.
What did you expect to happen?
I expected not to have such errors in project. While I understand that the popup is caused by these lines "OneSignal.Default.LogLevel = LogLevel.Info; OneSignal.Default.AlertLevel = LogLevel.Error;", I think the issue exist, please correct me if I'm wrong.
Unity version
2021.3.25
OneSignal Unity SDK version
3.0.10
Platform
Android
Relevant log output
"ERROR
Waiting for remote params. Moving setLocationShared() operation to a pending task queue."
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Thanks for reporting, I'll try to reproduce this on my device later this week