Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unused constant (ACTION_CONFIRM_NOTIFICATION) in Market Billing demo app?

I'm in the process of implementing in-app billing and I'm using the Dungeons app as a reference. There's one thing I don't understand: is Consts.ACTION_CONFIRM_NOTIFICATION never actually used? The only place it's referenced is in BillingService#handleCommand:

if (Consts.ACTION_CONFIRM_NOTIFICATION.equals(action)) {
    String[] notifyIds = intent.getStringArrayExtra(Consts.NOTIFICATION_ID);
    confirmNotifications(startId, notifyIds);
}

I know that's the only place it's used, I used Eclipse's right click -> references -> project. From what I can tell, that condition is never true: BillingReceiver never sends that action and there's no way it could come from anywhere else.

Am I missing something here?

like image 527
Felix Avatar asked Dec 29 '25 02:12

Felix


1 Answers

As far as i understand, ACTION_CONFIRM_NOTIFICATION is never used as this action should be done after you verify a purchase

like image 162
CChi Avatar answered Dec 31 '25 16:12

CChi