1
私はアンドロイドの共有機能に自分のアプリケーションを登録しようとしましたが、私はマニフェストを変更する必要があることがわかりました。Meteor 1.5 Cordova AppでAndroidManifest.xmlを変更するには?
は私がやった:
App.appendToConfig(`
<universal-links>
<host name="com.toto.app" />
</universal-links>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</config-file>
</platform>
`);
新しい行がconfig.xmlに表示されますが、インテントフィルタはマニフェストに表示されないとアプリが生成されていません。ここ
はあなたがAndroidの名前空間を参照するすべての要素の属性xmlns:android="http://schemas.android.com/apk/res/android"
を必要とするエラーメッセージ
=> Started your app.
=> App running at: http://localhost:3000/
Type Control-C twice to stop.
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed: C:\dev\Talkalang_V41\.meteor\local\cordova-build\platforms\android\cordova\run --device --device
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\dev\Talkalang_V41\.meteor\local\cordova-build\platforms\android\res\xml\config.xml:60: AAPT: Error parsing XML: unbound prefix
C:\dev\Talkalang_V41\.meteor\local\cordova-build\platforms\android\build\intermediates\res\merged\debug\xml\config.xml:60: error: Error parsing XML: unbound prefix
コルドバ - カスタム設定:プラットフォーム「アンドロイド」の設定を更新エラー:交換要素 – Marc
/により明らかに絶対パスを使用することはできません。この問題を解決しますが、これはすべて厳密には影響しません。言い換えれば、ギャラリーアプリから写真を共有していますが、私のアプリは共有するアプリのリストにはどこにも表示されません。 – Marc
btw、私はhttps://ourcodeworld.com/articles/read/101/how-to-list-your-cordova-app-in-open-with-menu-in-android-and-handle-今のところ成功していない。 – Marc