Giter Site home page Giter Site logo

beaconstac / eddystonescanner-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 7.0 181 KB

Eddystone Scanner SDK for iOS written in Swift 4.0

Home Page: https://www.beaconstac.com

License: MIT License

Swift 97.43% Objective-C 0.99% Ruby 1.57%
eddystone eddystone-beacons eddystone-scanner swift4 swift physical-web google

eddystonescanner-ios-sdk's People

Contributors

firecast avatar ravipratapm avatar sachinmobstac avatar souro7 avatar sourobrata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eddystonescanner-ios-sdk's Issues

Doesn't show list of beacons

I wrote a simple code, without the tableView and it outputs nothing, can you please look into it and see if its an issue? Peace!
//
// ViewController.swift
// ES3
//
// Created by Utkarsh Sinha on 27/2/19.
// Copyright © 2019 ORTech. All rights reserved.
//

import UIKit
import EddystoneScanner
import UserNotifications

class ViewController: UIViewController {

let scanner = EddystoneScanner.Scanner()
var timer : Timer?

var beaconList = [Beacon]()

var state = 1 //monitor Slider switch's value


@IBOutlet weak var Switch: UISwitch!

override func viewDidLoad()
{
    super.viewDidLoad()
    
    
    // Do any additional setup after loading the view, typically from a nib.
    
    scanner.startScanning()
    scanner.delegate = self as? ScannerDelegate
    
}



func didUpdateScannerState(scanner: EddystoneScanner.Scanner, state: State)
{
    print(state)
}


func didFindBeacon(scanner: EddystoneScanner.Scanner, beacon: Beacon)
{
    beaconList.append(beacon)
  
}


func didLoseBeacon(scanner: EddystoneScanner.Scanner, beacon: Beacon)
{
    guard let index = beaconList.index(of: beacon)
        else
    {
        return
    }
    beaconList.remove(at: index)
}



func didUpdateBeacon(scanner: EddystoneScanner.Scanner, beacon: Beacon)
{
    guard let index = beaconList.index(of: beacon)
        else {
              beaconList.append(beacon)
              return
            }
    beaconList[index] = beacon
}



@IBAction func Switch(_ sender: UISwitch)
{
   state+=1
    if state%2==0
    {
        startScanning()
    }
    else
    {
      stopScanning()
    }
}



func startScanning()
{
   
 print(scanner.nearbyBeacons)
print(beaconList)
    print(beaconList.count)
}


func stopScanning()
{
    
}

override func didReceiveMemoryWarning()
{
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

}

Manually install the framework?

Is it still possible to manually install the framework?

I still get the whole package, but not in a .framework package. is this expected?

Thanks.

Build Issue - Lastest XCode (10.1) and OSX (10.14)

Cloned the repo and running through the Docs, per README what is target do? Trying to get the SampleApp running, so would target 'SampleApp' do - would work?

If that's the case, I'm still here. Ran into a terminal error on pod install. The error: - Use the `$(inherited)` flag, or - Remove the build settings from the target Changing the "Always Embed Swift Standard Libraries" in XCode from YES to NO $(inherited), running pod update leads to a working build! But... nothing in the simulator. All the top searches for XCode shows Build succeeded but IOs simulator does not run lead to editing the Schema. I selected "SampleApp" as executable and "Automatically" launch. Simulator will not though.

Any clarification on installation (just getting an basic app template up and running if that's possible) is most appreciated. Regardless of these difficulties, this repo is lightyears better than the react-native and office Google docs on iBecaons/Eddystones.

Kalman Filter not updated

When I choose the kalman filter and compile the application it takes the first value that I calculate if I move away from the beacon the kalman filter does not come back to update someone could help me in that part.

Background mode

I was reviewing the code but when I put the application in background mode without destroying the application the Eddystone library stops detecting beacon scanning.

Thread 1: Fatal error: Index out of range

"Starting scan for Eddystone beacons"
Fatal error: Index out of range
2019-04-16 02:36:20.590118-0400 SampleApp[1465:498438] Fatal error: Index out of range
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.

Using your scanner as a part of another application that I am building. This is the error that I get while scanning for more than 2 minutes or so. The scanner crashes and freezes the entire app. I am using the EddystoneScanner-iOS-SDK-1.1.8 downloaded on March 12,2019

URL Beacon issues

Hello. I tried to use the sample app and it doesn't seem to be detecting simple URL beacons.

Looking at the code:

private func handleURLFrame(peripheral: CBPeripheral,
serviceData: [NSObject: AnyObject],
RSSI: NSNumber) {
let eddystoneURL = Eddystone.parseURLFromFrame(advertisementFrameList: serviceData)
guard let index = nearbyBeacons.index(where: {$0.identifier == peripheral.identifier}) else {
return
}
// Update the beacon object
guard let beacon = self.nearbyBeacons[index] else {
return
}
beacon.updateBeacon(telemetryData: nil, eddystoneURL: eddystoneURL, rssi: RSSI.intValue)
self.nearbyBeacons.update(with: beacon)
self.delegate?.didUpdateBeacon(scanner: self, beacon: beacon)
}
}

It doesn't seem to have any add to nearbyBeacons list code.

Am I missing something?

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.