How to restart Windows Phone 8 device? - windows-phone-8

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.

Related

In Windows Phone 8.1, Is it possible to read mac address of device

In Windows Phone 8.1, Is it possible to read mac address of device.
I want to build a app which search the all available network and connect to the preconfigured(in app) network.
and also turn on the WiFi using C#
The Windows Phone OS does not give access to programmatically join networks, this has to be an action initiated by the end user, it is possible however to enumerate the current network connections whic does allow some information about the adaptor, but apparently not the physical (MAC) address...

How to show Windows Phone application to client before publish in store

I have developed Windows Phone Silverlight application (support 8.0 and 8.1) for my client request. The client is goint to publish the application in WP app store, but first he must check on his phone if everything is OK with the application.
The application was developed with Visual Studio 2013, I've got developer account and own phone assigned to this account on which I have tested the application.
The question is, how can my client install the application on his own phone skipping windows app store? I have sent him builded *.xap file but he had a some problems with installation (Cannot install company application)?
You can submit your app to Windows Phone Store BETA. Your app will by certified quickly, and your client will be able to download it just like any other app from Store. The difference is that it will be visible and possible only for him.
Log in to you DevCenter account, click Submit App. Then, in App info section expand More options and select Beta. Then you can provide your client's mail.
I'm not sure, but I think that the name of the app should not be the same as the final version. So you can name it "My App Beta" to avoid future name conflict with the final version.
One more thing. When your app pass certification process, you have to send the link to the app to your client, because he won't get any notification.

Keep connection between Windows service and Windows Phone app alive

So, I would like to have a Windows Phone app "connected" at ALL TIME with a Windows service.
That means that the service would need to know if a device has been turned off or lost network connection within seconds after it happens. On iOS and Android we keep this connection up with sockets. But this doesn't seems to be possible with background tasks on Windows Phone?
Is there somehow we could "ping" the server/service more often then every 30 mins from a scheduled task? The app will only be used by known people so if there is a possibility to "fake" a music app och location app that would do it. The app will probably be released as a enterprise company app so all users will be aware of the possible "battery drain" that could be caused.
If using Push notification, how long can it take before a device gets it and could the service know right away if that device received it?
You can use geolocation service and keep your app in background or even fake audio agent. You are free with choice because company apps have no public certification process.
Here is some info about Company Hub and enterprise deployment of Windows Phone 8 apps.

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 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.