In principle, there are no operating systems pre-established on the smartphone for such actions. Moreover, attention is emphasized on the ability to use ready-made solutions like
scanners iphone app [apps.apple.com], not to develop your own project from scratch. Therefore, it is better to do the same on third-party devices.