Lesson Progress
0% Complete
Custom HTML pages can work 100% while offline, however, functionality is limited.
You can display any HTML while offline, but you can’t make API requests, embed YouTube videos, etc.
Here’s how to make a page that works offline:
- Use any HTML or Ionic components
- No API lists or sliders will work
- To embed video or images, use offline assets
You can play video or display images using the media modal. You would add this code in your custom HTML page:
<button (click)="mediaModal('assets/my-movie.mp4')">Play Movie</button>
If you’d like a playlist of only audio/video files that can be downloaded for offline, use a media list instead of a custom HTML page.