-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved setScreenName to background thread
- Loading branch information
1 parent
a17435d
commit afb93d2
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertarnesson I am not sure if my Pull request flowed very well, but I actually found this method needs to be on the main thread but the iOS Firebase library needs to be on 4.10, I have since been updating the plugin to fix. Hope that message makes sense?
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonSmart ok, but going back to 4.10 is not an option (other features rely on >= 4.5.0). Should it still be in main or not?
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.10.0 is greater than 4.5?
There is actually now a 4.10.1 released on the weekend. I know 4.10.0 fixes the issue as I was able to replicate.
https://firebase.google.com/support/release-notes/ios
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonSmart ops sorry I read that as 4.1.0. now it all makes sense. so your PR contains an upgrade to 4.10.0 and revert back to main thread? the commit message said upgrade to 4.5.0 so it was a bit confusing
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertarnesson Sorry, I was rushing. Been a busy day. Yes the PR upgrades to 4.10.0 and reverts the above code change.
afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonSmart and @robertarnesson I've had a read of this thread and it's a bit confusing. You have mentioned that the
setScreenName
needs to be executed using the main thread, but it is being run in the background. This is causing issues in the current version of the plugin1.0.5
. Can this please be changed to execute in the main thread?afb93d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandfield-andy There was another Pull Request following this one, at some point someone must have put the background wrapper back in. I see you have made a new PR (#751). @robertarnesson will need to accept and merge for this change to be put back.