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
Yanmar
July 24, 2024
0
8
モバチキ 〜Mobile Tips 共有会〜 #5
Yanmar
July 24, 2024
Tweet
Share
More Decks by Yanmar
See All by Yanmar
起動時間で差をつけろ! アプリ起動パフォーマンス改善!
yanmar1208
0
410
DAIMYO Meetup #5
yanmar1208
0
38
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
96
11k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
158
15k
How to train your dragon (web standard)
notwaldorf
86
5.6k
RailsConf 2023
tenderlove
28
820
Infographics Made Easy
chrislema
239
18k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
1
57
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
Six Lessons from altMBA
skipperchong
26
3.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
401
65k
Being A Developer After 40
akosma
84
590k
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 起動時間で差をつけろ! アプリ起動パフォーマンス改善!
ありがとうございました!