We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Ti.userAgent is set incorrectly on iOS.
Ti.userAgent
The Ti.userAgent property should be Appcelerator Titanium/10.2.0 (...).
Appcelerator Titanium/10.2.0 (...)
It returns Appcelerator Titanium/0.0.0 (...) on iOS. The same works fine on Android.
Appcelerator Titanium/0.0.0 (...)
console.warn(Ti.userAgent);
Run the above on iOS.
iOS
10.2.0
The text was updated successfully, but these errors were encountered:
Maybe a dev/production build issue?
https://github.com/appcelerator/titanium_mobile/blob/fe3deddcea07ecb3555673cf2dba8d676fd79611/iphone/TitaniumKit/TitaniumKit/Sources/API/TiBase.h#L483-L488 sets it to 0.0.0 if not defined. But it is set here: https://github.com/appcelerator/titanium_mobile/blob/ead1713e5e36b4632b692ce6fcc9a9785b91ad26/iphone/cli/commands/_build.js#L4601 and if I look in the project.xconfig I see that TI_VERSION is set to 10.1.1.
Sorry, something went wrong.
No branches or pull requests
I have searched and made sure there are no existing issues for the issue I am filing
Description
The
Ti.userAgent
is set incorrectly on iOS.Expected Behavior
The
Ti.userAgent
property should beAppcelerator Titanium/10.2.0 (...)
.Actual behavior
It returns
Appcelerator Titanium/0.0.0 (...)
on iOS. The same works fine on Android.Reproducible sample
console.warn(Ti.userAgent);
Steps to reproduce
Run the above on iOS.
Platform
iOS
SDK version you are using
10.2.0
The text was updated successfully, but these errors were encountered: