android - Is it possible to have a widget which is only useable when the user has unlocked the pro version of the app? -
my app has 2 widgets, , i'd hide 1 of them in list of homescreen widgets unless user has purchased pro version of app (which done via in-app billing).
as widget has declared in manifest, , appears in list when user goes create one, there way prevent "premium" widget showing unless condition has been met?
one way around keep in list, allowing user create it, , setting layout "upgrade pro" if hasn't been unlocked rather using proper layout. don't option it's not great ux, avoiding preferable.
you can use setcomponentenabledsetting:
so add manifest ( disabled ) , enable when user has payed
Comments
Post a Comment