Phonegap の ExternalFileUtil-Plugin を使用しています ( https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ExternalFileUtil )。しかし、それはiPhoneでのみ機能します。iOS 6.0 および 6.1 の iPhone シミュレーターで動作し、iOS 6.x の iPhone 4 および 5 で動作します。しかし、iPad では動作せず、シミュレーターでもデバイスでも動作せず、iOS 5.1 を搭載した iPod Touch でも動作しません ;(
http://www.tricedesigns.com/2012/08/15/open-with-in-ios-phonegap-apps/のコメントに記載されている提案を試しましたが、何も役に立ちません。
私の意見では、次の行を調整する必要があります。
UIDocumentInteractionController *controller = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
controller.delegate = self;
controller.UTI = uti;
[controller retain];
CDVViewController* cont = (CDVViewController*)[ super viewController ];
CGRect rect = CGRectMake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height);
[controller presentOptionsMenuFromRect:rect inView:cont.view animated:YES];
誰か提案はありますか?