Windows phone 8 emulator does not receive pushes. - windows-phone-8

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.

Related

Who to create web service for windows push notification for windows phone 8?

While working with Windows Phone Push Notifications, I got myself stuck in the part of creating the "cloud web service" to receive the negotiated URL and retrieve updates to the mobile device.Is it possible to create this Web Service without using Windows Azure services (I don't want to pay anything, I just want to push with my services to my apps)? And how can I create this Cloud Web Service.
I haven't worked extensively with Windows Phone 8.1. Check this webpage for Windows Phone 8 -
https://msdn.microsoft.com/en-us/library/windows/apps/hh202970%28v=vs.105%29.aspx
You will get a URL for each device you want to get notification on through the app you create. Taking help from the above link, you can create a local server (Cloud Web Service) for testing push notifications for your test devices.

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.

Windows Phone 8.1 app starts ok via "normal" start but "hangs" via voice command

I have written a simple Windows phone 8.1 app that starts ok when started via the corresponding application icon.
I also have added a voice command definition file and added voice commands.
My Problem now is that when I speak the corresponding voice command the ...
voice command is recognized successfully
my app is started, i.e. the splash Screen is displayed
BUT the splash Screen is displayed for about 15 seconds and then the app is closed.
Where should I continue to investigate? As mentioned above when the app is started via the application Icon it starts successfully.
So what's the difference when an app is started via a voice command and when it is started normally?
Remarks:
In the code I do NOT react differently, i.e. I do NOT check the way the application is started or try to determine the used voice command ...
When debugging in the Emulator the voice command successfully starts the app.
But when the Debugging instance is stopped, the Emulator Shows the same Problem.
I would post some code but do not know which is the relevant...
In the meantime I have figured out that the problem is fixed by overriding "OnActivated" in App.xaml.cs, which is an alternative entry point to "OnLaunched". OnActivated is used e.g. when the app is started via voice command.

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.

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.