Appium rotateting device axis wise - rotation

Can I rotate the device axis wise using appium ? Like not only screen orientation (portrait/landscape) but x,y,z directions just like in the emulator configuration.
As per the documentation says in appium it seems not supported. But maybe someone has a trick to do so ?

Related

How to use scaled UI content in iOS?

I would like to create a zoomed/scaled UI as in Screenshot 1 below:
Keep in mind that I am NOT using the Zoomed option in iOS Display Settings.
So, somehow it is possible to make an app look like it is scaled/ zoomed.
Are such apps created with an old version of XCode and that's why their UI looks scaled or it is some sort of a technic?
Screenshot 1 (taken on iPhone 6s Plus 1920x1080)
Screenshot 2 - Normal app.
hi by default the OS will scale your app EITHER because it is an iphone app running on an iPad or because AX is on or it is a very old app where the LaunchImage does tell ios it doesnt really support the screen size.
you cant really say 'hey ios, scale my whole app for me'
that said, you can DRAW 'scaled' by applying a transformation to your root window/view.. dont know if there are issues with scaling the whole hierrachy but it technically works
i just know the bug with facebook sdk its when you call your fb friends list in the app and it scales all the ui after that window xd

Unity3D / Vuforia AR Camera not showing camera feed on camera background

I am evaluating Unity3d 2017.4.2f2 with Vuforia and Xcode 9.3 for an AR App and have the problem, that the camera background works in the simulator but not on the iPad pro with iOS 11.3,1.
It seems to be a known problem and I checked nearly every solution including using XCode9.2 and copying the device config, deleting Metal from the Vuforia Settings, creating new AR Cameras, even the latest Unity3D beta and whatnot. The background does not show up and I get the following error:
2018-05-03 14:53:33.396112+0200 ProductName[2340:1694266] ERROR/AR(2340) 2018-05-04 14:53:33: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized.
and
cameraDeviceStartCamera
2018-05-03 14:53:33.460389+0200 ProductName[2340:1694266] ERROR/AR(2340) 2018-05-04 14:53:33: VideoBackgroundConfig with screen size of zero received, skipping config step
If there is anything else I can do or that points me into the right direction is appreciated. many thanks in advance
Just to be sure check if you did all of this:
In player settings enable Vuforia's support
Go to player settings >> Other Settings and check Camera Usage Description field
Then you can try one of the following suggestions:
change the Target resolution to native (default device resolution)
set the graphics to be OpenGLES2.0 instead of automatic
If this doesn't work you can also try to delete the meta data of the camera controller script.
Removing Unity3D completely and reinstalling the latest Unity3D version and the VuforiaSupportInstaller-Mac-7-1-35 solved it. Both accessible via the Vuforia Download page

Appium automation testing How to use Android native Camera

I want to write a simple Automated test that launches and takes a picture from Androids's native Camera. I can launch the Camera but cant take the picture.
Iv tried looking in Appium Inspector to get the :xpath for the button that takes the pic so that i can do a ".click" on it, But its not there.
Im new to Appium, I haven't been able to find any info online. I dont know even if this is possible.
Thanks
Some People have said press_keycode 27 should work but it doesn't for me.
I've done a quick fix by using the Co-ordinates of the 'take image' Button and then tapping it e.g.
Appium::TouchAction.new.tap(x: 1770, y: 540).perform
But this is only valid on a specific Device i.e. my Samsung s4

Genymotion GPS is not getting my current position

As the title says, my genymotion is getting the static position declared in the gps options. Theres another option that I could get my current position? Im using cordova application testing with genymotion.
Genymotion does not plug the GPS position to your computer's position.
If you want to customize your position you can do it on several ways:
Use the GPS Widget (free feature) located on the right bar of the device. You can either set manually GPS data or use the Map view to do it easily
Use the Genyshell (free feature) to script the positions injection.
Use the Java API (paid feature). By including the JAR of this feature you can control the GPS and other device sensors. This feature is very useful to improve code coverage, for unit testing for example.
I was using cordova geolocation plugin.
navigator.geolocation.getCurrentPosition(onSuccess,onError,options);
And I was also facing the same problem, It wasn't working in genymotion. Setting enableHighAccuracy to true worked for me like below.
var options = {
enableHighAccuracy: true,
maximumAge: 0
};
For programming, you could give fake position by using any app. For instance you might use Fake GPS location to give static GPS position.

Is it possible to create an Geotracking app in WP7 using Bing Maps?

Is it possible to create an app like Runtastic, RunKeeper or SportsTracker (all of them Android apps) in WP7 using Bing Maps? Or maybe there is an app with that functionality already out?
These apps basically trace the route you run/cycle/jogg/etc in Google maps, displaying your current speed, altitude, cal lost, direction, etc. Then they have an option for storing the tracks and displaying their related information later. They can display charts as well.
Also, what sensors does WP7 devices have?
The image below is runtastic, tracing the path as you go
Thanks
Yes it's possible. But you should get past the idea stage and into the development before posting questions here.
As for what sensors are available, you can find more information about the minimum hardware specifications here
A WP7 device must, at a minimum have the following:
Accelerometer with Compass
Assisted GPS
Ambient light Sensor
Proximity Sensor
Camera with LED flash
FM radio tuner
It is possible since you can translate existing GPS coordinates to the Bing Maps control. Must of the features Chris mentioned are not required for a geotracking application (those are general device requirements). All that's needed is basically the GPS sensor.
Note one important element - you will not be able to run the application as a background process. Although you can keep it under the lock screen, you will not be able to switch to other processes (only to a very limited extent and under specific conditions).

Resources