如何从iMessage打开我们的应用程序 [英] How to open our app from iMessage
本文介绍了如何从iMessage打开我们的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在iMessage中创建了一个可以正常工作的应用,但是我想知道如何从iMessage中打开我们的应用
I had created an app in iMessage that is work perfactly but i want to know how can i open our app from iMessage
假设我添加了iMessage目标之后有了一个应用程序,并且想要从iMessage打开我的应用程序,可以从iMessage打开该应用程序吗?
Suppose I have one app after that i added iMessage target and from iMessage I want to open my app from iMessage is it possible ?
我尝试过但没有成功
NSString *customURL = @"appName://";
if ([[UIApplication sharedApplication]
canOpenURL:[NSURL URLWithString:customURL]])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:customURL]];
}
错误:
推荐答案
最后解决了问题.我再次去过我的应用程序的构建设置",偶然发现了
Finally Problem solved. I've been to the Build Settings of my app again and stumbled over
我第一次设置为是.默认值是NO.当我将此设置为否"时,错误消失了.我也对这个结果感到震惊
First time i set to YES. The default though is NO. When I set this to NO the error disappeared. i am also shocked with this results
这篇关于如何从iMessage打开我们的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文