Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
モバチキ 〜Mobile Tips 共有会〜 #5
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yanmar
July 24, 2024
42
0
Share
モバチキ 〜Mobile Tips 共有会〜 #5
Yanmar
July 24, 2024
More Decks by Yanmar
See All by Yanmar
起動時間で差をつけろ! アプリ起動パフォーマンス改善!
yanmar1208
0
2.1k
DAIMYO Meetup #5
yanmar1208
0
75
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
Color Theory Basics | Prateek | Gurzu
gurzu
0
350
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
220
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
A better future with KSS
kneath
240
18k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
570
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
600
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
180
Building Adaptive Systems
keathley
44
3k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
220
Transcript
モバチキ 〜Mobile Tips 共有会〜 #5 チャリチャリ株式会社 山元 康平
自己紹介 山元 康平(yanmar) - 所属:チャリチャリ株式会社 - 職種:Androidエンジニア - 経歴: 2018.03 早稲田大学商学部 卒
2018.04~ 東京海上日動火災保険 2020.01~ レンサ 2022.05~ フラー 2024.02~ チャリチャリ
WebView好きなひと〜🙋
ぼくは嫌いです
こ こ が つらい WebView JS ハンドリング
Androidえんじにゃーのみなさん - WebViewで苦しむ人を世の中から減らすべく事例紹介 そのほかのみなさん - WebViewの苦しみを知り、工数策定やタスク割り振り に役立ててほしい どう聞いてほしいか
問題 Android WebViewにはPDFビューワが備わっていない PDFページを開くと空ページが表示される 1. PDF表示 対策 ”application/pdf”を指定して外部ブラウザ遷移 AndroidのFilesアプリ経由で起動できる
1. WebViewのページ遷移先をハンドリング 2. URL末尾”.pdf”の場合外部ブラウザ遷移 3. 上記コードでtype指定
問題 比較的新しいJSメソッドを使用しているページを WebViewで表示するとBlankになる 2. WebViewとJSバージョン互換性 対策 WebViewとJSのバージョン互換性に対応させる (以下どちらか) ・Web側で古いバージョンのコードに置き換え ・WebViewバージョンアップをユーザーに促す
WebViewバージョンアップ 前提 1. Android7.0以降&Chrome51以上ではChromeがWebView として動く a. ChromeのPlayStoreページに遷移させる 2. Chromeが標準搭載されていない or
無効化されている場合 がある a. WebViewのPlayStoreページに遷移させる 3. WebViewもChromeも無効化されている a. WebViewの設定画面に遷移
None
DroidKaigi Day3 起動時間で差をつけろ! アプリ起動パフォーマンス改善!
ありがとうございました!