如何在IOS共享菜单中显示我的cordova应用程序? [英] How to show my cordova app in IOS share menu?

查看:131
本文介绍了如何在IOS共享菜单中显示我的cordova应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个现有的Cordova iOS应用程序,我们需要一个iOS共享扩展,允许用户使用我们的应用程序共享来自其他应用程序(如照片,页面,数字,主题演讲等)的文件(即从Pages导出文件)到我们的应用程序)。

We have an existing Cordova iOS App for which we need an iOS share extension which will allow Users to to share files from other apps (like Photos, Pages, Numbers, Keynote, etc) with our App (i.e. Export file from Pages to our App).

我们需要以下交付:


  • 原型/示例iOS Cordova应用程序

  • ,为jpg,png,video,pdf和office(xls,xlsx,doc,docx,ppt,pptx)文件设置共享扩展程序

  • 扩展以直接打开Cordova应用程序或在共享小部件内打开Cordova应用程序作为webview

  • Cordova应用程序必须接收有关共享文件的参数(文件名,来自扩展程序的路径,类型,文件大小 - 之后对文件的处理将由我们完成。

  • 有关如何在我们现有的Cordova应用程序中实现此功能(共享扩展)的文档(步骤必须在Xcode等中执行)

  • Prototype / Sample iOS Cordova App
  • with a share extension setup up for jpg, png, video, pdf and office (xls, xlsx, doc, docx, ppt, pptx) files
  • Extension to either open the Cordova App directly OR to open the Cordova App as a webview inside the share widget
  • Cordova App must receive parameters about the shared file (filename, path, type, filesize) from extension - the handling of the file afterwards will be done by us.
  • Documentation on how to implement this functionality (share extension) in our existing Cordova App (steps necessary to perform in Xcode etc)

推荐答案

T这是一个跨平台的cordova插件(iOS和Android),实现了: https:// github .com / j3k0 / cordova-plugin-openwith

There is a cross-platform cordova plugin (iOS and Android) that achieves that: https://github.com/j3k0/cordova-plugin-openwith

这篇关于如何在IOS共享菜单中显示我的cordova应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆