SQlite Xamarin forms Visual Studio 2019 Local Database

Majid Sarrouh 1 Reputation point
2021-01-19T14:15:51.853+00:00

Hiiiiiiiiiii

I designed an app that I published in the google play store
The app uses aLocal database (SQlite) to enable the user to register once and use the app for a limited period of 1 year only.
But...
the problem is that when a user installs my app, he can easily go to the settings of his Android phone, click on Apps
then look for the installed app
and click on Storage

and
Clear All Data
stored in the local database

by doing so, he will be able to use it again as if it is the first time.

So the trial period is useless in this case

HOW to disable the "Clear All Data" in the storage?

NOTE: If we cannot disable the clear data option beecause it's a function of the device how can we save the data in a way that cannot be erased in a LOCAL SQLITE DATABASE.

Is there a way???????????

Please help

Developer technologies | .NET | Xamarin
SQL Server | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Majid Sarrouh 1 Reputation point
    2021-01-28T15:10:44.187+00:00

    61533-image.png

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.