Posts

Post marked as solved
2 Replies
742 Views
I am thinking of developing a watchOS app that will record someones audio, whenever they raise their wrist to their face (so as to classify coughs and sneezes and help detect flu outbreaks). Of course, this is possible first-party (Siri's raise to wake & hand wash detection), but I am wondering if it's possible third-party. I have seen some similar questions asked on StackExchange, but they all seem to be suggesting that starting a Watch Kit Workout Session would do the trick. However, this presents a UI and precludes the user from using the app as normal. Moreover, if it is possible to classify gestures in the background, is it possible to subsequently record the audio or would that require the app to be opened? My sense upon researching this is that it's probably not possible, but I'm really excited about this idea and I know there's lots of stuff out there with Research Kit that I'm not aware of, so I wanted to ask.
Posted Last updated
.
Post marked as solved
2 Replies
571 Views
In normal javascript, it seems like it's possible to select a particular stylesheet and add a rule to it via .addRule(...). Yet, it doesn't seem my injected script has access to my injected stylesheet because console.log(document.styleSheets) does not list my app-extension's injected stylesheet. Is there any way to access my injected stylesheet from my injected script so I can customize the styling of the elements I generate? There are, of course, cheesy workarounds. I could simply add the rules I want to a webpage's first stylesheet, but that lowers the seniority of the rule (in that adding !important tags won't guarantee it's implemented). The ultimage goal is to let user's customize the coloring of the pretty complicated & dynamic elements rendered by my injected script. Thanks, Pat
Posted Last updated
.
Post not yet marked as solved
0 Replies
901 Views
Hi @bweinstein if you're reading this 🙂. I'm having a lot of trouble sourcing libraries (specificaly jQuery) into my app extension. I described my issue in greater detail in this StackOverflow post: xcode - Unable to import JQuery library into my Safari app extension - Stack OverflowI think an answer to this question would be valuable for other people on the forums because it's nowhere online and really empowers people to use all sorts of libraries, for another example Mousetrap (https://craig.is/killing/mice ). Thanks for the info at WWDC and thanks in-advance if you have time to answer this.
Posted Last updated
.