Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on track revenue #102

Closed
paradizIscool opened this issue Mar 20, 2017 · 2 comments
Closed

Exception on track revenue #102

paradizIscool opened this issue Mar 20, 2017 · 2 comments

Comments

@paradizIscool
Copy link

Hi,

We've got some crashs when tracking revenue on ios.

Here is the crash (reporting by firebase crash report)
if (revenue != -1 || currency != NULL) {
NSString *stringCurrency = [NSString stringWithUTF8String:currency];
[event setRevenue:revenue currency:stringCurrency];
}

It seems that the currency might be null in some cases, even if revenue != -1, so NSString *stringCurrency = [NSString stringWithUTF8String:currency]; raises an exception (see https://developer.apple.com/reference/foundation/nsstring/1497379-stringwithutf8string)

@uerceg
Copy link
Contributor

uerceg commented Mar 21, 2017

Hi @paradizIscool,

Nice catch. 👍 Handing of this case will be added to v4.11.1.

Will keep you posted on this issue about the progress.

Cheers

@uerceg uerceg mentioned this issue Mar 29, 2017
@uerceg
Copy link
Contributor

uerceg commented Mar 29, 2017

Hi @paradizIscool

Should be fixed in just released v4.11.1: https://github.com/adjust/unity_sdk/releases/tag/v4.11.1

Let us know if you face this or any other issue.

Cheers

@uerceg uerceg closed this as completed Mar 29, 2017
uerceg added a commit that referenced this issue Jun 18, 2024
Update MAX SDK ad revenue tracking docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants