I am receiving Firebase Pushnotifications in Xamarin.Android.
While receving I want to open a specific content page of my Xamarin.Forms App.
I use
Xamarin.Forms.Application.Current.MainPage.Navigation.PushAsync(new ShowAlert(null));
"ShowAlert" is the page I want to open.
The constructor of "ShowAlert" is beeing called an executed, but the page is not beeing opened. What's missing?
Thanks for you help!
Are you calling PushAsync from the UI thread? Device.BeginInvokeOnUIThread .
Related
I have wrapped up a web application in webuiview for IOS. In the application, I have a scenario where you can tap on a button and an auto-generated PDF file is loaded. The trouble is when you close that PDF file, the user is logged off of the app.
Any thoughts on this?
Thanks
I am having a Windows 8.1 supported app, but now it is updated to the UWP/UAP (i.e. Windows 10) app.
After updating the custom URI scheme is not working, On a button click on the web page, we were using "navto://" custom URI scheme and handling were done in a js file. The button action was bind through the anchor tag.
From this approach, we navigate our web pages forward/backward or used to send a user to a particular web page.
But now this js file is being not called on the click of the same button and a System Popup appear saying "You will need a new app to open this navto link". For reference, please have a look at the attached screenshot of the error popup. If anybody is familiar with the issue, please suggest me the solution.
Actually I followed this page to migrating the app https://learn.microsoft.com/en-us/visualstudio/misc/migrate-apps-to-the-universal-windows-platform-uwp?view=vs-2015#MigrateCSharp
And also tried other options as well by googling but I haven't got any perfect solution yet.
Thanks
in my XF application I have the possibility to open a web page.
For do this I use the Xamarin.Essential: await Browser.OpenAsync(url, opts);.
I need to have a callback when the user tap on Done button (on iOS) or the back button (on Andorid).
How can I do this?
There is another way other than use Xamarin.Essential?
Thank you!
EDIT
I need to execute some C# code when the user tap on the "done button" in iOS or the back button on Android when the WebView is open.
I'm not trying to execute some JavaScript code, or execute C# code from Javascript.
Android video.
Sample here.
Yeah if you don't want to use Essentials for opening pages, you could use
Device.OpenUri(new Uri("www.example.com"));
And if you want it to be in a async fucntion
await Device.OpenUri(new Uri("www.example.com"));
And if you are looking into adding callback functionality from the webview, you would need to create a HybridWebView and custom renderers for iOS & Android, as shown here.
I was willing to place a popup for a signup form just like a dialog fragment in the xamarin android.
https://developer.xamarin.com/guides/android/platform_features/fragments/part_3_-_specialized_fragment_classes/
I had spent much time researching for this but failed to create one. My intension is to take the input from the popup created and hit a API in the background showing the loader and in success i like to close the loader and the popup used to take data from the user. Can any one help me out doing this in xamarin forms.
Use Rg plugins popup, link for reference https://github.com/rotorgames/Rg.Plugins.Popup
I have an app that opens other part of the app inside the webview, but I need to turn off the warning of switching apps. The idea is to the user to just open another part of the app when he clicks the page inside the webview. Anyone has any thoughts?
Thanks in advance.