1
1

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 1 year has passed since last update.

FlutterでiOSのヘルスケアから今日の歩数系合計を抽出して表示する方法

Posted at

ただ表示するだけだと審査落ちる場合もあります。気をつけましょう
https://social.msdn.microsoft.com/Forums/en-US/82351da9-58b6-4b46-9e78-ed35e2c13b2e/ios-app-rejected-due-to-healthkit-reference-that-the-project-doesnt-have-and-use-anywhere?forum=xamarinforms

以下を追加

ライブラリ追加

pubspec.yml
   health: ^3.0.4

ヘルスケアの追加

ios/Runner/info.plist

	<key>NSHealthShareUsageDescription</key>
	<string>We will sync your data with the Apple Health app to give you better insights</string>
	<key>NSHealthUpdateUsageDescription</key>
	<string>We will sync your data with the Apple Health app to give you better insights</string>

スクリーンショット 2022-03-15 17.46.11.png

HealthKit も追加する
チェック項目は以下の画像の通り

スクリーンショット 2022-03-15 17.51.15.png

で完了

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?