-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I have the following code:
if (this.platformService.is('android') && this.platformService.is('tablet'))
return 'androidtablet';
else if (this.platformService.is('android'))
return 'android';
else if (this.platformService.is('ipad'))
return 'ipad';
else if (this.platformService.is('ios'))
return 'iphone';
else
return 'web'; // unknown?
When digging through my logs, I found the following which seemed odd:
This particular app is only able to be run on iPads. The Platform
user agent detection logic is not correct for the latest iPads it seems.
Note in the screenshot how all the iPad models 6,7 and 6,8 show up as iPhone whereas they are all running on iPad devices.
Expected behavior:
Check the Platform
user agent detection logic on the latest iPad devices.
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.10
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.2.1 Build version 8C1002