Appium iOS 11 RemoteViewBridge - access default app sdk like Photo, Email - appium-ios

App has access to import image from photo and other option is sending doc via email. In automation I could access photo and email options once my app loads the ui on init. This was working in iOS 10 and Xcode 8. Now, Upon upgrade the Xcode to 9 and iOS 11 the same app is not allowing me to access the element in Photo and Email. When I checked the element in Inspector, it shows me the entire Photo/Email page is RemoteViewBridge. Could you help me on this, how to fix this issue?

UIImagePickerController class has a private view hierarchy. The collection view cannot be accessed anymore from appium. In ios 11 you cannot access these elements. Try using iOS 10.3 or wait for the fix. I am accessing using coordinates in my project for the time being.

Related

Replace WebView with WKWebView in Xamarin Forms application

I have a webview inside my Xamarin Forms application which opens report downloaded from server in html format. Today I uploaded my archived application to app store and get information about ITMS-90809: UIWebView API Deprecation.
The problem is that I have no idea how to replace UIWebView with WKWebView in cross platform application. I've tried several solutions:
1) Creating Custom renderer for WebView - but this is no solution really because I need to inherit my new class by WebView superclass. So Apple warn me again with the same message.
2) Creating dependency service and use custom renderer in ios project only. But this is the same problem - there is still WebView reference in shared project.
So, is there any way to inject WKWebView directly to StackLayout in iOS? I know that WKWebView is iOS only and StackLayout is Xamarin.Forms component but really I don't have any idea how to do this.
Can anyone help me?
There is an issue in Github you can follow: Deprecated API Usage UIWebView
WebViewRenderer in iOS implements UIWebView, and the file stays even if you switch over the WkWebViewRenderer. That's why you get the error message.
Xamarin team is working on it and it will fixed sometime in the future.
Also, there is an Apple statement says:
The App Store will no longer accept new apps using UIWebView as of
April 2020 and app updates using UIWebView as of December 2020.
So you can still submit app with UIWebView right now and the error messgae is just a warning.
Relevant links: Make WkWebViewRenderer default for iOS WebView

how get key/value from nsuserdefaults .plist configuration file Xamarin forms

I am working as a Xamarin forms iOS enterprise app.
We pushed config.plist (Some key-value pair) file to a real device using Mobileiron/airwatch MDM/EMM(Services). Then we deploy the Apps on iPads using MobileIron. When the app starts, the app gets Url/ credentials from config.plist that pushed by MDM.
after googling I found config.plist stored in device which in NSUserDefaults​
But I am don't know is the .plist stored in NSUserDefaults with apps bundle id or something else.
Please anybody has the same issue before writing to me how I have to implements or getting value from .plist
I think you will find the details from your question on page 69-70 of Apple's MDM-Protocol-Reference. The MDM server deploys these settings using a dictionary that contains an array of bundle ids, with the settings for each app within their key. Because of how sandboxing works, your app just has to retrieve the com.apple.configuration.managed key to get its settings.
A great resource is https://www.appconfig.org/ios/

Windows style dialog in iOS

I would like implement Custom alert view in iOS like windows dialog style(with Yes,No,Cancel in horizontal) and I have to publish the app in Appstore as well.
Application will get reject from Appstore if I do this customisation?
The approval process in Apple Store, is quite complex, but there is nothing saying that customizing a view will get your app rejected.
Check the guidelines for further information.

sapui5 application is not open inside portal iView in IE11 default browser mode 5

I created an application using sapui5.I am using sapui5 library 1.40 in server NW7.4 sp6. This application working fine in chrome.
If I open this application in new Tab of IE11. It's working fine but when I am trying to call inside Portal iView. sapui5 library is not loaded, due to this my application is giving error "sap is undefined".
Please find attached document of screenshots for the reference. I have attached console log of the browser as well.
Thanks in advance
The Portal isn't able to run SAPUI5 iView that don't run with the standards mode. SAP provides a lot of documentation through SAP note and SDN blogs about that but the one that could help you the most might be the following:
https://blogs.sap.com/2014/09/03/ie-and-portal-standardsquirks-mode-evolution-or-love-hate-relationships/
To sum it up, your SAPUI5 iView must run with NavMode 10 ("Standard headerless framework page"), this should enable edge document mode, be careful that the entreprise mode for IE11 is not activated otherwise edge mode won't be usable.
Hope this will help you.

How to open the notification view from a smartwatch widget?

I would like to make my custom widget which I want to use the short taps on some area of my custom widget to navigate to my notification list and short taps on another area to navigate to my control. Is it possible ?
I found the sample code to open the control from a widget in this answer: How should I do to start SmartWatch Extension from the program code?!
But I didn't found the sample code to open the notification list from a widget.
I'm not sure I completely understand your question.
If you are asking if it's possible to open the notification drawer on your phone from a widget on the SmartWatch the answer is no, the notification drawer cannot be opened using any public APIs in the Android SDK.
If you are talking about opening a notification list on the watch itself, using the SmartExtension SDK Notification API then yes you can but you need to create the UI yourself and retrieve the notifications via the Content Provider. There is an example of a notification extension in the Sony Add-on SDK in the sample code section.

Resources