You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong platform detected with android 5.1, android 4.4 #17933
I have created 3 different simulators all base on Nexus 5X (1080x1920 density 420dpi) but got different platforms message output.
To clarify, it's a mobile phone, not tablet not desktop.
I log the the platforms as command below:
console.log("platforms=>", this.platform.platforms());
Thanks for opening an issue with us. This is a known limitation with the way we do platform detection. Unfortunately, in order to fix this issue breaking changes are required.
I have a proposal for a revamp of platform detection, but this likely won't come until the next major version of Ionic (we follow semantic versioning for releases, so major versions are the only versions with breaking changes). You can view the proposal here: #17631. The thread also lists a library that implements platform detection, so if you are in need of an immediate workaround you might find that library useful.
I am going to close this issue since the issue is already noted in the thread I attached, but I am going to link these issues together to ensure your use case is covered when we update our platform detection methods.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]Wrong platform detect with android 5.1, android 4.4[/-][+]Wrong platform detected with android 5.1, android 4.4[/+]liamdebeasi commentedon Apr 3, 2019
Hi there,
Thanks for opening an issue with us. This is a known limitation with the way we do platform detection. Unfortunately, in order to fix this issue breaking changes are required.
I have a proposal for a revamp of platform detection, but this likely won't come until the next major version of Ionic (we follow semantic versioning for releases, so major versions are the only versions with breaking changes). You can view the proposal here: #17631. The thread also lists a library that implements platform detection, so if you are in need of an immediate workaround you might find that library useful.
I am going to close this issue since the issue is already noted in the thread I attached, but I am going to link these issues together to ensure your use case is covered when we update our platform detection methods.
Thanks for using Ionic!
ionitron-bot commentedon May 3, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.