Giter Club home page Giter Club logo

Comments (9)

gleerman avatar gleerman commented on July 20, 2024

Just did an Android test myself. Turns out the receiveTransition is fired by default on startup. I adjusted the iOS code myself and will commit the fix.

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Hmm, for me it was undesired behaviour. Maybe it would be better to introduce this as an option. People will have a choice if they want to get this very first notification if they already in the fence. Or just add requestStateForRegion as a new function to the plugin.

from cordova-plugin-geofence.

gleerman avatar gleerman commented on July 20, 2024

At first I would have agreed to introduce this as an option. However, since Android has this behaviour enabled by default, it looks like an inconsistency in the plugin. Since I don't think it's possible to disable this behaviour on Android, I'm not sure what the option should do on the Android side.

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

I could add some timestamp to geofence like created_at and just filter out the new ones while creating notification. I am not aware about function like requestStateForRegion for android, though.

from cordova-plugin-geofence.

rlataguerra avatar rlataguerra commented on July 20, 2024

looks interesting to me,
+1

from cordova-plugin-geofence.

johnrobertcobbold avatar johnrobertcobbold commented on July 20, 2024

+1

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Thiniking about this again. Looks like guys from google added something like that into API. Just wondering about the scope, I think it would be better to have a possibility to set this for single geofence.

from cordova-plugin-geofence.

johnrobertcobbold avatar johnrobertcobbold commented on July 20, 2024

Just submitted the iOS check on geofence creation/edit here, based on the latest master version of this plugin @ #125

from cordova-plugin-geofence.

mhfen avatar mhfen commented on July 20, 2024

The lack of this functionality is causing Android builds to Crash. #158

from cordova-plugin-geofence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.