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
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
240
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Technical Leadership for Architectural Decision Making
baasie
3
580
A better future with KSS
kneath
240
18k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
680
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Crafting Experiences
bethany
1
350
GraphQLとの向き合い方2022年版
quramy
50
15k
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 起動時間で差をつけろ! アプリ起動パフォーマンス改善!
ありがとうございました!