From 0408df741901c4335f9bd57fef24b5accff6ddd7 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 26 Sep 2019 14:40:36 +0200 Subject: [PATCH] docs: add note on plugins that require PWA Elements (#1998) --- site/docs-md/apis/camera/index.md | 4 ++++ site/docs-md/apis/toast/index.md | 4 ++++ site/docs-md/web/pwa-elements.md | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/site/docs-md/apis/camera/index.md b/site/docs-md/apis/camera/index.md index 1bd09757a3..bda032cdf5 100644 --- a/site/docs-md/apis/camera/index.md +++ b/site/docs-md/apis/camera/index.md @@ -41,6 +41,10 @@ Read about [Setting Android Permissions](../../android/configuration/) in the [A Additionally, because the Camera API launches a separate Activity to handle taking the photo, you should listen for `appRestoredResult` in the `App` plugin to handle any camera data that was sent in the case your app was terminated by the operating system while the Activity was running. +## PWA/Electron Notes + +[PWA Elements](/docs/pwa-elements) are required for Camera plugin to work. + ## Example ```typescript diff --git a/site/docs-md/apis/toast/index.md b/site/docs-md/apis/toast/index.md index 7e9f9cdc8a..ca2e696773 100644 --- a/site/docs-md/apis/toast/index.md +++ b/site/docs-md/apis/toast/index.md @@ -15,6 +15,10 @@ The Toast API provides a notification pop up for displaying important informatio +## PWA/Electron Notes + +[PWA Elements](/docs/pwa-elements) are required for Toast plugin to work. + ## Example ```typescript diff --git a/site/docs-md/web/pwa-elements.md b/site/docs-md/web/pwa-elements.md index 9f7efc98ad..8e4f5e2dae 100644 --- a/site/docs-md/web/pwa-elements.md +++ b/site/docs-md/web/pwa-elements.md @@ -9,13 +9,13 @@ contributors: # PWA Elements -

Some Capacitor plugins, such as Camera, have web-based UI available when not running natively. For example, calling Camera.getPhoto() will +

Some Capacitor plugins, such as Camera or Toast, have web-based UI available when not running natively. For example, calling Camera.getPhoto() will load a responsive photo-taking experience when running on the web or electron:

-This UI is implemented using a subset of the [Ionic Framework](http://ionicframework.com/) web components. Due to the magic of Shadow DOM, these components should not conflict -with your own UI whether you choose to use Ionic or not. +This UI is implemented using web components. Due to the magic of Shadow DOM, these components should not conflict +with your own UI. ## Installation