我的任务是想要打开我的应用程序,当QR码开始扫描ios设备上的应用程序,如Android应用程序,如果检测到qr扫描,在结果后打开一些应用程序的Android应用程序。
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.
最满意答案
在执行此操作之前,您应该为您的应用注册自定义URL方案
注册自定义URL方案
完成这些步骤后,您需要为您的应用制作QR码并存储在您正在使用的该应用的本地数据库中。 扫描二维码然后获取您的应用程序自定义网址并使用此网址,您可以轻松打开您的应用程序。 试试这可能会有所帮助
获取您的应用程序的自定义URL后,尝试打开应用程序..
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];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];更多推荐
发布评论