Open link with my app

Hello,
the root view of my app contains a webview and i want to provide certain links with qr codes that the user can scan and open within the app.
I see 2 possible ways for that:

  1. Add my own qr scanner to the app(is there a library for that that handles camera and decoding?)
  2. make the user use the default camera-app(or any other qr scanner app) and register the domain to be opened with the app, if that is possible.

I guess 2 would be the easist way. Is this possible? If so, how?