message: update(first-app): Update to Capacitor 2.0
diff: @@ -56,22 +56,28 @@ private async readAsBase64(cameraPhoto: CameraPhoto) {
  }
  ```
  -Next, update the `getPhotoFile()` method. When running on mobile, return the complete file path to the photo using the Filesystem API. When setting the `webviewPath`, use the special `Capacitor.convertFileSrc()` method ([details here](https://ionicframework.com/docs/core-concepts/webview#file-protocol)).
  +Next, update the `savePicture()` method. When running on mobile, set `filepath` to the result of the `writeFile()` operation - `savedFile.uri`. When setting the `webviewPath`, use the special `Capacitor.convertFileSrc()` method ([details here](https://ionicframework.com/docs/core-concepts/webview#file-protocol)).
  ```typescript
  -private async getPhotoFile(cameraPhoto, fileName) {
  - if (this.platform.is('hybrid')) {
  - // Get the new, complete filepath of the photo saved on filesystem
  - const fileUri = await Filesystem.getUri({
  - directory: FilesystemDirectory.Data,
  - path: fileName
  +// Save picture to file on device
  + private async savePicture(cameraPhoto: CameraPhoto) {
  + // Convert photo to base64 format, required by Filesystem API to save
  + const base64Data = await this.readAsBase64(cameraPhoto);
  +
  + // Write the file to the data directory
  + const fileName = new Date().getTime() + '.jpeg';
  + const savedFile = await Filesystem.writeFile({
  + path: fileName,
  + data: base64Data,
  + directory: FilesystemDirectory.Data
  });
  + if (this.platform.is('hybrid')) {
  // Display the new image by rewriting the 'file://' path to HTTP
  - // Details: https://ionicframework.com/docs/core-concepts/webview#file-protocol
  + // Details: https://ionicframework.com/docs/building/webview#file-protocol
  return {
  - filepath: fileUri.uri,
  - webviewPath: Capacitor.convertFileSrc(fileUri.uri),
  + filepath: savedFile.uri,
  + webviewPath: Capacitor.convertFileSrc(savedFile.uri),
  };
  }
  else {
  