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

Cannot detect UWB Beacons on iOS #73

Open
davidespano opened this issue Oct 4, 2023 · 1 comment
Open

Cannot detect UWB Beacons on iOS #73

davidespano opened this issue Oct 4, 2023 · 1 comment

Comments

@davidespano
Copy link

davidespano commented Oct 4, 2023

Hi all,

I am currently trying to run the sample code for getting into the near range of a single UWB beacon. I managed to run the app smoothly on an iPhone 14 through Xcode 14.3.1. I get no errors, but none of the zone events fires.

I cannot detect the beacons with the Estimote APP either, but they work smoothly on the Estimote UWB sample.

The app is so simple I can paste it here

import SwiftUI
import EstimoteProximitySDK

struct ContentView: View {

    @State var proximityObserver: ProximityObserver
    @State var message: String;
    
    init(){
        let credentials = CloudCredentials(appID: "dummyID", appToken: "dummyToken")
        proximityObserver = ProximityObserver(credentials: credentials,  onError: { error in
                print("Oops! \(error)")
        
        message = "Application Started"
    }
    
    func startLocating(){

        print("Location started")
        let blueberryZone = ProximityZone(tag: "lemon-set-1", range: ProximityRange.near)
        blueberryZone.onEnter = { zoneContext in
            print("Entered near range of tag 'lemon-set-1'. Attachments payload: \(zoneContext.attachments)")
        }
        blueberryZone.onExit = { zoneContext in
            print("Exited near range of tag 'lemon-set-1'. Attachment payload: \(zoneContext.attachments)")
        }

        blueberryZone.onContextChange = { contexts in
            print("Now in range of \(contexts.count) contexts")
        }

    
        proximityObserver.startObserving([blueberryZone])
    }
    
    func stopLocating() {
        proximityObserver.stopObservingZones()
    }
    
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text(message)
            
            Button("Start") {
                startLocating()
                self.message = "Started Location Service"
            }
            .padding(.vertical)
            Button("Stop") {
                stopLocating()
                self.message = "Stopped Location Service"
            }
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

When running, the app log is

Location started
ℹ️Number of devices assigned to "lemon-set-1": 1
ℹ️Fetched tags from Cloud (total: 1)
ℹ️Fetched attachments from Cloud (total: 1)

Any help is appreciated.

@davidespano
Copy link
Author

After further investigation, I discovered this SDK does not cover UWB devices. Even though the web page describing UWB beacons points you to the "Estimote SDK", the framework supporting UWB devices is not available yet for download. Estimote sends it upon request via email to people buying the kit from the web.
https://forums.estimote.com/t/estimote-cloud-you-have-no-beacons-compatible-with-this-template/11930/6

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

1 participant