APPIUM:Change app language - appium

Iam automating an android app which is developed in few different langugages. I would like to know whether can we change the app language with desiredcapabilities?i passed the below capabilities. But it dint work.
obj.setCapability(“LOCALE”, “FR”);
obj.setCapability(“LANGUAGE”,“fr”);

Always check official docs
obj.setCapability(“locale”, “ fr_CA”);
obj.setCapability(“language”,“fr”);
Both Sim/Emu-only If it works on random real device, its more like a luck.
Language change available only on API levels 22 and below

Related

URL scheme to open Gmail native app from Chrome on Android

I'm trying to implement a feature over on Android, basically, on the web, you can use googlegmail:///co?to=email to open a compose view on the native Gmail app.
googlegmail:/// doesn't seem to work on Android and I'm really unsure if this type of functionality is possible on Android. Even if it exists for some other app, it would be great to get a working example on Android! Any clarity would be appreciated.
On Android you need to use an Intent, which is what allows you to start other apps.
Check out Compose an email with optional attachments for an explanation of how to do what you want.

How to get apps names list Swift 4

I'm new to IOS developing and I've been looking for a way to get list of apps names installed on a device but from what I have found is that Apple removed this from Swift 4. Is it true and if so is there an alternative way to get them?
There is no way to get list of installed apps on IOS device , but if you have the url Scheme you can check with UIApplication.shared.canOpenURL method whether an app is installed or not
This was never a feature on iOS because it would seriously hurt a user's privacy if it was. The solution using canOpenUrl works is you know the url scheme for a certain app but in theory any app can subscribe to any scheme so there are no guarantees there either.

Don't need the App Store to make apps anymore?

I recently found a site that allowed me to bookmark the site and then use it just like an app. There was no url bar, it was indistinguishable from an app you would download on App Store. Is this a new upgrade or technology ?
This is not new technology, I don't remember how long it's been out, but I'm pretty sure at least since iOS 3. It's called a webclip. You can do quite a bit with a webclip but are still limited to functionality provided by JavaScript, so no accessing the flashlight and certain hardware features (although many are being included in the device JS object). Though it is certainly much easier to implement basic app functionality!
+1 to SnoApps and here's a bit more detail about this older detail.
You can specify a webpage to appear like a regular app icon on the iPhone "home" screen (where all the apps appear).
There's more information here under the "Configuring Web Application" section of this Apple Safari Web Content Guide.

How to determine the exact iOS version using Google Analytics

While reading a tutorial on Google Analytics for iOS I wanted to know which version of iOS I was running.
I've googled for phrases like "ios version google analytics" but couldn't find anything useful.
Basically I want to know the number of users running my app on any iOS version, e.g. iOS 6, iOS 7 etc.
I've also checked the Google Analytics documentation, but couldn't find a proper method. The device info on Google Analytics dashboard just shows "iPhone" but does not mention the iOS version.
Is there a way to get the exact iOS version via Google Analytics?
I created you a custom report so you can see how the information is saved. Os Custom Report
I think what you are after is Operating system and Operating system version.
There is a method, go to
Audience > Technology > Browser & OS > The browser version matches the firmware*.
Might not match exactly, but in my experience its more than accurate enough and I am 95% it does match always.
Hope that helps Tushar
So I was looking for a solution here as well. I came across this article by Phillip Studiniski that shows you how to measure the iPhone screens by screen resolution.
https://analytical42.com/2017/detect-and-track-iphone-models-in-google-analytics/
I attempted to go this route. The problem I ran into was that I was just getting a raw output of the screen resolution in GTM, it would look something like this.
{"width":375,"height":667,"ratio":2.0000000454608653}
No problem I thought. I moved this into a RegEx table. Click here to see a sample RegEx for this Once I did this, I was able to properly identify the iPhone version with a variable and then send it to Google Analytics through Google Tag Manager variable.
I then had to update the iPhone models a bit since it has been a while since the article was written. (https://iosref.com/res) This includes the models from 11 to 13.
BOOM! iPhone version now being sent to GA. Hope this helps everyone.

Is there a way to query what other apps are on a device

Does iOS offer a way for an app to query the device for information about what other apps are installed/running?
All ios apps are sandboxed so this wouldn't be possible on a non-jailbroken device
There are a few options.
First, you can lookup for the specific process name of the app, but this may be prone to error as unrelated apps may be running using the same process name, for example, I've seen both the Batman and Dark Meadow game share a similar process name: UDKGame.
Secondly, using the URL scheme. This method is useful if you know what apps you are looking for and you know that this particular app implements the URL scheme. You can do a simple canOpenURL and find out if that app is installed.
I use the second method a lot to collect the URL schemes for use in my app, AppSwitch.

Resources