What would happen in PowerApps if the browser is closed? - session

I will have access to the Papps licence soon but I cant stop thiking about this, imagine I have a timer on powerapps that will close the app if the user didnt do anything for about 10 minutes.
Will the timer trigger its events if the user closes the browser window or kill the powerapp process in the cellphone?
Thanks in advance!

Related

Get a notification when a timer is created by Google Home

Is there any way to get a notification in my application when I set a timer (such as "5 minutes") by voice with Google Home?
I wish I could display the countdown time using an ESP microcontroller and a segmented display. Displaying countdown is easy, but I don't know if it is possible to programmatically know when a timer has started.
If you are building a Smart Home Action, you can use the Timer trait, which will enable you to query by voice how much time is left, as long as you set the commandOnlyTimer attribue to false (this allows querying and reporting the device state).
Your execute response can then also include the status of SUCCESS or any ERROR codes that may occur when setting the timer.

how to track sent message event in windows phone?

Is there a way in windows phone to track sent message event? i mean to say that whenever a message is sent then a function of my application execute
all i want is to execute a function whenever sent message button of windows phone is clicked?
If you open the message launcher (I don't remember the exact name), it'll open this screen and you have the event (something like application deactivated) and once the user sends the message, the screen should close and come back to your app (again another event is available at that point, activated).
So you'll have to play with the events to do something you like, IIRC there is no call back when the message button is clicked.
Here's a link with the lifecycle of apps
There is no API that notifies you if a message was sent (at least no open API). A similar question was asked here.

How to work with background application?

I have created an app that triggers video at particular time similar to alarm, but the problem I am facing is that when I am out of application & have set the timings the video doesn't show up(i.e. similar to alarm I should get notification out side my app). Please help me out with the same. Would be very grateful for any helpful suggestion.
When an application is not running, you cannot predict what time its background process will execute, so there is no way that you can set an alarm with any degree of precision smaller than perhaps an hour. The only way to have timing close to accurate would be with a push notification from a server. Even then, the notification you receive will not be able to open and play video on its own. You could create a push/toast notification that originates at a server, sends the user a toast, the user taps it, and that opens the app to play the video. You can't do it without user intervention.
See this link for an overview, including the constraints on background agents: http://msdn.microsoft.com/en-us/library/hh202942(v=VS.92).aspx
You cannot open an app and play a video from a background agent. You can show a toast notification that would allow the user to open the app. You can use a Scheduled Agent or PeriodicTask.You can then use the ShellToast to show a toast notification so the user can open the app. Once the app is open you can start the video.

RSS-reader feed updates when app is suspended

So, Ive made Windows Phone app that contains rss-feeds. I would now like to add the possibility for toasts to popup when a stream is updated. Ive read up on how to use Toasts to notify the user, but how can i make my rss-reader periodically poll the rss-feeds for the latests news when the app is suspended in the background. Example code would be highly appriciated!
Check the "Background Agent Sample" Windows Phone Code Samples to see how you can create a periodic background agent, that will allow you to pool the rss feed(s) and show a toast notification to the user!

WP7: Get userinput into a running thread (BackgroundWorker)

currently i'm developing a WP7 that contacts a RemoteService within a BackgroundWorker. As Part of the communication the user needs to validate some Data (something like captcha). As the Communication is connection session based and synchronous i can not complete the background worker, ask the user and start a new communication to the server.
So the question is, is there any way to pause the BackgroundWorker, ask the User for input, pass that input into the BackgroundWorker and unpause the WorkerThread?
Thanks and kind Regards
Kornelis
You could use the MVVMLight Dialog message as described here to send a message to the View to ask it to prompt the user for a message.
In order to pause/unpause the background worker, you could wait on an AutoResetEvent in your background thread, and in the dialog's callback, signal the event to let the background worker know that the response has come back ...

Resources