Encrypt-S / NavPay

NavPay is a secure bitcoin wallet platform for both desktop and mobile devices.
https://navpay.navcoin.org
MIT License
18 stars 13 forks source link

PWA: Camera does not work on iOS 12 #169

Closed matt-auckland closed 6 years ago

matt-auckland commented 6 years ago

Users on iOS 12 (currently the latest version) can not use the camera in the PWA. Confirmed bug.

Replication:

ro-savage commented 6 years ago

It is likely the code that checks if the camera is supported on iOS.

As I don't have an iOS device with me, someone who does will need to console.log this stuff out and see whats failing / what is being output and update the code accordingly.

Hopefully its just something simple.

https://github.com/Encrypt-S/NavPay/blob/8c72c939db94ad0edfb9619ce671622fafd42619/src/js/services/platformInfo.js#L67-L111

ro-savage commented 6 years ago

This line is incorrect:

https://github.com/Encrypt-S/NavPay/blob/8c72c939db94ad0edfb9619ce671622fafd42619/src/js/services/platformInfo.js#L71

should

 ret.iOSPWASupport = ret.iOSVersion.length ? (ret.iOSVersion[0] >= 11 && ret.iOSVersion[1] >= 3) || (ret.iOSVersion[0] >= 12 ) : false 
matt-auckland commented 6 years ago

Fixed by #170