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

Event registration is overwriting existing delegate on iOS #322

Open
FIELDPOINT opened this issue Mar 10, 2020 · 4 comments
Open

Event registration is overwriting existing delegate on iOS #322

FIELDPOINT opened this issue Mar 10, 2020 · 4 comments

Comments

@FIELDPOINT
Copy link

Calling
Position posPosition = await CrossGeolocator.Current.GetPositionAsync(TimeSpan.FromSeconds(5), null, true);

throws this error

Event registration is overwriting existing delegate. Either just use events or your own delegate: Plugin.Geolocator.GeolocationSingleUpdateDelegate CoreLocation.CLLocationManager+_CLLocationManagerDelegate

Does not happen if I keep everything same and revert back to 4.5.3 Beta. And does not happen on Android even with the 4.6.2 Beta.

Version Number of Plugin:
Device Tested On: 4.6.2 Beta
Simulator Tested On:
Version of VS: 16.4.4
Version of Xamarin: 4.5.0.356
Versions of other things you are using:

Steps to reproduce the Behavior

Just call

Position posPosition = await CrossGeolocator.Current.GetPositionAsync(TimeSpan.FromSeconds(5), null, true);

Expected Behavior

posPosition should either be null or populated with position details.

Actual Behavior

Throws an exception

Code snippet

Screenshotst

jelknab added a commit to jelknab/FamilieWandelPad that referenced this issue Apr 3, 2020
@programmingworld1
Copy link

@FIELDPOINT I have the same issue.. Have you been able to solve this?

@FIELDPOINT
Copy link
Author

No it seems to be an issue only in the newer version so I reverted.

@programmingworld1
Copy link

@FIELDPOINT Thanks, I did the same, its working now.

@TheWatchfulOne
Copy link
Contributor

I'm having this problem. The issue is on the newer version of what? What do I need to revert?

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

3 participants