Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042262Retail ModulesWeb POSpublic2019-11-12 16:452019-11-28 12:22
salvador_campanella 
javierRodriguez 
normalmajorhave not tried
closedfixed 
5
 
RR20Q1 
marvintm
No
0042262: Focuskeeper is lost in IOS 13.2.2
web/org.openbravo.mobile.core/source/component/ob-terminal-component.js

In the mentioned file exist the folowing conditional.
// This shouldn't be done in iOS, if done the focuskeeper loses the focus
if (me.scanMode && navigator.userAgent.match(/iPhone|iPad|iPod/i)) {
OB.debug('scanningfocus. iOS. Focused');
keeper = document.getElementById('_focusKeeper');
keeper.disabled = false;
me.setFocusOnFocusKeeper();
}

In iOS version 13.2.2 the userAgent, not contains "/iPhone|iPad|iPod"

You could see the userAgent in the attached Img
- Using an Ipad with 13.2.2 version
- Open the WebPos
- Connect a Bluetooth keyboard or a bar code scanner
- Try to do a ticket

Result: the focuskeeper is lost
No tags attached.
depends on backport 0042276RR19Q4 closed javierRodriguez Focuskeeper is lost in IOS 13.2.2 
depends on backport 0042277RR19Q3.2 closed javierRodriguez Focuskeeper is lost in IOS 13.2.2 
png Captura 2019-11-12 a las 10.54.58 (1).png (195,319) 2019-11-12 16:45
https://issues.openbravo.com/file_download.php?file_id=13525&type=bug
png
Issue History
2019-11-12 16:45salvador_campanellaNew Issue
2019-11-12 16:45salvador_campanellaAssigned To => Retail
2019-11-12 16:45salvador_campanellaFile Added: Captura 2019-11-12 a las 10.54.58 (1).png
2019-11-12 16:45salvador_campanellaResolution time => 1575154800
2019-11-12 16:45salvador_campanellaTriggers an Emergency Pack => No
2019-11-12 16:50PracticsIssue Monitored: Practics
2019-11-14 10:39javierRodriguezStatusnew => scheduled
2019-11-14 10:39javierRodriguezStatusscheduled => acknowledged
2019-11-14 10:43javierRodriguezAssigned ToRetail => javierRodriguez
2019-11-14 10:43javierRodriguezStatusacknowledged => scheduled
2019-11-14 11:48javierRodriguezStatusscheduled => acknowledged
2019-11-14 11:48javierRodriguezStatusacknowledged => scheduled
2019-11-15 09:53hgbotCheckin
2019-11-15 09:53hgbotNote Added: 0115622
2019-11-15 09:53hgbotStatusscheduled => resolved
2019-11-15 09:53hgbotResolutionopen => fixed
2019-11-15 09:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/441cd9c645428fc3caa06d9fc68c9ead24403196 [^]
2019-11-28 12:22marvintmReview Assigned To => marvintm
2019-11-28 12:22marvintmStatusresolved => closed
2019-11-28 12:22marvintmFixed in Version => RR20Q1

Notes
(0115622)
hgbot   
2019-11-15 09:53   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 441cd9c645428fc3caa06d9fc68c9ead24403196
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Wed Nov 13 13:09:44 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/441cd9c645428fc3caa06d9fc68c9ead24403196 [^]

Fixed issue 42262: Focuskeeper is lost in IOS 13.2.2

With ipadOS, Apple wants that no website should know if you are using a Macintosh or an ipad.
Due to this, ipad user agent is equal than Macintosh user agent. Refactoring the isIOS function
in ob-utilities to look for 'Macintosh' inside the user agent works.

---
M web/org.openbravo.mobile.core/source/component/legacy/ob-legacy.js
M web/org.openbravo.mobile.core/source/component/ob-form.js
M web/org.openbravo.mobile.core/source/component/ob-login.js
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---