I was wondering what will happen to the UI when the app is minimized. Will it refresh the UI [With respect to its content] even when the app is minimized?
In the thumbnail[ When we hover on the app icon in taskbar ] we cant see apps UI being refreshed when app is minimized, but we can see the UI being refreshed in thumbnail when app goes to background and new app comes on the foreground.
What I think is, when the app is minimized, the UI thread/Main thread will keep updating the apps UI [depending on the content], but the changes will not be rendered on the screen. the changes will be stacked on a buffer and when the app is brought up, top of the buffer is rendered. Is this right?
It would be of great help if you can help me get a detailed understanding in it.
Thank you
Related
I use SkiaSharp canvas to draw the main game screen, and then there are various Xamarin.Forms Buttons around the UI. This all works fine on when used directly on iPhone or iPad using a finger. However, when I connect a mouse (e.g., through a MacBook or otherwise), the buttons start working with about 10% chance after mouse-clicking on the SkiaSharp canvas (and not receiving the mouse click events with 90% chance). The SkiaSharp canvas itself works just fine.
If I bring up the iOS app launch menu from the bottom (which probably somehow temporarily exists the mouse navigation on the app), the buttons start working again with the mouse. But if I click the SkiaSharp canvas again with the mouse, the buttons have a high chance of becoming disabled again. If I change to using a finger, all works fine (even if the mouse clicks were not being registered immediately before). However, mouse clicks are not being registered even after touching with a finger, so finger-touching does not reset the issue with the mouse (but bringing up the menu from the bottom does).
We found this bug by testing the iOS game on MacBook Pro (the iOS apps recently came available on the App Store) but the same issue persists also directly with an iPad / mouse combination. It seems to be some sort of an issue between using a mouse (on iPad or on MacBook Pro), SkiaSharp canvas and Xamarin.Forms buttons.
Does anyone know what the root cause of the problem is and what is the workaround?
Not an answer as such, but some more information about reproducing the issue: A simpler repro case may be this small project: https://github.com/jrc14/TraceMatching/ .
Don't worry too much about what it's doing, but note that you're mean to click in the grey Skia canvas in the middle to create 'targets' - and that after you've done that, mouse-clicks are getting lost.
If you run it on a Mac, you'll see that, though the clicks get lost after you've clicked on the Skia canvas, they will start being received again if you click on something else (another app, or the Mac background).
(further edit) - after some noodling around I did find a workaround. If, once you've finished processing the touch action on the SKCanvasView, you reset its EnableTouchEvents property (i.e. set it to false, then back to true again), it seems that the clicks don't get lost any more,
I am developing an app very similar to Uber in Nativescript + Vuejs.
There is a moment in the flow of the application, where a driver, having accepted a trip, runs the device's default satnav application (eg Google Map, Waze, etc.) to perform GPS navigation. The point is that while the driver is navigating -with the maps application in the foreground- there is a use case where he can receive an offer to take another trip (as the current trip is soon to end), which he has to confirm or reject/dismiss. Is there a way to do one of the following scenarios:
Show a dialog that appears above the map application showing trip details and two CTA buttons? Like a dark overlay maybe?
Return my application to foreground to show the dialog (leaving the maps application in the background). Important detail is that the map application is opened programmatically by my application.
Please remember that I am using nativescript and not Java/Obj-C.
Thank you!
My app shows strange behavior when I move table view selection too fast. It goes unresponsive, all button stops responding to events. But few things still work in the app. I made a video to explain my problem.
https://www.dropbox.com/s/ec96tbf3tpnqqqc/unresponsive.mov?dl=0
I need to know the reason why this is happening. This is not happening when I am debugging the app. It is only happening when I archive the app.
I am creating a Windows Phone application and i used turnstile animation on all the pages in my application.
The turnstile animation is happening in navigating in and out, but it does not happen when the app is loaded and first page is displayed. The page contains a panorama control with three panorama items.
When the app starts, after splash screen, the page just appear. no turnstile or any other animation happens
Kindly help with this issue.
Any help will be highly appreciated
Thanx for help in advance.
The whole app should be opened with animation. If you have the animation turned on properly on the first page, it will come animated, but not the page - the animated item will be the splashscreen.
When you close the app, it will also be animated.
In my app, have long running process in background before loading the app. So that i developed splashscreen with progressbar in popup. Popup is open and closed is workign well. It doest not give any problem. But progressbar in splashscreen, not loaded quickly when popup opened, some second delay happend. Progressbar always in visible mode and Isdeterminate also true mode.
I don't know why delay happend for progressbar.
This problem happend only in windows phone 7.1 only.
Pls Help me.
Thanks
I think, you try to draw the same Splash Screen image but with Progress Bar on top after application has been launched. Probably, your hard loading work performed on UI thread, so it freeze Progress Bar also. Try to move all work to background thread and if you have complex layouts (in ListBox, for example), try to add items with some delay to give UI thread time to update anything else.
The splashcreen is shown whilst the phone unpacks the .XAP file, loads the assemblies, starts the Silverlight runtime and renders your first page. Until this happens, you application is not executing, so you cannot display a progress bar or perform any other tasks. Hence the delay.
The only think you can do is work to reduce the XAP size and make your initial UI as simple as possible so that the first page renders quickly.