Windows "Runtime" app (PC vs Phone) - Is it the same notification API? - c#

I'm beyond confused trying to grasp what is what regarding Microsoft's so called "Runtime" Apps (also called "Universal" or the convergence of Windows 8.1).
I'm currently building an app for both Windows 8.1 and Phone 8.1 and wondering, is the Notification API exactly the same? Since I'm having trouble understanding what is what, it's hard to google what it is I'm after.
If I googled for "Phone 8 apps" it's obviously wrong, because they are something different.
Optimally I just wanna use the exact same code for the phone app as for the Windows 8.1 app, is that possible?
Sorry if I made no sense and thanks!

If you create an universal app, you'll be able to share the exact same notification code between desktop and phone, as they both share the same runtime (called WinRT). Any code you find to implement notifications on Windows 8.1 is directly applicable on Windows Phone 8.1

Related

Can windows phone store apps run in tablet?

I am developing new windows phone 8.1
[RT] application working fine , but now my client want to give support to tablet also . Does my application work in tablet or I have to create a universal project ?
Please help me out for this .
Windows Phone 7.x or 8.x apps do not run on Windows 8/8.1/10 "out of the box" - you need to either have a universal app, or share your code (for example as a portable class library) to allow it to also run on the desktop variant of the OS.
If you want your app to run on over vendors tablets (such as Android or iOS) there are solutions that allow some code sharing, but again, you're looking at supporting another codebase to achieve this.

Calling Wp 8.1 Silverlight phone app in Wp 8.1 WinRT Phone app

Is it is possible to initiate a wp 8.1 Silverlight phone from wp8.1 WinRT phone app?
As i were trying for build a app for Scanning functionality,upto my knowledge there is no inbuilt options to scan the bar qode are QR code. When i search it for some resources, i found and many suggesting to use Zxing libraries. Though i tried with that and the success rate of the Scan was not that much satisfied.
When look through the Silverlight wp app, it was working quite well. So i was planning to create a seperate a app for this in wp 8.1 Silverlight app and that to be initiated from the WinRT phone app.
Please suggest some ideas on this.
Not directly. There is no way for a Windows Phone app to directly launch a specific other app. Apps can launch only files or URIs into their default handlers.
You can hack this by defining a protocol for your app and launching that, but you cannot guarantee that your SL app is installed. The protocol launch is fire and forget and cannot return data. The SL app could save it's data to a custom data type handled by the runtime app and launch that file, but this will all be pretty cumbersome and likely obvious to the user.
I'd try to keep all of the functionality in one app, whether that be a runtime app or a Silverlight app.

Get mobile operator in Windows Phone XAML app

My application responds to mobile operator information that I used to be able to get through
DeviceNetworkInformation.CellularMobileOperator;
It seems that this property is not available anymore for the new WP XAML and universal apps.
This information is critical since my application content depends on what mobile operator provider is the user connected to.
Is there some kind of a workaround for this?
Since Universal apps run off the Windows RT platform the DeviceNetworkInformation class is not available.
To use the class DeviceNetworkInformation in your code you'll need to build a Windows Phone Silverlight 8.0/8.1 app instead.

A Data Caching framework for Windows Phone?

I've recently started developing apps for Windows Phone 8 (I have no prior native app development experience, I'm primarily a web app developer) and I have been looking for a good HTTP caching framework for Windows Phone.
I'm working with a REST based API which returns JSON data and want to incorporate response caching with different caching policies depending on the data.
I stumbled upon AgFx which pretty much fits what I've been looking for but that was primarily for Windows Phone 7. I haven't been able to find something similar for Windows Phone 8, which works with the Portable HTTPClient library (I'm looking to reuse my code between Windows Phone and Windows 8).
I was wondering if anyone from the Stack Overflow community ever came across something which provides a flexible data caching for WP8, or if someone was ever able to port AgFx to Windows Phone 8.
There is something similar available and it's from Q42
Take a look at the code here: https://github.com/Q42/Q42.WinRT
It's both for win rt and wp8
Also, there has been an effort to port AGFX to Win RT by Indrajit Chakrabarty ( twitter #indyfromoz ), but it wasn't as stable when I tested it...
Link for that here https://github.com/indyfromoz/AgFx

Get Window Phone Signal C#

I've already asked this but for iOS and they told me it was impossible.
I migrated to android and Windows Phone.
For Android I've found but not tested this
http://www.firstdroid.com/2010/05/12/get-provider-gsm-signal-strength/
AFAIK it works. My problem is I'm now testing windows phone but I'm unable to find anything related to this problem. Some people mention WMI and I'm unable to figure out what this is.
Thanks
P.s I,m programming for Windows Phone 8 and 7.1
The closest thing we have is Microsoft.Phone.Net.NetworkInformation and it's parent namespace Microsoft.Phone.Net . These API's don't provide the raw data for the signal but they are able to tell you if the phone is on mobile broadband, the network operator, roaming info, etc. It's designed so that you app can be away of data usage, and intelligently respond when using 3G vs Wifi.
There is a GetSignalBars method in ConnectionProfile, available in Windows Phone 8
http://msdn.microsoft.com/library/windows/apps/windows.networking.connectivity.connectionprofile.getsignalbars.aspx

Categories