1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

iOS WebViewアプリで、HTMLのfile inputタグから「写真またはビデオを撮る」を選択するとアプリがクラッシュする

Last updated at Posted at 2021-07-03

WebViewアプリを開発していて、HTMLのfile inputタグで、「写真またはビデオを撮る」を選択するとアプリがクラッシュする事象が発生したので、備忘録と同じ事象が起きた方のためにメモを残しておきます。

解決方法

info.plistに下記を追記する

カメラ起動でのクラッシュを防ぐ

<key>NSCameraUsageDescription</key>
<string>You can take photos to document your job.</string>

ビデオ起動でのクラッシュを防ぐ

<key>NSMicrophoneUsageDescription</key>
<string>You can record audio and video using this description key.</string>
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?