Windows style dialog in iOS - xamarin.forms

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.

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

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

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.

How do you see logging from a Meteor Cordova iOS app?

From what I understand, doing a console.log in a normal Cordova app gets piped to the Xcode debug output, but that doesn't work for my Meteor Cordova iOS app, so I've been doing alerts, which isn't as good.
#Ethaan's answer is a good point, but I don't think it is answering the OP's intended question. I am going to re-iterate the comment from #user728291 on the Question since I believe it is the sought answer.
Safari Remote Debugging will show you console.log messages from
Xcode's simulator or a connected device.
And in the case that the hyper-link may someday be moot, I will re-iterate the referenced text from the link:
If you are doing iOS PhoneGap debugging and have the Safari Develop Menu enabled, you can access the currently active session through the built-in Safari Web Inspector. To activate, go to Develop -> (iPad || iPhone) Simulator (normally, the third menu item) and click the active session you want to connect to. Voila!
The same way you can use Meteor.isServer and Meteor.isClient booleans
to separate your client-side code and server-side code, you can use
Meteor.isCordova constant to separate your Cordova/Phonegap-specific
code from the rest of code shipped to browsers and mobile devices.
From Meteor Cordova Phonegap Integration Documentation
So try with this.
if (Meteor.isCordova) {
console.log('Hi iam on the console from Xcode")
console.log("Welcome back " + Meteor.user().username);
console.log("the user with the id " + Meteor.userId() + " Just logged In");
}

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.

how to code asp.net (.aspx) to show ballon on system tray

I created a page named discussion_monitoring.aspx for fraud monitoring, impolite wording monitor. When detected, I just want to show balloon on system tray. but I haven't found that code to show balloon on taskbar system tray. Most example code I found is on Windows forms, not webform.
Environment: ASP.Net 2.0, Windows XP.
You want to show a balloon in the user's system tray? You can't do it. A web page doesn't have the level of desktop access (shy of an ActiveX control) necessary to make changes like that.
The closest you can hope to achieve is some kind of notification on the web page itself.
If you want the balloon to appear on the server's desktop, you should be able to use the same code that you've seen in a WinForms context. Just import the appropriate WinForms assemblies (System.Windows.Forms, probably System.Drawing), and you're good to go.
Note that it can get hairy, triggering GUI activity on your server from a webapp. You don't want to do things like open a dialog and wait for a response you're never going to get, for instance.
As "Michael Petrotta" said, you can't... But here is the Javascript for showing baloon in the page: http://mckay.cshl.edu/balloons.html

Resources