You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/19 16:42:51 UTC

[GitHub] [cordova-plugin-device] SailingSteve edited a comment on pull request #133: (iOS)(Mac Apple Silicon) Detect Cordova running on a Mac desktop with Apple Silicon

SailingSteve edited a comment on pull request #133:
URL: https://github.com/apache/cordova-plugin-device/pull/133#issuecomment-712289784


   This is the object returned by device, when running on Apple Silicon.  (With the additional from this PR).
   
   ```
   2020-10-19 09:28:00.803495-0700 We Vote[1530:17084] Dump Object window.device available: true
   2020-10-19 09:28:00.803554-0700 We Vote[1530:17084] Dump Object window.device platform: iOS
   2020-10-19 09:28:00.803605-0700 We Vote[1530:17084] Dump Object window.device version: 14.0
   2020-10-19 09:28:00.803698-0700 We Vote[1530:17084] Dump Object window.device uuid: 4C9A03D3-4457-5253-8384-B4581A3F7396
   2020-10-19 09:28:00.803778-0700 We Vote[1530:17084] Dump Object window.device cordova: 6.1.1
   2020-10-19 09:28:00.804903-0700 We Vote[1530:17084] Dump Object window.device model: iPad8,9
   2020-10-19 09:28:00.805041-0700 We Vote[1530:17084] Dump Object window.device manufacturer: Apple
   2020-10-19 09:28:00.805150-0700 We Vote[1530:17084] Dump Object window.device isVirtual: false
   2020-10-19 09:28:00.805631-0700 We Vote[1530:17084] Dump Object window.device serial: unknown
   2020-10-19 09:28:00.806016-0700 We Vote[1530:17084] Dump Object window.device isiOSAppOnMac: true
   ```
   Unfortunately 'iPad8,9' matches a real physical device, so it is not usable to detect isiOSAppOnMac condition.
   
   <img width="726" alt="Screen Shot 2020-10-19 at 9 36 37 AM" src="https://user-images.githubusercontent.com/6923653/96480162-bfa3be00-11ee-11eb-884e-6ad3aaee5054.png">
   
   I need access to `isiOSAppOnMac` so that I can tell that the app covers the entire window, and that the hardware menu is not present (Wifi signal, Cell signal, battery, etc).
   
   (Safari DevTools does not work in this window, so all debugging has to rely on the Xcode console.)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org