To verify the plugin is correctly installed, there are some test methods available on the plugin:
This message indicates that
iosDatabaseLocation was not provided in the options for
openDatabase, which is now required. A value of
'default' is appropriate for most use cases.
openDatabase fails with a message indicating the engine was unable to open the database file or that the database file is not a valid database.
Diagnosis: The usual culprit here is that an unencrypted database was created first, and then a
key was specified later (to enable encryption), but by then the original database already exists but can't be read since it's not encrypted.
Solution: The solution is to change the
name of the database file whenever switching between a database used with and without encryption. Additionally, uninstalling the app will delete the database.
location option in
create can be used to specify where the database file is stored on device. The value of
default will store the database file in a non-iCloud backed up location. This is recommended for most apps, though iCloud backup could be legitimate for some use cases but that is app-specific.