Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: After successfully upgrading to 5.0.1 - it is not working in Simulator anymore? #1303

Closed
1 task done
sabiland opened this issue Aug 11, 2023 · 7 comments
Closed
1 task done

Comments

@sabiland
Copy link

sabiland commented Aug 11, 2023

How can we help?

I successfully upgraded to 5.0.1 version. Tested on physical device - everything OK. But version 3 worked in simulator, 5.0.1 seems not to be working?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Aug 11, 2023

Thank you for reaching out can you clarify what is not working?

@sabiland
Copy link
Author

Version 3 worked in simulator:

  1. There was shown dialog for accepting APN
  2. There was dialog about New Features
  3. etc.

Now it seems nothing of above works in Simulator. I have latest Prod Xcode 14.3.1.

@emawby
Copy link
Contributor

emawby commented Aug 14, 2023

@sabiland It sounds like you are using In App Messages, but they are not displaying? Can you describe how to are integrating OneSignal (Swift Package Manager or Cocoapods). If you are using Swift PM make sure you have added the new OneSignalInAppMessages product to your app and that you have also added WebKit

@sabiland
Copy link
Author

sabiland commented Aug 16, 2023

  1. Yes I am using In App Messages, they are not showing in Simulator.
  2. They are showing correctly on physical device. I have integrated OneSignal via Swift Package Manager with selecting all options.

If I run app in simulator I always get at the beginning, but I am not sure this is related.

2023-08-16 11:21:34.750797+0200 Tizima[59174:1211992] ERROR: OSUserExecutor create user request failed with error: Optional(Error Domain=OneSignalError Code=400 "(null)" UserInfo={returned={
    errors =     (
                {
            title = "The provided language value is not a supported ISO 639-1 value";
        }
    );
    httpStatusCode = 400;
}})

@emawby
Copy link
Contributor

emawby commented Sep 6, 2023

@sabiland Could you turn on verbose logging. Not creating a user is definitely the issue here. What language code could the SDK be trying to send?

@sabiland
Copy link
Author

sabiland commented Sep 9, 2023

@emawby I noticed there are no problems on iOS 17 simulator, only on iOS 16.4 simulator. On iOS 17 simulator everything works ok.

@nan-li
Copy link
Contributor

nan-li commented May 15, 2024

@sabiland Perhaps the two simulators are using different language codes. Regardless, since then, wrong language codes will not block user creation anymore, so I will close out this issue.

Feel free to follow up with any further comments or questions if you have them.

@nan-li nan-li closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants