I’m having problem with google play billing library in cocos. It seems to be working fine a few weeks ago but now it stoped working. I’m using com.android.billingclient:billing:6.1.0
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
obj = this;
mContext = this;
SDKWrapper.shared().init(this);
billingClient = BillingClient.newBuilder(this)
.enablePendingPurchases()
.setListener(
(billingResult, list) -> {
System.out.println("This is not executed")
}).build();
//start the connection after initializing the billing client
establishConnection();
}
It does not go to listner. I tried updating the label to com.android.billingclient:billing:7.0.0. still not working. It shows list as empty even thoough it should hav some values. Does anyone have any example code that I can check?