flutter_app_group 0.0.1 copy "flutter_app_group: ^0.0.1" to clipboard
flutter_app_group: ^0.0.1 copied to clipboard

PlatformiOS

这是一个iOS使用的AppGroup插件用于设备间数据共享

flutter_app_group #

这是一个iOS使用的AppGroup插件用于应用间数据共享

example #

  • 需要先在Xcode中添加app groups
  • 设备需要ios8以上
  • TARGETS-->AppExtensionDemo-->Capabilities-->App Groups,找到以后,将App Groups右上角的开关打开,然后选择或者新增一个groups
initAppGroup() async {
  try {
    ///必须先设置APPGroup
    FlutterAppGroup.setAppGroup("group.we.record");
    FlutterAppGroup.setString("hello", "Hi!AppGroup");
    appGroup = await FlutterAppGroup.get("hello");
    setState(() {});
  } catch (e) {
    print(e);
  }
}
1
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

这是一个iOS使用的AppGroup插件用于设备间数据共享

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_app_group