How to save QR code as an contact in address book in iPhone - iphone

I have started using QR code in one of my app. I have successfully implemented Google API for scanning phone number and generate QR. I have got QR code working, How do i save that QR code as an contact inside address book in iPhone. Please if there is any kind of link or help let me know. Thanks for all the wonderful support

Your QR should be encoded in a specific format. If your QR is vCard encoded, then you can parse that into a Contact and save it.
You might be able to use this as a reference:
How to save contact info from vCard into iPhone's Contacts App

Related

Convert string to uiimage watchkit

Please tell me, I broke my whole head, how can I convert the hash (just string)that I receive from the server into a qr code on a watch using a watch kit.
I have related apps: watch app and phone app. I can do it very easily on my phone - just convert the string to an image using the CoreImage.CIFilterBuiltins, but the watch kit does not provide this.
I tried to send data (I converted a ready-made uiimage into data) between the watch and the phone using the WCSession, I tried the group app, a third-party library, but each time they returned a nil.

A QR code which opens a picture from a page in the Facebook app

I am looking to create a QR code which will open this picture in the users app, so that the user can like the picture and hopefully help my band to win an award :-)
http://www.facebook.com/highvoltageawards/photos/a.768979109875764.1073741832.710487739058235/761209933986015/
I have tried various qr readers, replaced "http://www.facebook.com/highvoltageawards/" with "fb://profile/710487739058235/" and all kinds of combinations.
Is this even possible?
Best, Astrid
You can try this QR Code as generated from QR Code Generator by Aspose.BarCode for Java. http://goo.gl/ENJjzw
Please download image from this link: http://bit.ly/1ELPRbt

Photo inside vCard inside QR code: How to make it readable?

I am trying to create a QR code containing my vCard with an inline, Base64 encoded photo in PNG. (I am not interested in a photo referenced by a URI.)
I have studied vCard 3.0 specification, vCard 4.0 specification and Wikipedia articles "vCard" and "Base64".
I have created many vCards:
versions 2.1, 3.0, 4.0
photo as PNG or JPEG (just in case PNG does not work)
with and without line folding in Base64 photo
with and without diacritics in my contact details
Example:
BEGIN:VCARD
VERSION:3.0
N;CHARSET=UTF-8:Diblík;Petr
FN;CHARSET=UTF-8:Petr Diblík
TITLE;CHARSET=UTF-8:přední český mozaikář
NICKNAME:pd#
TEL;TYPE=cell:+420777282921
EMAIL:petr.diblik#mozaikar.cz
URL:http://www.mozaikar.cz
PHOTO;TYPE=PNG;ENCODING=B:iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAACCEkxzAAABPklEQVR4AW3LMUvDQBjG8ecSSwbBdtEuauwgdHN3ueLmpJtgh36EfgDByya6+BEs+AGcBAcht9XRzUmMuLioRZHG2OTxXnqgqO9yP/48B2aQi37A/kHyHy6AEIJFCADsCnKHS4+ZiWAEtNaBSLBWepwXHi9j2WQIDJNG5KBSoiYIyKtgKKXHfEEAw4+dA1ggJjkU1B2kIHQ4lo0SSIEhT2AVoMnUwco3jQz3gynCPI9PK4MRJu04mTN4BPMYAR3MRKNFXCsW2s4TGUyhH5aIFZhcpynRgS70HYkEZmQoQJxpAaAHZoqm8jj0gFUUQCXwAH6XDvwY36g8avseq6+VAG29V/YEjXrJVLAcsbwR1N9YvQuaJEtB5PAsCB2YeoylwMGcCTT5OQYwu0VWt8C2e9ntY+OoSxZPhN3su1LxC1Cg7qrVLzSeAAAAAElFTkSuQmCC
END:VCARD
Some of the vCards (not encoded in a QR code yet) can be successfully imported to Google Contacts, including the photo.
But when encoded in a QR code (using goqr.me or qrcode-monkey.com), the vCard is always read WITHOUT the photo, using any of the following QR code readers for Android:
Google Goggles
QR Code Reader (Scan, Inc.)
Seznam.cz qr ctecka (Seznam.cz, a.s.)
(QR Code Desktop Reader (CodeTwo) for Windows cannot read those QR codes at all.)
Please advise how to improve the vCard so as it can be read from a QR code and saved to contacts INCLUDING the photo.
Or if the vCard is valid, is there some combination of a platform (no matter whether desktop or mobile), a QR code reader and a contact manager sw that can do that?

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?
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.
There is no standard format for encoding wi-fi information in a QR code. There is a de facto standard suggested by zxing and supported by Barcode Scanner, which is like:
WIFI:T:WPA;S:mynetwork;P:mypass;;
(This imitates many of DoCoMo's standards for QR code contents.) I'd just reuse this if you can.
This page lists common encodings for other data. Whether you can do anything with them on the iPhone, I don't know. On Android you can scan these to configure Wi-fi and add contacts.
Here is a nice document of different QR code types. None of them are standard, but you get the idea: https://github.com/zxing/zxing/wiki/Barcode-Contents
There is platform specific format for Android.
WIFI:T:WPA;S:mynetwork;P:mypass;;
Though, if there is no API for setting the WIFI settings on iOS, any format doesn't help much :/

how to decode QR code - iPhone

I am developing an app which reads barcode and QR code using Zbarcode framework. Is there any way to decode the QR code using objective c?
You can refer to this library called Zxing.
This has both QRCode Reader and BarCode Reader.
http://code.google.com/p/zxing/
Hope this helps you.