How to upload image/file from mobile gallery/File Manager from a simulator to native app using Appium? - appium-ios

I'm new to Appium and I'm automating a native iOS app, where for an incident I need to upload an image/file from mobile gallery/File Manager. Please explain me how to do this.
Using Appium, C# with .NET Core 3.1.

Related

Integrating Mapbox with .NET MAUI

I am currently developping an native Android app using Mapbox with Visual Studio (using some Mapbox nugets). I have to do the whole dev to address iOS customers but Xamarin.Forms nuget version of Mapbox is out of date, both Android & iOS SDKs have been updated since.
As Microsoft has just released the first .NET MAUI Release Candidate RC1, i.e. the successor of Xamarin.Forms, I would like to start over a new project so I can manage one development pipeline to deploy on either Android or iOS afterwards.
So I open this thread in order to share help to embbed Mapbox in a fresh new .NET MAUI project.
How should we proceed to simply display a Mapbox map view with a .NET MAUI project?
Thank you!
The best way for now is implementing a Maui Blazor app and using a BlazorWebView to put a MapBox in your page.
See Build a .NET MAUI Blazor app documentation

Xamarin.Forms - How to check if my app uses the Advertising Identifier (IDFA)?

I'm using Xamarin.Forms. For the iOS app, how to check whether it uses IDFA? I'm about to submit the app for Apple Review in App Store Connect.
For native iOS project (xCode), there were some commands to run like grep in the root path. But how to check this in Xamarin project (Visual Studio for Windows with paired Mac)?

xamarin.andriod connect to web api

I am currently working on a Xamarin project for Mac and Android mobile devices. I am using Visual studio for mac to create the xamarin project. In my application I have to invoke a Webservice endpoint. As I am still at early stages; both the
Webservice and the Xamarin mobile application are running locally on my machine. When I try to call the Webservice from Xamarin the base url works fine on mac as http://localhost:5000. However when I run android version, I am unable to connect to my local webservice using http://localhost:5000. Is there any workaround for this?
After researching, I have also tried using the following base uri's:
http://10.0.2.2:5000
I have also right-clicked on the project and under Build I went to Android Build. Underneath Code Generation and Runtime I selected Managed (HttpClientHandler) for the option HttpClient implementation. As well as SSL/TLS implementation for the option Native TLS 1.2+.

How to deploy Xamarin Forms App to iOS device for Testing

I m using VS2017 for Xamarin forms app development. With VS2017,I can use Android simulator and I can deploy the simple xamarin forms hello app to my Physical Android phone(after doing some settings on the android phone).
My problem now is How do I deploy my same Xamarin Forms hello app in VS2017 in my Windows 10 PC to an iOS device? right now, I have a macBook Pro and iphone6. I try the mac agent but this only for iOS simulator.
Please help. any link or help is very much appreciated.
Update 1:
The confusing part is App ID. Say, I created an AppID in Apple Portal called MySwiftDemo and on mac i created a dummy app with Bundle Id : com.FunProject.MyFirstSwiftDemo which I used it in AppID required by the Apple Portal
and I created XF-app in VS call MyVSFirstApp and this is the actual app will be deployed to iOS-device.
1) The app name in Mac and VS are not the same. So the provisioning file is referring everything from mac, Is it ok without Xamarin app name?
2) If I have another Xamarin forms app call My2ndApp to deploy to iOS device, do I need to create another AppID on Apple Portal and Bundle ID on mac?
Thanks
Subscribe to Apple's Developer Program
Visit the Apple Developer Portal to register. Note that in order to register as an Apple developer, it is necessary to have an Apple ID and costs $100/year
Create an iOS Signing Certificate
Follow the steps linked here
Provision your iOS Project and your physical iOS device for Developer Mode
Connect your physical iOS device to the USB port on the Mac, then follow the steps linked here
Using XamarinLivePlayer we can test the app on Android and iOS
Which was introduced in Microsoft Build 2017 Event(https://build.microsoft.com/).
You can read more at https://www.xamarin.com/live
https://www.visualstudio.com/vs/mobile-center/

ERROR ITMS-90161 when trying to upload an app built with Visual Studio for Apache Cordova

We just started creating cross platform mobile apps using "Visual Studio Tools for Apache Cordova".
I followed the procedures described in Install Tools to Build for iOS and To run your app on an iOS device. Everything works nicely, the app gets deployed on my USB attached iPhone and runs as expected.
I then tried to upload the app to iTunes, to provide the app via TestFlight to testers and to generally see how app-submitting works:
Build the iOS app as "Release" in VS: it builds and deploys to the iPhone nicely
On the Mac: Start Application Loader, click on "Deliver your App" and navigate to "...remote-builds/builds/"xxx-buildnmb"/cordovaApp/plattforms/iOS/build/device/APPNAME.ipa"
Several checks run OK ("verifying assets, etc.), but it then stops with the error
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle xxx.yyyyyy.zzzz [Payload/xxx.yyyyyy.zzzz.app] is invalid. [Missing code-signing certificate.] For more information, visit the iOS Developer Portal."
I then discovered the Xcode Project in ".taco_home/remote-builds/taco-remote/builds/<build-number>​/cordovaApp/platform‌​s/ios/" and used Xcode to define the code signing identities in "Build Settings" and the Team information in "General", created the archive via Product-->Archive and submitted it in the Organizer - Archives. And voila it worked!
My questions:
Do I have to use Xcode to submit?
If not, what might I be missing in a) regard to building and signing apps with vs-mda-remote, and b) submitting it with Application Loader?
What are Microsoft's plans in regard to providing access the build settings from within Visual Studio (similar to the ones in Xcode)?
Thanks a lot for any pointers in the right direction.
Thomas
You need to use distribution provisioning profile to sign the package and apps are published to the App Store by using the iTunes Connect website along with the Xcode Archive Tool, which is included with the iOS SDK.

Resources