I'm using Appodeal sdk, but it's the same principle in AdMob
On Paid version, when a user do subscription, how to check a user actually paid, returning a boolean true or false.
with this result I want to unshow the code of Appodeal to such user. what is the best way to handle this? using javascript?
> function onDeviceReady() {
>
> var test ;
> var appKey = "...";
>
if (test) {
> document.removeEventListener('deviceready', onDeviceReady, false);
>
> Appodeal.setAutoCache(Appodeal.INTERSTITIAL, false);
> Appodeal.initialize(appKey, Appodeal.INTERSTITIAL);
> Appodeal.cache(Appodeal.INTERSTITIAL);
> Appodeal.enableInterstitialCallbacks(true);
>
> document.addEventListener('onInterstitialLoaded', function(){
>
> Appodeal.show(Appodeal.BANNER_BOTTOM);
>
> //after init
>
> Appodeal.isLoaded(Appodeal.INTERSTITIAL, function(result){
> if (result == true)
> Appodeal.show(Appodeal.INTERSTITIAL);
} })
I used the fovea plugin for PhoneGap, and enabled subscription on the console, how do I test this as well
Thanks