我正在使用离子框架.我正在尝试设置一种方法来接收来自其他应用的网址.比如,您在浏览器中,单击共享,并将链接发送到另一个应用程序(我的应用程序).我找到了这个cordova插件,并将其集成到我的应用程序中.但这是Android的普及.我在IOS中需要相同的功能.
我知道哪个插件需要用于ios
我为Android采取的步骤
1)cordova插件添加git://github.com/Initsogar/cordova-webintent.git 2)检查config.xml文件并找到webintent的代码
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
Run Code Online (Sandbox Code Playgroud)
和app.js代码
if (window.plugins && window.plugins.webintent) {
window.plugins.webintent.getUri(function(url) {
alert("getUri url:"+url);
});
}
Run Code Online (Sandbox Code Playgroud)
在ios中对功能相同的任何建议?
谢谢
我正在尝试在离子框架中构建一个应用程序.
我正在尝试构建此功能,就像我点击图库中的照片并点击共享一个共享平台将打开.我想在这里展示我的应用程序.
我在plist文件中做了一些修改
这是我的plist文件的代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>public.jpeg</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>icon.png</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon-40</string>
<string>icon-small</string>
<string>icon-60</string>
<string>icon.png</string>
<string>icon@2x</string>
<string>icon-72</string>
<string>icon-72@2x</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>icon-small</string>
<string>icon-40</string>
<string>icon-50</string>
<string>icon-76</string>
<string>icon-60</string>
<string>icon</string>
<string>icon@2x</string>
<string>icon-72</string>
<string>icon-72@2x</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.ionicframework.hitutest948556</string> …Run Code Online (Sandbox Code Playgroud) 我正在创建一个消息传递应用程序,我想让其他应用程序通过共享菜单选项与我的应用程序共享文本.
如何在其中列出我的应用?
这是我想要列出的菜单:

我有一个处理照片的Cordova/PhoneGap应用程序.我想要的是让我的应用程序出现在共享选项中,当其他应用程序想要将照片分享给其他应用程序时.
以下是此类共享对话框的示例:

如何才能使我的Cordova/PhoneGap应用程序出现在其他应用程序的照片共享选项中?
编辑:当我在某些照片应用程序中点击分享到Instagram时,我会得到以下弹出窗口.如何让我的应用程序确实出现在此共享弹出窗口中?

我有一个 Ionic 3 应用程序,我希望该应用程序像这样被放置在 iPhone 的共享列表中,

应在用户访问图库时放置此共享选项,然后在按下共享按钮时,我的 ionic 应用程序应与 whatsapp、facebook 等一起放置。
我浏览了很多链接以找到答案,
使 Ionic 应用程序出现在“共享”列表中并接收数据:这仅适用于 android 手机(网络意图仅适用于 android)
我的应用程序在 iMessage UIActivityViewController [重复] 我试图添加这个答案,但我的文件夹结构中没有 info.plist 文件。
如前所述,我使用 Ionic 3 框架,是否需要安装任何外部插件才能将我的 ionic 应用程序添加到共享列表(在 iPhone 中)。
是否有任何合适的文档可用,以便我能够获得所需的结果。
任何帮助表示赞赏。
ios ×6
cordova ×3
ionic ×2
android ×1
cocoa-touch ×1
iphone ×1
javascript ×1
objective-c ×1
share ×1
typescript ×1