twofas / 2fas-ios

Source code for 2FAS iOS app
GNU General Public License v3.0
505 stars 38 forks source link

watchOS Wearables Support #33

Closed zgover closed 4 months ago

zgover commented 1 year ago
image

Watch App Token Previews for watchOS

As discussed in this article, lets add a watchOS instance for the iOS app.

image

Provide support for the wearables watchOS targets using "Watch App for iOS App" to enable scroll view of tokens.

image



PS: ... I noticed similar issues were closed prior to being completed, these should remain open for people to follow and track status, also helps you avoid duplicate issues.

Linking Closed Related

adocyn commented 1 year ago

@zgover Hi. Creating a watchOS app doesn't work like that. This only creates an empty target. If you run it you'll get only white/black screen on the watch. You have to WRITE that app πŸ˜„ Nothing in IT is that simple. Even if you have 100% SwiftUI app (which 2FAS isn't as it's predates this technology 3 - 4 years) you still have to make it work on the watch, add iCloud integration for sync, which has different limitations on every Apple platform and on top of that create custom views (what fits on iOS doesn't fit on small watchOS screen).

It's the same reason we aren't enabling macOS app. There's a different situation there because you can enable it to run iPadOS version. The problem with that is it's 1:1 iPadOS version on top of macOS. It's horrible and not very practical.

But yes, let's keep this issue open.

zgover commented 1 year ago

You have to WRITE that app πŸ˜„ Nothing in IT is that simple.

@adocyn πŸ˜‚πŸ˜‚πŸ˜‚ well boy... I thought engineering a native app was a 2 click process... sigh Ok... All sarcasm aside, yes the Watch App for iOS App still needs to be written of course.

That being said, this issue is serving as the base instruction on where to begin supporting wearables, i.e.,

This is a common use of GH issues in OSS repos, I only say this because you have closed all other related issues prior to the issue actually being solved. Furthermore, If you are not in a position to initiate the development, this issue is serving as a basic instruction for the community to solve and submit a PR.

worldsdream commented 8 months ago

+1.

ricardopereira commented 7 months ago

I'm excited for this one! Having MFA codes in the ο£Ώ Watch would help a lot. Any ETA? Thanks

kevinp2 commented 6 months ago

Looking forward to this feature as well. A minimal viable product would be to show a simple scrollable list of the codes, in the same order as that in the iPhone app.

Flupsy commented 6 months ago

+1, this is all that's stopping me move to this brilliant project.

worldsdream commented 4 months ago

It’s finally out!

Version 5.3.6 adds watch support!

A very nice feature. Thank you!

adocyn commented 4 months ago

It took some time, but it wasn't easy πŸ˜… I'm glad you like it! There'll be few small improvements coming, but currently it allows to access your 2FA even tokens even if you don't have a phone on you. OK, up to next items on the list πŸ˜„

dextercai commented 4 months ago

Any plan to make the watchOS version requirement lower in the future updates? A lower version requirement can make this function benefit more people

ricardopereira commented 4 months ago

I just donated some bucks. THANK YOU SO MUCH!

notDavid commented 2 months ago

Hi there, question: does the Watch app only work if iCloud sync is enabled, or should it also work without enabling iCloud?

Thank you!

notDavid commented 2 months ago

So it seems the Watch app does not work when iCloud is disabled... can you confirm that's expected behavior @adocyn ?

(since iCloud data is not e2e encrypted it's not an option for me unfortunately.)

ricardopereira commented 2 months ago

iCloud Data is not e2e encrypted by default but you can turn it on. It's is called: Advanced Data Protection for iCloud (https://support.apple.com/en-us/102651)

Advanced Data Protection for iCloud is an optional setting that offers our highest level of cloud data security. If you choose to enable Advanced Data Protection, your trusted devices retain sole access to the encryption keys for the majority of your iCloud data, thereby protecting it using end-to-end encryption. Additional data protected includes iCloud Backup, Photos, Notes, and more.

notDavid commented 2 months ago

Thank you @ricardopereira , i'm aware of that, however it's unreliable as it depends on whether Developers/apps have implemented this and store their data in iCloud in this secure way.

Much of the iCloud data is not actually e2e encrypted. So even if 2fas would use this, i would not rely on it. This is not really proper e2e encryption, it's more like "hope for the best" - which is fine for most regular data, but not for important MFA authentication codes.