Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Share Target implementation #3

Closed
wants to merge 1 commit into from

Conversation

yuntan
Copy link
Owner

@yuntan yuntan commented Dec 16, 2017

add share_target field to manifest.json
change compose text in componentWillMount of Compose

add share_target field to manifest.json
change compose text in componentWillMount of Compose
@yuntan
Copy link
Owner Author

yuntan commented Dec 24, 2017

Chrome canary 65からインストールしたwebapk: org.chromium.webapk.a5e232d84511244b9
Chrome stable 63からインストールしたwebapk: org.chromium.webapk.a5e232d84511244b9

AndroidManifest.xmlのdiff

3c3
<     <application android:allowBackup="false" android:icon="@mipmap/app_icon" android:label="@string/short_name" android:supportsRtl="true">
---
>     <application android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:label="@string/short_name" android:supportsRtl="true">
16,18c16,26
<         <meta-data android:name="org.chromium.webapk.shell_apk.shellApkVersion" android:value="28"/>
<         <meta-data android:name="org.chromium.webapk.shell_apk.runtimeHost" android:value="com.android.chrome"/>
<         <meta-data android:name="org.chromium.webapk.shell_apk.runtimeHostApplicationName" android:value="Chrome"/>
---
>         <activity android:excludeFromRecents="true" android:label="ますとどんちほー" android:name="org.chromium.webapk.shell_apk.ShareActivity0" android:theme="@android:style/Theme.Translucent.NoTitleBar">
>             <meta-data android:name="org.chromium.webapk.shell_apk.shareTemplate" android:value="https://mstdn.untan.xyz/web/status/new?title={title}&amp;text={text}&amp;url={url}"/>
>             <intent-filter>
>                 <action android:name="android.intent.action.SEND"/>
>                 <category android:name="android.intent.category.DEFAULT"/>
>                 <data android:mimeType="text/plain"/>
>             </intent-filter>
>         </activity>
>         <meta-data android:name="org.chromium.webapk.shell_apk.shellApkVersion" android:value="34"/>
>         <meta-data android:name="org.chromium.webapk.shell_apk.runtimeHost" android:value="com.chrome.canary"/>
>         <meta-data android:name="org.chromium.webapk.shell_apk.runtimeHostApplicationName" android:value="Chrome Canary"/>

共有用のActivityが追加されている

@yuntan
Copy link
Owner Author

yuntan commented Dec 27, 2017

Androidの実装のバグトラッキングページ https://bugs.chromium.org/p/chromium/issues/detail?id=761007
現時点の実装に関する情報 https://groups.google.com/a/chromium.org/d/msg/blink-dev/_oUskZTzQxg/DTQpMDBpBAAJ

@yuntan yuntan closed this Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant