Giter VIP home page Giter VIP logo

unrealandroidplaybilling's People

Contributors

kulichin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

unrealandroidplaybilling's Issues

UAndroidPlayBillingSubsystem::IsPurchased calling IsIAPInitialized_MethodID instead of IsPurchased_MethodID.

Looks like there is a bug on line 440 in AndroidPlayBillingSubsystem.cpp. Please replace IsIAPInitialized_MethodID to IsPurchased_MethodID.

bool UAndroidPlayBillingSubsystem::IsPurchased(const FString& ProductID)
{
#if PLATFORM_ANDROID
	if (JNIEnv* Env = FAndroidApplication::GetJavaEnv())
	{
		auto JProductID = FJavaHelper::ToJavaString(Env, ProductID);
		
		// Call Java method
--->		return CallBooleanMethod(Env, IsIAPInitialized_MethodID, *JProductID);
	}
#endif

	return false;
}

Unreal 5.1?

Any new on when it's going to be available on unreal 5.1? thanks!

Calling Query SkuDetails causes crash

Calling Query SkuDetails causes crash with error:

Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13251 (PlayBillingLibr)

PS: do have same issue with OnlineSubsystem GooglePlay buildin plugin. (though there it crash only in armv7 build not arm64)

Crash On Query API

Hi,

I found that it will crash on QuerySkuDetail.
It caused by "'Primitive char conversion on invalid type 0โ€™"
It can fix by update AndroidPlayBillingSubsystem.cpp

- int IntroductoryPriceCycles			= GetScopedStringFromObject(Env, Object, SkuDetailsRecord_IntroductoryPriceCycles_FieldID);
+ int IntroductoryPriceCycles			= (int)Env->GetIntField(Object, SkuDetailsRecord_IntroductoryPriceCycles_FieldID);

I hope this article can help someone.

Thanks.

Build error method getSkus() for android with UE 5.0

Using UE 5.0 with the latest version of the plugin and I get this error while trying to package my game for android

Z:\app\src\main\java\com\android\vending\billing\util\IabHelper.java:476: error: cannot find symbol
UATHelper: Packaging (Android (ETC2)): String sku = purchase.getSkus().get(0);
UATHelper: Packaging (Android (ETC2)): ^
UATHelper: Packaging (Android (ETC2)): symbol: method getSkus()
UATHelper: Packaging (Android (ETC2)): location: variable purchase of type Purchase

Query SKU Details empty!

The in app purchases work just fine. But I cannot seem to fetch all the available IAP and their SKU details. The response, despite being OK, returns empty. I just want to fetch the details so that I can update the pricing and values in the UI for the user according to their country.

Typo in wiki?

Add GooglePlayBilling dependency to PublicDependencyModuleNames in your {ProjectName}.Build.cs file (located in Source{ProjectName}\ directory).

Don't you mean

PublicDependencyModuleNames.Add("AndroidPlayBilling");

BUG: The field IntroductoryPriceCycles is incorrectly obtained in GetSkuDetailsRecordStructFromJavaObject.

Hi!

I found another nasty bug.

The type of IntroductoryPriceCycles field is integer. But this field obtained as string which causes the program to crash in Development mode. This bug in function GetSkuDetailsRecordStructFromJavaObject in file AndroidPlayBillingSubsystem.cpp on line 251.

	int64 IntroductoryPriceAmountMicros	= (int64)Env->GetLongField(Object, SkuDetailsRecord_IntroductoryPriceAmountMicros_FieldID);
	auto JIntroductoryPricePeriod		= GetScopedStringFromObject(Env, Object, SkuDetailsRecord_IntroductoryPricePeriod_FieldID);
-->	int IntroductoryPriceCycles		= GetScopedStringFromObject(Env, Object, SkuDetailsRecord_IntroductoryPriceCycles_FieldID);
	auto JIconURL				= GetScopedStringFromObject(Env, Object, SkuDetailsRecord_IconURL_FieldID);

Also for the UE4 engine it is better to use the int32 type instead of int.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.