Blank screen google maps on UI test xamarin android - xamarin.android

I write Ui test for Xamarin Forms project, with use google map on iOS they work normal, but on android show only blank screen.
If build on debug / release or install apk maps work, but if i use UI test nothing. I use Nunit 2.6.4 and testing on local device and emulator and AppCenter.

Why this issue exists
When you're compiling your .apk with Google Maps included, Maps use your Keystore settings to verify that the maps is legit (I can't remember the exact details off hand but basically - if the keystore information used to sign the .apk changes - it breaks the maps).
By default, when you use UITest without sending keystore information - UITest does various magical things with its own keystore. This causes maps to stop working.
How to resolve this locally
To fix the test run locally, you need to tell UITest to use the keystore which you used to build the .apk file originally:
public AndroidAppConfigurator KeyStore (String path, String storePassword, String keyPassword, String keyAlias)
Is the method you want to use when setting up your App Configuration:
ConfigureApp
.Android
.ApkFile("path/to/my.apk")
.Keystore(path, password, alias)
.StartApp(mode);
How to resolve this in App Center
If you want to send your tests up to App Center then you'll need to do one more thing - and that is to include the keystore information when calling the appcenter-cli using the following parameters (which you can get from appcenter test run uitest --help:
--key-password <arg> Password to the matching private
key in the keystore. Corresponds
to the "-keypass" argument in
jarsigner
--key-alias <arg> Alias to the key in the keystore.
Corresponds to the "-alias"
argument in jarsigner
--store-password <arg> Password to the keystore.
Corresponds to the "-storepass"
argument in jarsigner
--store-path <arg> Path to the keystore file
P.S. If you have issues with App Center - I'd recommend opening a conversation using the Intercom widget in the bottom corner of the website - this will get you routed through to the Test support team who should be able to help you (you might even get to speak to me! :))

Related

React native IOS app web-services works on simulator but not real IOS device

I have done with all the settings of my react native project and trying to run on the IOS simulator, it's working fine. Means all the api working properly.
So now I have to share my .ipa file to team members for testing, so creating .ipa file I am using procedure defined on react nativeRunning On Device documentation.
For creating .ipa file using Xcode following below process:-
In Edit Scheme option, change Build Configuration to release.
Clean Build Folder
Create Build.
Archive build.
After that exporting .ipa file using valid certificate.
Solutions I have tried:-
Checked with this solution, because the domain I am using to hit web service is not secured.(It's http)
Enable Transport security flag.
Added main.jbundle (created using command line) to Copy Bundle Resource option in Build Phases.
While adding Alert in api call, getting below error (check image)
Still No luck.
Please let me know, what I am doing wrong?
Please check api server live link is working or not. In my case, I am testing whole api's on local network (In LAN). But when trying with live url, I am also facing this issue.
So that time I made one mistake, that my url should contain http:// but in actual it was https://.
It's pointing to main.jsbundle file, that means it's having issue
related with your code.
So check it once.

Ionic iOS App Error - Custom Scheme URIs are not allowed for 'WEB' client type

I am using this plugin.
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
The implementation works fine for android. But google sign in on iOS opens safari webview and throws 400 invalid_request.
I am using the ios client id and reverse client id generated on google developer console.
Anyways to debug or know what the issue is?
The usual cause of this error is having an incorrect REVERSE_CLIENT_ID. Double check that you have the REVERSE_CLIENT_ID from the plist file downloaded when you set up the iOS application registration on the Google developer console. Note that if you got it wrong, changing this is difficult, as it gets copied into various locations and won't update automatically if you just try to change it in config.xml. When I mistakenly used my Android client ID to set up the plugin, I found that as well as config.xml I also needed to change the top level package.json file, and the <appname>-Info.plist in the platforms/ios directory in order to get the correct ID used.

Publish Android Application does not work

Just created an .apk with the Publish Android Application option, created a keystore with key and uploaded to the Google Play app store. Everything worked, but when I tried to download the app from the app store i got an error message resembling "The application has an incorrect signature". I thought the "Publish Android Application" part of Xamarin.Studio was supposed to fix everything?
I ran the following command on the .apk afterwards: jarsigner -verify -verbose -certs app.apk At the bottom it said the following: This jar contains entries whose certificate chain is not validated.
Please help, would love to have the app out today :)
My problem was simple. XamarinStudio was setup to use Java1.7, setting it to use Java1.6 fixed it :)

Need help on getting google map Key for map application

I visit the below link to get Google map Key
Visit https://developers.google.com/maps/documentation/android/
a) have create a Project in Google Api console
b) have created a SHA1 certificate fingerprint base on google's below insturction
keytool -list -v -keystore mystore.keystore
mystore.keystore refer to: C:..... Xamarin\Mono for Android\debug.keystore"
Problems :
P1) Where to get package name in Xamarin to create Google map key base on this format:
One SHA1 certificate fingerprint and package name (separated by a semicolon) per line.
Example:
45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example
2) is this Map key required when I test the map app in emulator?
Thanks
1)
Within Visual Studio:
Right click your project > Properties
Click the Android Manifest tab on the left.
Package name field is what you are looking for.
If you see the message "No AndroidManifest.xml found. Click to add one.
Within Xamarin Studio:
Right click your project > Options.
Navigate to the Build / Android Application section.
Package name field is what you are looking for.
2)
Yes you need a map key to test the app in the emulator.

error starting xxxx: Module xxxx attempts to access a secure API

I have checked other questions around but no one seems to have exactly the same error. I'm using phonegap+jqm to create an application, initially tested on my android phone, now i'm trying to build-deploy to a blackberry. To build the app i used the phonegap starting guide, with:
ant blackberry load-device
I DID sign the application with the RIM provided keys. Still getting the error. Some help?
The problem was with the Signing Tool + JAVA SDK 1.7: it is a known issue that these two dont get along well.
Download and install the BlackBerry Signature Tool and run your compiled .cod file through it to check whether it is really signed or not.

Resources