Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
モバチキ 〜Mobile Tips 共有会〜 #5
Search
Yanmar
July 24, 2024
47
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
モバチキ 〜Mobile Tips 共有会〜 #5
Yanmar
July 24, 2024
More Decks by Yanmar
See All by Yanmar
起動時間で差をつけろ! アプリ起動パフォーマンス改善!
yanmar1208
0
2.3k
DAIMYO Meetup #5
yanmar1208
0
85
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Believing is Seeing
oripsolob
1
250
For a Future-Friendly Web
brad_frost
184
10k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
The Curious Case for Waylosing
cassininazir
1
570
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Embracing the Ebb and Flow
colly
88
5.2k
The Cost Of JavaScript in 2023
addyosmani
55
10k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
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 起動時間で差をつけろ! アプリ起動パフォーマンス改善!
ありがとうございました!