The wiktionary definition for Nag Screen is “A message displayed by a nagware program to encourage the user to purchase the full version.” The Nag Screen could be useful when you have a LITE version of your app that user can test. However, you want to encourage user to purchase the full version.
Approach below shows you how to implement the Nag Screen for your apps.
Initially, we setup 3 global variables as follows:
- varTimesUsed – This variable holds total number of times that user has run the app
- varNagInterval – How often you want the Nag Screen (pop-up) to display. For example, if set to 5, it will display every 5-time usage of the app
- TAG_TIMES_USED – A tag variable that is used to retrieve and store data into our database
Next, in our Initialize block of the screen we:
- We attempt to get the total times app has been run. If 1st time (doesn’t exist), then we default to 0, otherwise we get the total number of times run.
- Next, increment the returned value by 1 and store it back to our varTimesUsed
- We then store the new incremented value into our database (use same tag as the one used to retrieve)
- We now use the modulo function to get the remainder when dividing varTimesUsed by varNagInterval. If remainder is zero, it means the varNagInterval time has been met and we need to display the Nag Screen
- Lastly, the IF control statement is used to check and see if remainder is 0.
- If zero, it means it is time to display the Nag Screen and we use a Notifier which displays the Nag AND total number of times the app has been used.
- If not-zero, we simply don’t do any thing.
Looking for AiLiveComplete? See here: http://Amerkashi.Wordpress.com/news