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

Android .Net 4.* dynamic link plugin callback error with native text share. #276

Closed
sakiraykurt opened this issue Dec 19, 2018 · 2 comments

Comments

@sakiraykurt
Copy link

sakiraykurt commented Dec 19, 2018

Unity 2018.2.18f1

It works with .net 3.* plugin but not with .net 4.*.

Scenario

  1. I get a short link from the Firebase to Unity.
  2. I send the received link to my share module.
  3. Crash happens.

Idea
I think dynamic link thread is not dispatched to main thread after receiving a short link.

Configs

@stewartmiles
Copy link
Contributor

Yeah it looks like you're calling into code that can't be called from a thread other than the main thread.

.NET 3.x and 4.x task libraries work differently. In the Firebase SDK we moved all task callbacks to the main thread in .NET 3.x but do not in .NET 4.x as we don't control the Task library. Anthony posted a workaround here:
#261 (comment)

We're also discussing whether to expose this functionality in the Firebase Unity SDK as a simple API that would allow you to post operations to the main thread using the same functionality we use inside the SDK.

@sakiraykurt
Copy link
Author

Ok. Thanks. 👍

@sakiraykurt sakiraykurt changed the title Android .Net 4.5 dynamic link plugin callback error with native text share. Android .Net 4.* dynamic link plugin callback error with native text share. Dec 20, 2018
@firebase firebase locked and limited conversation to collaborators Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants