Dictionary for addons

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By charliemacdmv

Hey everyone,

I have been stuck on this for months and I can’t seem to wrap my head around it. I have a trivia app for Android that uses a dictionary for all of the questions/answers that are brought in through google sheets json. I have extra categories that I would like for users to add to their game if they want. I have 2 issues…

  1. not sure if I should have that info included with the original dictionary or be separate.?
  2. (This is my main issue) How can I code the game to know if the user has access to the extra categories? For some reason, I cannot wrap my head around this. Extra categories will not be in-app purchases. They will be free provided you watch a 10-sec ad.
:bust_in_silhouette: Reply From: xdrenal

I’m not familiar with using ads but is there a way to know when the ad is completely watched?

Yes there is a way.

charliemacdmv | 2023-05-13 16:51

You could always call a function when the ad is completed. The function can give access to a separate dictionary by using a variable that is set to true. Again I don’t have experience with ads but it could be easier if I saw some code

xdrenal | 2023-05-13 21:11