how to open my ios Application by scanning QR Code from ios market app?

14,544

Before doing this you should Custom URL Scheme register for your app

Registering a Custom URL Scheme

After these steps you need to make QR code for your app and store in local DB of that app you're using. When scan QR code then get your app custom url and using this url you can open your app easily. Try this may be help full

after get Your custom url of your app try this for open application..

UIApplication *ourApplication = [UIApplication sharedApplication];
NSString *ourPath = @"your app Custom URL"; //For Example Like this @"com.myCompany.myapp"
NSURL *ourURL = [NSURL URLWithString:ourPath];
[ourApplication openURL:ourURL];
Share:
14,544
Anand3777
Author by

Anand3777

I Have solidly 5.0 years of experience in iOS Application development and overall I have 5.7 years of experience in software development. I was worked on XMPP, SIP, Swift, Objective-C, PayPalSwiper, HyperPay, Pay-u-Money, WebPay, Core-location, GMSMap, FaceBookSDK etc.,

Updated on June 12, 2022

Comments

  • Anand3777
    Anand3777 almost 2 years

    My task is want to open my application when the QR code is start scanning on ios device, like android apps, in android apps if qr scanning is detected, after the result it is opening some of the application.

  • Anand3777
    Anand3777 over 9 years
    Mr Joge. I already followed the tutorial, but my requirement is if the device found the qrscan and the result is geting my app URL Scheme, my app should open. Is this functionality work?
  • Anand3777
    Anand3777 over 9 years
    this code ios opening my app. But The qrcode generation and scanning is not a mobile part then why should i store it on local db? the user is going to scan qrcode from other app that source is not in my hand.
  • Jogendra.Com
    Jogendra.Com over 9 years
    You need a specific QR Code of your app. and other app is syncing from live server that server will have your QR Code exit there (That app you are using, on that app server you need to upload your QR Code with custom URL of your app. Using that QR code other app will sync with server and that will get from server your app Custom URL and using that other app can open your app )
  • Anand3777
    Anand3777 over 9 years
    yes, but some of the market app only supporting. I don't know why. "Qrafter" app is opening my app. because that app only having "Open app URL" option.