Forums

OverviewFelgo 2 Support (Qt 5) › Best way to limit number of plays to each day

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18363

    Kool

    Hi All,

    I’m wondering if there’s a nice way to ‘lock’ the app or features of an app after a certain number of usages, given free vs paid purchase items via the Soomla plugin.

    The thinking is that I could simply keep a date with a counter in the settings object. Each usage incurs a +1 on the counter. Once the counter hits a limit, the app waits for the next day to then re-enable gameplay and reset the counter.

    The problem is someone can very easily just change the date on their phone to overcome this.

    Are there any better ways to lock an app’s features after a given number of usages?

    Many thanks!

    #18364

    Marcin

    Hi Kool,
    Probably you’re considering here offline options?
    With online you can always have some kind of syncing feature which checks the date etc.

    With offline options are really limited.
    I am curious what does the local notification plugin use, does it use internal phone date to calculate when to show notification?
    Does it have its own internal clock?
    Maybe it uses something not so easy changeable by user? Not sure.

    Maybe Android or iOS have their own date/calendar Api’s which are more reliable and can be used offline.

    #18366

    Kool

    Hi Marcin,

    I’d not even thought of an online option. That would certainly be the best way to go.

    The only issue is that is there a reliable, online service that can provide a date in JSON format? Or will I need to roll my own?

    If it’s the former, great, but the latter might be a bit tricky. Any suggestions?

    Many thanks!

    #18372

    Alex
    Felgo Team
    #18385

    Kool

    Cheers Alex, worldclockapi will definitely get me going!

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support