简体   繁体   English

如何在 iphone 的共享菜单中列出我的 ionic 应用程序?

[英]How to get listed my ionic app in the share menu in iphone?

I have an Ionic 3 app, where in i want the app to be placed in the share list in iPhone similarly like this,我有一个 Ionic 3 应用程序,我希望该应用程序像这样放在 iPhone 的共享列表中, 在此处输入图像描述

This Share option should be placed while the User access the gallery and then when pressed on share button my ionic app should be placed along with whatsapp, facebook etc.此共享选项应在用户访问图库时放置,然后当按下共享按钮时,我的离子应用程序应与 whatsapp、facebook 等一起放置。

I have went through so many links to find out the answer,为了找到答案,我浏览了很多链接,

Make Ionic app appear in “Share” list and receive data : This will work for android phones only ( web -intent works only for android) 使 Ionic 应用程序出现在“共享”列表中并接收数据:这仅适用于 android 手机(web -intent 仅适用于 android)

My app inside iMessage UIActivityViewController [duplicate] I have tried to add this answer but i didn't got the info.plist file in my folder structure. 我在 iMessage UIActivityViewController 中的应用 [重复]我试图添加这个答案,但我的文件夹结构中没有 info.plist 文件。

As said before i am using Ionic 3 framework, Is there any external plugin that i need to install to add my ionic app in share list ( in iPhone ).如前所述,我正在使用 Ionic 3 框架,是否需要安装任何外部插件才能将我的 ionic 应用程序添加到共享列表(在 iPhone 中)。

Is there are any suitable docs available so that i can be able to get the desired result.是否有任何合适的文档可用,以便我能够获得所需的结果。

Any help appreciated.任何帮助表示赞赏。

For the Ionic 3 framework, you still set up an Xcode project.对于 Ionic 3 框架,您仍然设置了 Xcode 项目。 These steps are nothing to do with The Framework.这些步骤与框架无关。 It's all about That Xcode project which you set up and build.一切都与您设置和构建的 Xcode 项目有关。 If you don't Here is the Ionic link.如果您不这样做,这里是 Ionic 链接。

Now Once you have the Xcode project.现在一旦你有了 Xcode 项目。

Go to File -> New -> Target Go 到文件 -> 新建 -> 目标

In the Application Extention section, you will see Share Extension Click and Next,在应用程序扩展部分,您将看到共享扩展单击和下一步,

Fill the required information.填写所需信息。 Now run your application ( This will install the extension in the simulator or device ) put the app in the background and go to the gallery, open any image and click the share button.现在运行您的应用程序(这将在模拟器或设备中安装扩展程序)将应用程序置于后台并将 go 放入图库,打开任何图像并单击共享按钮。 Check if you can see your application name/icon in the list.检查您是否可以在列表中看到您的应用程序名称/图标。 Check the following screenshots.检查以下屏幕截图。 添加扩展的屏幕截图 检查扩展的屏幕截图

Now you need to follow apple guidelines for developing a share extension Here .现在您需要遵循苹果指南来开发共享扩展Here

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM