Pebble-Backup / cloudpebble

CloudPebble source. Here be dragons.
http://cloudpebble.net/
MIT License
1 stars 0 forks source link

Provide mobile-friendly rendition of the "compile" pane for users with unusual network topology #3

Closed tbe closed 7 years ago

tbe commented 7 years ago

Issue by Katharine Saturday Feb 15, 2014 at 17:14 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT Originally opened as https://github.com/pebble/cloudpebble/issues/23


Some people are unable to connect their computer directly to their phone as a result of their network topology or other restrictions. We could just put the QR code back (it's actually still in there; it's just hidden…), but that still doesn't help iOS developers due to the restrictions on side-loading JavaScript.

Instead, we could provide the option to log in from a mobile device and get a mobile friendly layout that allows them to install/log/screenshot on 'localhost', as seen from the app. This does work now, but is difficult to actually use in practice.

Note that some users of potentially questionable sanity actually write code on their phones, so we have to handle that use case too.

tbe commented 7 years ago

Comment by Katharine Saturday Feb 15, 2014 at 17:30 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Also note that this still won't work if the phone is on a mobile network instead of a wireless network. It would be nice if the Pebble app could still listen to localhost when there was no network connection, but doing that without causing (even more) user confusion would require some UI work.

tbe commented 7 years ago

Comment by sarfata Sunday Feb 16, 2014 at 00:46 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


That is a pretty awesome idea. The only sucky thing is that the developer connection will die after a few minutes if the iOS app is not in the foreground. We have not found a way around that yet.

tbe commented 7 years ago

Comment by Katharine Sunday Feb 16, 2014 at 00:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


@sarfata Worst case, I can hack around it by asking you to switch to the Pebble app if it fails – when we're routing through local loopback the set of failure modes is fairly tiny.

tbe commented 7 years ago

Comment by KeanWong Sunday Feb 16, 2014 at 00:49 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


@Katharine - possible solution would be to send a push message to wake up the Pebble app on the device (and/or remind the user to foreground it) if the issue is that the iOS app is not currently foregrounded but needs to me

tbe commented 7 years ago

Comment by Katharine Sunday Feb 16, 2014 at 01:00 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


@KeanWong If we can actually do that, it'd be great! Even if this doesn't actually bring the app back to life, it'd be a handy UX improvement.

I think actually getting a push from a CloudPebble project to the correct user's phone app would require some other integration work first, though.

tbe commented 7 years ago

Comment by sarfata Sunday Feb 16, 2014 at 01:14 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Yeah. This reminded me that it would be great to have Pebble-SSO support: #26