Unable to open OneNote webUrl in iPhone?

拥有回忆 提交于 2019-12-12 01:45:41

问题


I am using OneNote API for creating note in OneNote from my ios application. After creating note api returns two url clientUrl and webUrl.

clientUrl => Link open page in the installed client 
webUrl => Link to open page in OneNote Online

Now the problem is webUrl is successfully opening in iPad but not in iPhone. In iPhone i am getting safari can not open the page.

This is the code i did for opening webUrl.

NSURL *url = [NSURL URLWithString:webUrl];
UIApplication *application = [UIApplication sharedApplication];
[application openURL:url options:@{} completionHandler:nil];

Also i tried to open clientUrl but what if user have no OneNote app installed in device ?

Please help me on this why i am unable to open URL ? Is there any specific reason behind this ?

来源:https://stackoverflow.com/questions/42197249/unable-to-open-onenote-weburl-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!