nextcloud / notes-android

✎ Android client for Nextcloud Notes app.
https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes
GNU General Public License v3.0
903 stars 135 forks source link

WearOS Companion App #1468

Open Odzinic opened 2 years ago

Odzinic commented 2 years ago

Hi there,

First of all, thanks for this great app. While it has helped me move away from Google Keep almost entirely I have been missing the ability to open notes on my watch. If there are no plans on implementing this feature already, I am willing to tackle it as I've been learning WearOS development and have access to a WearOS watch. Thanks!

stefan-niedermann commented 2 years ago

Hello there 👋

i don't have a actual Android wear device but using emulators i can imagine that this might be a useful extension.

How does this stuff usually work out? Is a separate app (with a seperate application ID) required? Can the extisting app evolved to an app that works for both, Android and Android wear?

Odzinic commented 2 years ago

You can add the Wear OS app as a module inside the existing app project. This module is pointed to the same package as the original app so it can access its classes and and resource folders while also having its own for customizing the watch layouts and such.

I have never published a Wear OS app myself, but Wear OS detects applications installed on your phone and gives you the option of installing the watch version as seen in this screenshot. The Wear OS module can be specified to require a connection with a phone or to be standalone so I'm fairly confident that the Nextcloud Note logistics don't need to be rewritten or duplicated in the Wear OS app. You should just be able to call the same functions to retrieve data from the paired phone.

RocketJannis commented 1 year ago

Hi,

I looked a bit into the WearOS documentation and it arouses the following questions: