mariorancic
Topic Author
Posts: 23
Joined: 20 Jul 2019, 22:50

Re: barcode scanner

04 Jan 2022, 14:51

There is also other approach to the problem and is to show the camera from Swift code, but the question is how to call native Swift function from Noesis c# code and is it possible .
 
mariorancic
Topic Author
Posts: 23
Joined: 20 Jul 2019, 22:50

Re: barcode scanner

04 Jan 2022, 21:30

I finally found solution, actually , one friend helped me. The trick was to do this on button click or in ViewModel:
UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(viewController, true, null);

This way Noesis stuff stays in background and Xamarin.IOS stuffs are on top of it, and once barcode scanning is done , I am back to main Noesis app.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: barcode scanner

10 Jan 2022, 17:42

Great! Glad to know you solved it : )
 
Chetpih
Posts: 1
Joined: 08 Feb 2023, 14:39

Re: barcode scanner

08 Feb 2023, 14:41

When it comes to managed NoesisGui, you have the option to use C# for the integration, which can make the process smoother and more efficient.

Who is online

Users browsing this forum: No registered users and 54 guests