we have implemented the fall detection api using CMFallDetectionManager in watch app, does any one idea how to simulate this test?
When you run your app on the watchOS simulator on the Mac you can use the Features menu to Simulate Fall and then choose the type of fall dectection you want to test your code with?
Related
I'm looking to install and automatically/one button update very early development builds of an application to Android TV devices in my household. I've initially tried Google Play using an internal track, but it turns out this is reviewed by a human initially and because of how incomplete the application is it was rejected. I do not want to get bogged down in design/etc. to get past the Play reviewers, especially with the current 7 day~ turn around time.
I found Firebase App Distribution, which seems like a decent choice for the kind of testing I want to achieve, but the set up process seems very mobile centric, and talks about clicking links in emails etc. which is not doable on Android TV.
My goals are:
Get my not production ready application installed and automatically/one button press updated on Android TV
I've tried:
Google play store internal track, rejected because of how "not production ready" it is
Firebase App Distribution, but the tester registration process involves emails/flows not available on TV
So I guess my questions are:
What are my options for installing and automatically updating signed test builds on Android TV?
Is it possible to use Firebase App Distribution with Android TV apps? How do you register?
Currently I'm either having to get the devices near a laptop to adb install the APK, or pushing the APK to a network share and using a file manager on the TV devices to manually install and update the app.
I have an app that uses HKWorkoutSession. This app also support background modes. It uses HealthKit only to notify user in set intervals and doesn't collect any data.
Everything works fine, if it running alone, but if a user follows the next steps:
Start native Workout app
Start my app
Go back to native Workout
Apple Workout app crashes. Does anybody have an idea why?
There is also another scenario. If user starts my app first and then native app, my app refuses to work in background.
Bug takes place on watchOS 3.
Unfortunately, you can't have two simultaneous HKWorkout sessions running at the same time. So starting a new HKWorkout session (such as on your app) ends another pre-existing HKWorkout session (such as on the native Workout app). I don't believe either app should crash if this occurs, based on personal experience. I believe the crash may have something to do with the way you are handling either the start or end of the workout session. Hope this helps! :)
So I was working on a positioning app which needs GPS to be turned on. So I wanted a way to automatically turn on GPS in the background, if even possible with high accuracy or atleast have a popup window come up so the user can turn on the GPS right away. But sadly I couldn't find a single way to do so in QT, if there is a solution it's always written in Java. Can I somehow do it in QT too or import Java code in it?
Would I also be able to keep my GPS updates running in the background? Because as soon as I press the home button the updates stop to come up in the console with qDebug... or is it just the qDebug function that can't run when the app is not open?
Will I be able to use GPS in my Qt app?
First, check if the target platform has GPS and/or capable of resolving geo-coordinates. Next check the manual out: Qt Location. Mind that they refer to this functionality as 'location' so it maybe partially available even without actual GPS unit on device if there is another provider type (I guess partially and not for all platforms). I could only find this list of platforms supported:
Qt Location Classes for accessing GPS and other location services and
for mapping and navigation. Split off from the Qt 4 Mobility module of
Qt Location. Supported on Android, BlackBerry, iOS, Linux (using
GeoClue), Windows and Sailfish OS.
As for starting the GPS (location services provider) there is such entry for QML for sure called start() of PositionSource. It also implies one can find the same functionality in C++ as well.
Would I also be able to keep my GPS updates running in the background? Because as soon as I press the home button the updates stop to come up in the console with qDebug... or is it just the qDebug function that can't run when the app is not open?
Home button: it implies Android? Unclear what you ask but the Android app lifecycle is a bit different matter than that. The GPS will be working independently of your app but will the app respond to messages is more determined by Android.
In trying to add an app group (for an apple watch app that can share data beween the phone and watch) I always run into this problem, where the first step ("add the app groups entitlement to your entitlements file") gets checked, but the other 2 steps have red errors because of this "unable to create a provisioning profile because your team has no devices registered in the member center" problem.
I've downloaded test projects where people show how to share data between the phone and watch, but they never work for me in the simulator (always gives nil data) whereas they do for other people - I believe it's because of this app group error I'm getting where only 1 of the 3 steps is ok. I don't have an iphone so I can't register one in the member center as it wants me to. And going to Build Settings -> Code Signing and manually selecting a provisioning profile (as is necessary when submitting iphone apps when you don't have an iphone, as I've done before) still doesn't solve these app group errors.
Has anyone without an iphone got an app group working properly with all 3 steps? Would appreciate any help.
Read carefully this tutorial: http://weblog.invasivecode.com/post/108082269360/sharing-data-between-apps-and-their-extenstions
As far as I can tell (after trying to get around it for a few hours) you definitely need an iphone registered in your developer profile in order to use app groups in the current xcode watchkit beta. Someone correct me if I'm wrong.
Is there a framework to simulate a deterministically pseudorandom series of clicks imposed upon a Qt application - in order to try to trigger any memory leaks, threading errors etc - typical monkey-testing?
Some exotic, monkey use for QTestLib?
Yes, you can use the useful unit test module. Look in particular at the class QTestEventList. Just provide the QWidget you want to test, or the QMainWindow or whatever subclass you want and add the list of events you want to generate. If you want to generate a sequence of points so that you can reproduce in case of failure, use qsrand() and qrand().
The Squish automated GUI testing framework can be used to do monkey clicking in your application. There are a couple of nice things about using Squish for this purpose:
Squish runs on Windows, Mac, Linux and Android
It logs whatever random steps it happens to perform as a script that can be re-run (monkey testing docs)
It has an option to take a screenshot on application crash (screenshot on failure settings docs)
Disadvantages: Squish is not free. Setting up Squish to run your application can be super-irritating, especially if your application requires specific build characteristics of Qt or Python.