hive icon indicating copy to clipboard operation
hive copied to clipboard

Access database from native code

Open SebAubin opened this issue 3 years ago • 10 comments

Question Hi, i'm currently trying to create an autofill service for my app. My problem is that all the data i need is stored in the Hive database. Is there a way to access the file and read it from Kotlin or Swift? I know that I can use a MethodChannel to communicate with Flutter but it doesn't work when the app is closed.

Thank you

Version

  • Platform: iOS, Android, Mac, Windows
  • Flutter version: 2.2.3
  • Hive version: 2.0.4

SebAubin avatar Jul 14 '21 20:07 SebAubin

Up

SebAubin avatar Jul 21 '21 17:07 SebAubin

I also have a project that I need to access data inside android through method channel. I'm using shared preferences to do it but I would like to know if I can save a value/key in Flutter and get it in Android like in SharedPreferences inside an receiver like BroadcastReceiver (without opening flutter page)

g-scosta avatar Aug 01 '21 06:08 g-scosta

Up

mma-amini avatar Dec 15 '21 10:12 mma-amini

Up

redanium avatar May 24 '22 00:05 redanium

Have a similar usecase where my app needs access to the data stored in hive db from the native code to do some alarm based work. I am wondering if there is a way to read the file using the path in native code.

BobFactory avatar Aug 05 '23 10:08 BobFactory

Up

paulhuang1102 avatar Sep 18 '23 09:09 paulhuang1102

up

mohanish2504 avatar Sep 24 '23 08:09 mohanish2504