mogol / flutter_realm

Realm via Platform Channels
https://pub.dev/packages/flutter_realm
MIT License
115 stars 18 forks source link

Realm init problem #5

Closed dimityrivanov closed 5 years ago

dimityrivanov commented 5 years ago

I followed the setup but my class is not translated to realmObject and its always saying me class does not exist, also when I use the example app when I create 'Product' close the app and open in again that 'Product' does not exist.

Is there something that I am missing ?

mogol commented 5 years ago

when I use the example app when I create 'Product' close the app and open in again that 'Product' does not exist.

Example app uses in-memory realm. If you remove inMemoryIdentifier, it should persist data across launches. https://github.com/mogol/flutter_realm/blob/ce3e68c712972a976b8f01a1d93fe470f86af150/example/lib/helpers/local_realm_provider.dart#L20

dimityrivanov commented 5 years ago

@mogol That works thanks, Maybe we should add it to the documentation

vavadiyahiren commented 4 years ago

@mogol can you help me to track where default.realm files can be stored in android devices ?