iphone resume application on UILocalNotification - ios4

I've managed to get the application I'm writing to present a UILocalNotification when it is in the background. Though when the application resumes, the user interface becomes inactive.
Is anyone aware of how to get the application responding again having resumed from the background state?
Thanks,
Matt.

I had this problem and found that the answer is to not set up your notifications while in debug. Instead make sure your app has quit fully, launch it from the homescreen and then set the notifications.

Related

how can I clear notifications in android studio (java)

I have this media player project and I have foreground service in it which allows me to control the song through notifications even if I clear the app in the background. Everything is working fine including the controls in the notification. But...the notification just remains forever and cannot be cleared even if I try to clear it until I re-run the app or restart my phone. Please help. Tried things like setAutoCancel(true) and etc
Are you calling
stopForeground()
?
This method takes a Boolean to indicate if you want to remove the notification as well.
Read this article

Prevent the user to accidentally touch the UI of app while closing the app in iphone X

Image of my main screen
I'm building a timer app which sets the timer by scrolling it. The problem I'm facing is when the user tries to close the app on an iphone X, sometimes, they accidentally scroll the timer and them do in the background which sets a notification which the user didn't intended. I need suggestions on how to handle that.
What I'm thinking right now is to set a view at the bottom and make it transparent. Is there a better way ?

Windows 10 UAP - Application.Suspending event

In Windows 10 universal application which is running in desktop environment, in what cases can be Application.Suspending event fired? One case is closing the app (for example with Alt+F4), are there any other cases? I thought that Alt+Tab would also fire this event but strangely that's not the case, why?
Application.Suspending on Mobile will fire whenever the user navigates to another screen via the task switcher, hitting the back button from the root page, hitting home, on when a phone call is received etc.
On Desktop, it will fire whenever the application is minimized.
However, it will ALSO fire on both desktop AND mobile when the app is on the way to being terminated for any reason.
On Desktop this is when alt+f4 is hit, or the window is closed.
On Mobile, by the time the window is being terminated (low memory or killed in switcher), the Application.Suspending event will have already fired.
Alt+Tab on desktop will not suspend the event as the window is still running as a live preview because it is visible to the user.
Check out this video from Microsoft Virtual Academy for a great look at the Windows Universal App lifecycle, or check out the App Lifecycle docs from MSDN.
Hope this helps

JSF, propagating event to every user

Can I propagate event to every user which currently connected to application? For example as a popup? Even if the user isn't actively using the application but only has its windows opened?
Actually requirement is to let to user know that a system is being shut down in X minutes.
Thank you.
UPDATE: as always before writing this post I hadn't any ideas, after writing this post ideas began to coming. I think about <p:poll> element from Primefaces library. It should be invoked periodically and check some flag in a session or even application scoped bean. If this flag became turned on it should run popup window. Are there any pitfalls? Is there better idea?

iPhone SDK: How to Kill my app?

I've been trying to create a proper Restart feature within my app, which doesn't work (Orientation is meshing up badly) so since this is a prototype I figure it will be easier if I just crash my app and the user taps again the icon.
Is there a way I could kill my application from code within 1-2 sec.?
Thank you!
You mean you want to quit your app when user taps on home button instead of going the app into background? If yes you can quit the app when user presses home button by adding a key into your info.plist file application does not run in background and set it's value to true. Here is the original key name UIKeySuspendOnExit I don't remember excatly but it should be like this. Find on google you will get easily.

Resources