Search code examples
iphoneobjective-cdetectionqr-codezxing

Objective-C : is it possible to detect QR code data type?


I did qr code with Zxing, Right now I can read data but what I want is :

  • Example: Be able read type of QR Code is wifi, VCard, Calendar, url, etc... if detect QR Code is wifi so I be able code to change wifi setting key,

So, how do i know that data read from QR code is wifi?


Solution

  • QR Code itself does not specify any types. Its plain text. It can be an HTTP URL or a custom URL. (e.g. it should have "type://wifi" inside it. You can then use it to see what the type is). But off-the-shelf, there is no such thing. You have to know who is creating the QR Codes and what is he storing in them.