
บล็อก
วิธีซิงค์ข้อมูลในพื้นหลังเป็นระยะๆ
การซิงค์ในเบื้องหลังเป็นระยะช่วยให้คุณแสดงเนื้อหาล่าสุดได้เมื่อเปิด Progressive Web App หรือหน้าเว็บที่รองรับ Firebase Worker โดยดาวน์โหลดข้อมูลในเบื้องหลังเมื่อไม่ได้ใช้งานแอปหรือหน้าเว็บ หลังจากติดตั้ง Service Worker แล้ว ให้ใช้ Permissions API
- CSS
- HTML
- JavaScript
21 ธันวาคม ค.ศ. 2024
วิธีสร้างทางลัดของแอป
ทางลัดของแอปช่วยให้ผู้ใช้เริ่มงานทั่วไปหรืองานที่แนะนำภายในเว็บแอปได้อย่างรวดเร็ว การเข้าถึงงานเหล่านั้นได้อย่างง่ายดายจากทุกที่ที่ไอคอนแอปแสดงอยู่จะช่วยเพิ่มประสิทธิภาพของผู้ใช้ รวมถึงเพิ่มการมีส่วนร่วมกับเว็บแอป
- HTML
- JavaScript
18 พฤศจิกายน ค.ศ. 2024
วิธีเพิ่ม UI การติดตั้งที่สมบูรณ์ขึ้น
ดูตัวอย่างประสบการณ์การใช้งานเริ่มต้นด้านล่างซึ่งมีบริบทไม่เพียงพอ หากต้องการรับกล่องโต้ตอบ UI การติดตั้งที่สมบูรณ์ขึ้นแทนข้อความแจ้งเริ่มต้นขนาดเล็กตามปกติ ให้เพิ่มช่อง screenshots และ description ลงในไฟล์ Manifest ของเว็บ ดูตัวอย่าง Squoosh.app
- HTML
- JavaScript
14 สิงหาคม ค.ศ. 2024
How to create an app badge
Badges are used to convey non-urgent information to the user. For example, they are used to indicate the status of an app, or the number of unread items. The classic way of creating an app badge is to add a number to the favicon. On modern browsers,
- JavaScript
- CSS
- HTML
27 กุมภาพันธ์ ค.ศ. 2025
How to access contacts from the address book
Sometimes you want to let users of your app select one of their contacts to message via an email or chat application, or help them discover which of their contacts have already joined a social platform. To get contacts from the address book, you need
- CSS
- JavaScript
- HTML
27 กุมภาพันธ์ ค.ศ. 2025
How to use multiple screens
To make sure your browser supports the getScreenDetails() method, first check if it exists on the window object. Then, call window.getScreenDetails() to get attached screens. Adding an event listener to adapt to changed screen details allows you to
- CSS
- HTML
- JavaScript
27 กุมภาพันธ์ ค.ศ. 2025
How to let the user share the website they are on
Letting the user share the website they are on is a common web apps pattern that you can find on many news sites, blogs, or shopping sites. Since linking is one of the web's super powers, the hope is to acquire traffic from users who see the shared
- JavaScript
- HTML
- CSS
27 กุมภาพันธ์ ค.ศ. 2025