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

Setup causing false negatives. #37

Open
crenwick opened this issue Nov 30, 2015 · 1 comment
Open

Setup causing false negatives. #37

crenwick opened this issue Nov 30, 2015 · 1 comment

Comments

@crenwick
Copy link
Contributor

This block checks to see if the new device is connected to the ios Spark SDK, however, it uses device.connected from the API.

As @zsup mentioned in #28 (comment), there is an issue with this API being accurate. In my unscientific testing, it seems to be a 50/50 shot when the device is actually connected and the device.connected flag being true.

This not only presents a false error screen to customers, but also returns the didFinishWithResult as .Failure.

This recent PR brought in that check: 4178ef4

I want to open an issue here because I'm not sure if this iOS setup library should be relying on a unstable API, but I'd also like to track and contribute to the API issue. Is there a place where that discussion is currently taking place? What repo might that exist on?

@idokleinman
Copy link
Contributor

I agree. No problems to keep the discussion here.
There's certainly room for improvement on the .connected API - setup should listen to the specific device came online and device went offline events that Photons publish to the cloud. I've been planning on adding that functionality internally to the Cloud SDK at some point.

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

2 participants