Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
モバチキ 〜Mobile Tips 共有会〜 #5
Search
Yanmar
July 24, 2024
0
26
モバチキ 〜Mobile Tips 共有会〜 #5
Yanmar
July 24, 2024
Tweet
Share
More Decks by Yanmar
See All by Yanmar
起動時間で差をつけろ! アプリ起動パフォーマンス改善!
yanmar1208
0
1.9k
DAIMYO Meetup #5
yanmar1208
0
68
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
170
Discover your Explorer Soul
emna__ayadi
2
1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Embracing the Ebb and Flow
colly
88
4.9k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
31
Optimizing for Happiness
mojombo
379
70k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
230
Accessibility Awareness
sabderemane
0
24
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
30
Scaling GitHub
holman
464
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
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 起動時間で差をつけろ! アプリ起動パフォーマンス改善!
ありがとうございました!