Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
The method is declared as HandleInviteFromGameCenter(GKPlayer). However the iOS documentation states that the argument is an NSArray of NSStrings. Whenever Game Center calls this method, my app will fail, trying to cast an NSString to a GKPlayer.
You're right, it is a binding error .
The workaround is to create a weak delegate (i.e. assign GKTurnBasedEventHandler.WeakDelegate instead of GKTurnBasedEventHandler.Delegate) that exports the required methods (with the right signatures). That will allow the ObjC runtime to call your method (without a cast exception).
Fixed in master c684da63a9f30dcdcdec8e74db8c8a3174c6816c
I have checked this issue with following builds:
XS 5.1 (build 307)
I have checked 'HandleInviteFromGameCenter()' method in assembly browser where I got two HandleInviteFromGameCenter() method with following argument:
HandleInviteFromGameCenter (NSString playersToInvite) and HandleInviteFromGameCenter (GKPlayer playersToInvite)
hence, closing this issue.