Android 앱의 인앱 결제 v3을 구현하고 있습니다. 테스트 제품을 성공적으로 구입할 수 있습니다. 그러나 내 응용 프로그램에는 복원 기능도 있습니다. 조금 혼란 스럽습니다.android의 앱 청구 v3의 복원 기능 사용 또는 의미는 무엇입니까
다른 장치 응용 프로그램에서 응용 프로그램에있는 모든 소유 항목을로드하는 것이 맞습니까?
Android 앱의 인앱 결제 v3을 구현하고 있습니다. 테스트 제품을 성공적으로 구입할 수 있습니다. 그러나 내 응용 프로그램에는 복원 기능도 있습니다. 조금 혼란 스럽습니다.android의 앱 청구 v3의 복원 기능 사용 또는 의미는 무엇입니까
다른 장치 응용 프로그램에서 응용 프로그램에있는 모든 소유 항목을로드하는 것이 맞습니까?
gmail 계정과 연결된 Google Play에서 인앱 제품을 사용하고 있기 때문에 Google Play 계정에 관한 것이 전부입니다.
다음은 작동 원리에 대한 예제입니다. 내 응용 프로그램 중 하나에서 사용합니다.
/**
* Gets the list of available inventories in GooglePlay for this application
*
* @param productIdList list of product id's in the store
* if null, will return owned items only
* @param inventoryListListener OnQueryInventoryFinishedListener
*/
public void getInventoryList(List<String> productIdList, InvetoryListInterface inventoryListListener) {
final InvetoryListInterface listener = inventoryListListener;
inAppBillingHelper.queryInventoryAsync(productIdList, new QueryInventoryFinishedListener() {
@Override
public void onQueryInventoryFinished(IabResult result, Inventory inventroy) {
if (result.isFailure()) {
// Failure getting inventory list.
listener.onInventoryListFailure(result.getMessage());
return;
} else {
// Success getting inventory list.
listener.onInventoryListSuccess(inventroy);
}
}
});
}
필자는 꼭 필요한 것 같습니다. 다른 장치에서 소유 한 제품을 복원 할 수 있어야합니다. 장치 독립적이어야합니다! – osayilgan
고마워요. 오설일간, 구글 게임이 사용자의 구글 이메일 주소를 기반으로 아이템을 구입 한 것을 유지한다고 생각합니다. 맞습니까? – jagdish
헤이 @jagdish 내 편집 된 답변을 참조하십시오. – osayilgan