mindful_minutes 1.2.3 copy "mindful_minutes: ^1.2.3" to clipboard
mindful_minutes: ^1.2.3 copied to clipboard

PlatformiOS

A Flutter plugin for saving mindful minutes to Apple Health.

Features #

Plugin for writing mindful minutes to Apple Health on iOS.

Features:

  • Check for write permission
  • Request write permission
  • Write mindful minutes

This works on iOS 12 (other pub.dev health plugins require a higher iOS version, so I created my own).

Getting started #

	<key>NSHealthShareUsageDescription</key>
	<string>This app would like to access mindful minutes.</string>
	<key>NSHealthUpdateUsageDescription</key>
	<string>This app would like to save mindful minutes.</string>

Usage #

const _plugin = MindfulMinutesPlugin();

final bool hasPermission = await _plugin.checkPermission();

final bool hasPermission = await _plugin.requestPermission();

await _plugin.writeMindfulMinutes(startTime, endTime);

Important #

iOS will ask the user only once per app for granting permissions. If the user disables it from iOS settings, it needs to be enabled from iOS settings.

12
likes
160
pub points
60%
popularity

Publisher

verified publisherachim.io

A Flutter plugin for saving mindful minutes to Apple Health.

Repository (GitHub)
View/report issues

Topics

#applehealth #health #mindfulminutes #native #ios

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on mindful_minutes