Giter Club home page Giter Club logo

Comments (14)

tsubik avatar tsubik commented on July 20, 2024

We are planning to deliver this feature at the beginning of December. At least I hope so.

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

great stuff.
I've been testing the Android version (of your test app) and to date it is the best solution I can find for geofencing that will meet the requirements of the app I am working on. One thing I did notice on the Android version was that when a background notification happened it would display a message saying the app had stopped working. (This is when it is not running). If I closed that message then swiped the new notification it would load the app. Didn't go much further into implementing it into my app as I need the iOS version as well so wasn't any point to go too much further.
If you need any feedback on the iOS version (once you have it) let me know.
cheers,

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Thanks. I've created an issue for this bug.

from cordova-plugin-geofence.

corymickelson avatar corymickelson commented on July 20, 2024

I am very much looking forward to the iOS version, I have not yet found an iOS geofencing cordova plugin that is working on iOS 8, thanks in advance.
Cory

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

@tsubik notice you've been working on the ios branch. Just thought I would see how you are going with it?

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Support for iOS >=7 added 😄

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

@tsubik good stuff :) I'll test and let you know any feedback. Thanks for your work on this.

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

Failed to install 'com.cowbell.cordova.geofence':Error: Cannot find module 'glob' @tsubik
any idea?

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

got it to work.

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

@tsubik well got it to install.
I'm now having issues.
-[CLLocationManager requestAlwaysAuthorization]: unrecognized selector sent to instance 0x17d03f50

sorry further info. this is on ios7. seems to add them correctly on ios8 emulator. trying to get it to work on actual device on ios7

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

@tsubik a couple of fixes for you for iOS7 support...

NSProcessInfo().isOperatingSystemAtLeastVersion
Isn't supported by iOS7 so this errors.

        let TAG = "GeofencePlugin"
        //let iOS8 = NSOperatingSystemVersion(majorVersion: 8, minorVersion: 0, patchVersion: 0)
        let iOS8 = floor(NSFoundationVersionNumber) > floor(NSFoundationVersionNumber_iOS_7_1)
        let iOS7 = floor(NSFoundationVersionNumber) <= floor(NSFoundationVersionNumber_iOS_7_1)

changed

                if NSProcessInfo().isOperatingSystemAtLeastVersion(iOS8) {
                    promptForNotificationPermission()
                }

to

                if iOS8 {
                    promptForNotificationPermission()
                } 

also changed this from

            locationManager.requestAlwaysAuthorization();

to

        if iOS8 {
            locationManager.requestAlwaysAuthorization();
        } 

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

👍 changes applied. Thanks!

from cordova-plugin-geofence.

wallstudios avatar wallstudios commented on July 20, 2024

@tsubik in the new version you have line 159 saying if (iOS7)

should be

        if (iOS8) {
            locationManager.requestAlwaysAuthorization()
        }

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

Duh. You're right. Thanks again!

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.