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

Status for 'Both' #91

Closed
derek1988ec opened this issue Oct 21, 2015 · 6 comments · Fixed by #97
Closed

Status for 'Both' #91

derek1988ec opened this issue Oct 21, 2015 · 6 comments · Fixed by #97

Comments

@derek1988ec
Copy link

Hi, I don't have an issue to report but rather a question to ask.

For the transition type, we have 'enter', 'exit' and 'both'. If I'm using the status 'both', how do I know whether the geofence is entered or exited?

Thanks in advance!

@johnrobertcobbold
Copy link

Not possible, although someone had worked out a fork for this I believe in a previous issue. I would also like to be able to know this.

@derek1988ec
Copy link
Author

@johnrobertcobbold do you know which fork it is?

@andiCR
Copy link
Contributor

andiCR commented Oct 21, 2015

@derek1988ec hey man, I have a version of the plugin that changed this here:
https://github.com/andiCR/cordova-plugin-geofence
It's basically a new parameter named 'handledTransition', included in the commits from May 26 and May 27. Had to hack my way thru the unmutable json class and modify the resulting string instead.

@johnrobertcobbold
Copy link

thanks @andiCR, I will also check this out

@derek1988ec
Copy link
Author

thanks a bunch @andiCR !!! :D

@johnrobertcobbold
Copy link

@andiCR Thanks for that, I just tested it and it's working nicely (at least on iOS, not using Android for now). Just had to update one line for it to be compatible with Swift 2.0. I wrote a note in the relevant commit in your fork.

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

Successfully merging a pull request may close this issue.

3 participants