openurl

CFBundleDocumentTypes with Photo Library / Camera Roll

浪子不回头ぞ 提交于 2019-12-07 18:29:42
问题 I've added CFBundleDocumentTypes (public.png, public.jpeg, public.jpg, public.gif) to the Info.plist file. When I view an image in the "Mail" or "Messages" apps and click the "actions" menu button, I'm prompted to "Open Image in [My App]" ... however, when I view an image in the Photo Library / Camera Roll, I'm only prompted with "Facebook", "Twitter", and "Flickr". Am I missing any settings in the plist file (pictured below)? Or does an app need special permissions to appear in the "actions"

Prompt when trying to dial a phone number using tel:// scheme on iOS 11

谁说胖子不能爱 提交于 2019-12-07 11:38:02
问题 I am facing an issue, while trying to start a phone call from my iOS app using: UIApplication open(_:options: completionHandler:) iOS shows an confirmation popup/alert before starting the call with two button Call & Cancel and CompletionHandler called with a Bool parameter having true/false based on button action in iOS 10. But now in iOS11 the problem is that the completionHandler is being called automatically before tapping on "Cancel" or "Call" button of confirmation popup, always having

NSWidgetExtensionContext openURL Swift

亡梦爱人 提交于 2019-12-07 02:47:10
问题 I have been attempting to implement a button to open my iOS app from its widget. I realize this issue has been beaten to death on the forums but I cannot find explanation with the specific error I am receiving. Perhaps some of you more experienced iOS developers can shed some light on this. I am developing an update to one of my iOS apps for iOS 10 using XCode 8.1 and Swift 2. Code for my widget's button: URL scheme added to the widget's info.plist: The runtime error I receive when pressing

Is it possible to go back automatically into the application after calling a Number?

别等时光非礼了梦想. 提交于 2019-12-06 16:06:04
In my application I have some phone numbers, so that the users can call the numbers. When the users tap the numbers it push them out of the application to call the number they tapped. What I want is that the application should get the users back to the application after that the conversation is finished. In Mailing mode you can use MFMailComposeController , and then switch back to the previous view. So When you use the MFMailComposeController You never get out of the application. public override void ViewDidLoad () { base.ViewDidLoad (); //Call A number</i> this.buttonCall.TouchUpInside +=

Issue with mail sending using openURL

China☆狼群 提交于 2019-12-06 14:58:51
问题 I'm facing a issue with opening mail client using openURL. Here is the code. NSString *subject = @"Demo Subject"; NSString *body = @"<html><head>Header</head><body><a href=\"http://example.com\">Here is the demo link</a></body></html>"; NSString *urlString = [NSString stringWithFormat:@"mailto:?&subject=%@&body=%@",subject,body]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; I guess, is there any kind of encoding needed to use special characters, which is do

openURL in APPDelegate conversion error NSString -> String (Swift & iOS8)

给你一囗甜甜゛ 提交于 2019-12-06 14:19:48
问题 I'm currently developing an iOS application that integrates Facebook and I'm having a bit of a problem while investigating this with Swift (with ObjC I have no problems). The thing is, this is the method that gets executed in the appDelegate when coming from another APP (in this case FB in a WebBrowser): func application( application: UIApplication, openURL url: NSURL, sourceApplication: NSString, annotation: AnyObject) -> Bool { let appString : String = sourceApplication as String // Try to

How to dynamically change the openURL implementation in my app?

纵然是瞬间 提交于 2019-12-06 13:24:45
In my app, I have implemented a private method in my AppDelegate to override the default openURL: method in order to open links inside my app within UIWebView . But now I need the default functionalities in place too. Here's what I did: @implementation UIApplication (Private) - (BOOL)customOpenURL:(NSURL*)url { AppDelegate *MyWatcher = (AppDelegate *)[[UIApplication sharedApplication] delegate]; if (MyWatcher.currentViewController) { [MyWatcher.currentViewController handleURL:url]; return YES; } return NO; } @end - (void)applicationDidBecomeActive:(UIApplication *)application { Method

iPhone Smart App Banners - openUrl not called

浪尽此生 提交于 2019-12-06 02:58:54
Hey stackoverflow fellows, I recently tried to implement the Smart App Banners from Apple. They work but, I'm not able the get app-argument data in my App. The App runs on iOS 5, 6, & 7 but I tried iOS 6 & 7 only, too. Here's my code for the Banner: <meta name="apple-itunes-app" content="app-id=688798564, app-argument=http://app.heimwerker.de/2" /> This is my implementation: -(BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:NSString*)sourceApplication annotation:(id)annotation{ NSLog(@"URL: %@",url.absoluteString); UIStoryboard *storyboard = [UIStoryboard

canOpenURL not working in ios 10 [duplicate]

不问归期 提交于 2019-12-06 02:07:53
问题 This question already has answers here : Google Maps URL scheme not working on iOS 9 (2 answers) Closed 3 years ago . The above code is always returning false if {(UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!))} I guess this a problem found in iOS10. I am trying to open google maps app if there in one installed or try to open apple maps so wanted to use canOpenURL . are there any alternatives 回答1: Add this to your Info.plist and then try calling canOpenURL. <key

Prompt when trying to dial a phone number using tel:// scheme on iOS 11

自闭症网瘾萝莉.ら 提交于 2019-12-05 13:55:04
I am facing an issue, while trying to start a phone call from my iOS app using: UIApplication open(_:options: completionHandler:) iOS shows an confirmation popup/alert before starting the call with two button Call & Cancel and CompletionHandler called with a Bool parameter having true/false based on button action in iOS 10. But now in iOS11 the problem is that the completionHandler is being called automatically before tapping on "Cancel" or "Call" button of confirmation popup, always having true value. Is this a bug in iOS11 or is there something that I am doing wrong? There has been a