01-29-2013 10:18 AM
Hello!
I have problem with using Android in-app purchase on playbook.
I use Android In-app billing v3 and code for bindService:
mContext.bindService(new Intent("com.android.vending.billing.InAppBillingSe rvice.BIND"), mServiceConn, Context.BIND_AUTO_CREATE)return false.
Permission for BILLING granted on AndoidManifest file. In-app purchase integrate using example from android sdk with helpers: /your/sdk/location/extras/google/play_billing/in-a
How to solve this problem? Help please.
01-29-2013 04:34 PM
Hi, just a small note that i am also suffering from this problem. It;'s about the last thing that keeps me from submitting my app to the BB World. This Stackoverflow posting did not help either. I'll update here if I find something.
02-12-2013 09:23 PM
I have the same issue on a PlayBook running 2.1.0.1314, unable to bind to the billing service, is version 3 billing supported?
02-13-2013 03:41 AM
Hi!
I solve this problem. Playbook not supported version 3 billing. You must use version 2 billing. You can get source code from Google example.
Some tips:
1. Correct makeRequestBundle method
protected Bundle makeRequestBundle(String method) {
Bundle request = new Bundle();
request.putString(Consts.BILLING_REQUEST_METHOD, method);
request.putInt(Consts.BILLING_REQUEST_API_VERSION, 1);
request.putString(Consts.BILLING_REQUEST_PACKAGE_N AME, getPackageName());
return request;
}
2. You must manual register BroadcastReceiver with next code:
private void registerBillingReceiver() {
IntentFilter filter = new IntentFilter();
filter.addAction("com.android.vending.billing.IN_A PP_NOTIFY");
filter.addAction("com.android.vending.billing.RESP ONSE_CODE");
filter.addAction("com.android.vending.billing.PURC HASE_STATE_CHANGED");
receiver = new BillingReceiver();
registerReceiver(receiver, filter);
} in onServiceConnected() method.
Best regards!
02-13-2013 03:29 PM
Thanks for that!
I have version 2 roughly working, just need to work through live testing issues (at my end I'm sure).
Cheers,
Bruce
03-27-2013 12:02 AM
Hi shuriky,
I've met the same problem as you.
But after fixing the code like you said the In app is still not working.
We got RESULT_ERROR(6) when do LIVE testing with sandbox account.
The app was test by both case: upload on Blackberry world(draft) or install directly in device via cable and result still the same.
Do you know what is the issue here?
Thanks