question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RequestTrackingAuthorizationWithCompletionHandler hardcoded Adjust scene name

See original GitHub issue

Adjust Event allow setting sceneName

public void setEventSuccessDelegate(Action<AdjustEventSuccess> eventSuccessDelegate, string sceneName = "Adjust")

But requestTrackingAuthorizationWithCompletionHandler is hardcoded scene name AdjustUnity.mm

void _AdjustRequestTrackingAuthorizationWithCompletionHandler() {
       [Adjust requestTrackingAuthorizationWithCompletionHandler:^(NSUInteger status) {
           NSString *stringStatus = [NSString stringWithFormat:@"%tu", status];
           const char* charStatus = [stringStatus UTF8String];
           UnitySendMessage([@"Adjust" UTF8String], "GetAuthorizationStatus", charStatus);
       }];
   }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
uercegcommented, Feb 10, 2021

Hey guys. We just released Unity SDK v4.26.0 update (https://github.com/adjust/unity_sdk/releases/tag/v4.26.0). Change on this topic was that default string parameter was added as 2nd parameter of requestTrackingAuthorizationWithCompletionHandler which is set to have scene name "Adjust", but you’re free to pick your own and hopefully callback should get fired to it now.

Feel free to check it out and let us know if it solved this issue for you.

0reactions
uercegcommented, Feb 10, 2021

Hi @gtino

Aiming to have it live in next couple of days.

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS methods
requestTrackingAuthorizationWithCompletionHandler. Send the user's ATT authorization status to the Adjust ... statusCallback, string sceneName = "Adjust") ...
Read more >
CHANGELOG.md - adjust/unity_sdk
Fixed hardcoded scene name under the hood of requestTrackingAuthorizationWithCompletionHandler method which caused that game object was always expected to ...
Read more >
Create and use scenes in Home on iPhone
Edit a scene: Touch and hold a scene, then tap Edit Scene. You can change the scene's name, test the scene, add or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found