[UWP]- OnActivated Event not calling - windows-store-apps

I have windows 8 app with notifications enabled. it works great in windows 8, 8.1 and in windows 10 machine too.
But i got the problem is when user taps on notification it is getting the launch attributues from LAunchEvent in windows 8 and 8.1 apps and based on the launch parameter of toast notification as expected. where as if i run the application in windows 10 machine if user taps on notification I am unable to read the Launch attributes of toast notification.
So can anyone please guide me what should i do ?

See the section on "Handling activation from a toast notification" http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/07/09/quickstart-sending-a-local-toast-notification-and-handling-activations-from-it-windows-10.aspx
If you're using the new Win 10 templates or custom actions, then you'll have to handle the launch events/arguments in the OnActivated Handler.

Related

"Attention needed" error uploading app to Windows Store, but no error description displayed

I am trying to upload an update of my app to Windows Store. It never passes the "Certification" stage. After a while it shows error: "Attention needed", but when I click on it there are no errors displayed. How can I access a report of the errors?
I tried Windows App Cert Kit, but it doesn't run on my Windows 10 desktop. And the Windows 10 version doesn't work with 8.0 XAP files.
I have experienced the similar case recently. In my cases, 'Attention needed' was shown at certification phase. But no error reports were shown. Then, I noticed that my 'Submission N' page (see the screen capture below) have 'submit' button. I just clicked it to resubmit... the process was resumed, then, my app was published to the store successfully.

How to restart Windows Phone 8 device?

I noticed an app in Windows Phone Store, it can restart WP device, How does the app do it?
http://www.windowsphone.com/en-us/store/app/%E4%B8%80%E9%94%AE%E9%87%8D%E5%90%AF/75ed45c3-8268-4ca7-b405-17a31ded3810
There is no way to do it using public API in the SDK. Maybe there is some "not so public" API ... or the app just crashes so horribly that the phone restarts.
Anyway, you should not want to do this and such app should never have passed certification.

Launch lync-2013 app from wp 8 app (and pass parameters to it)

I am trying to launch a Lync-2013 app from the Windows Phone 8 app that I am developing.
I will be passing the number that lync client will call.
Does anyone know how to do this?
You can try the lync: protocol to activate the app:
Windows.System.Launcher.LaunchUriAsync(new Uri("lync:<sip:user1#hotmail.com>"));

Windows Store App activation request error

I'm getting below error message when I run my windows store 8.1 application.
I'm facing this error message for specific application not for every windows 8.1 store apps.
App started running after I done the below steps.
1). Start screen
2). Store
3). Settings
4). Your account
5). sync with login credentials

Windows phone 8 emulator does not receive pushes.

I have Windows Phone 8 emulator running and a sample app is registering and I receive the URI but when I try to send a notification, I'm not receiving in the emulator. I used to be able to use the sample app with WP7 emulator and it was working and I'm able to access internet on the WP8 but not the notification. Any pointers to fix this will be great!
This is what I saw happening:
1- If I didn't open the app after receiving multiple notification it looks like the OS will not show notification anymore.
2- if you try to send too many notifications.
3- If the app is open the notification will not show as a toast.
4- Sometime I had to open the browser and go to website to force the device to connect to the internet, probably because the phone was on wifi.
It's a pretty open question, since there might be multiple problems, but start with this (source: MSDN):
The push client service on Windows Phone Emulator must be ready before
you can use push notification APIs. Push client service on the
emulator takes two minutes to activate after you start the emulator,
starting from when the Start screen first appears.