Back in the summer of 2016, I sat waiting for a movie to start at Cineworld. Wanted to check something, I was forced to use the mobile website. At that point I wondered if they had an API and within 2 days I had a version of the app ready for Windows Phone store.
A few months down the line, I ported it to Windows 8 and then ended up using Azure to generate dataset for the apps. For the last 2 years or so I have been paying for the service.. it wasn’t significant but still odd 200 a month and having looked at IAP purchase in the last 2 months I decided that it was time to call it a day.
While Microsoft might say mobile didn’t work for them, I’d beg to differ. Windows Mobile version of the app had nearly 4k downloads (3976) vs desktop app with 256 downloads. YES a full 256 downloads.
Mobile app – Windows Phone app (WP8x and Windows 10 Mobile)
Desktop app – Windows 8 app (Windows 8x and Windows 10 Desktop)
That tells you all you need to know about consumption of certain apps on desktop vs mobile – it might not be global but it definitely is so in UK.
Now lets look at IAP.
IAP for Mobile app
IAP for Desktop app
Above are for the last 2 months – minus governmental and store taxation, I could have paid for the Azure service for a month.
Having decided that it wasn’t economical, the fact that Microsoft officially acknowledged end of the road for mobile was sufficient to determine that the app will never ever pay for itself.
The source for the Apps and Azure services is available on GitHub
Most code was before I adopted MVVM for Windows Development so please except my apologies for whatever you find in there.
In 2015, I released Windows Phone 8.1 and Windows 10 version of the Daily Mail Online app. The apps uses tracking to monitor usage etc. In the last set of builds for the first iteration of my work there, I set the OS to be Windows Phone 8.1, Windows 10 and Windows 10 Mobile. Whilst it was sufficient back then, it meant that I did not have sufficient data to set the Min Target SDK the 2nd time around.
Let me start by saying that my data is mostly UK centric.
Such data hasn’t so far been released by Microsoft and to ensure that I targeted as many users as possible I settled for a min target SDK to be 10240 (the first version of Windows 10).
I still have users on the early version of the app and those will never upgrade. There are significant users on Windows Phone 8.1 (dropping at a steady rate)
I have been monitoring this numbers every day and I finally decided to modify the Min SDK to 14939. This is why.
Of the Windows 10 users, majority were on 14393. 0.7% users are still on 10240, around 1.9% are on 10586.
I found 16 different builds of 10240 in use amongst those 0.7%
21 different builds for 10586
With number of Insiders matching those on older generations, its time move forward. Min target for next update is 14393 and a total of 33 Windows 10 builds to support.
Having done limited rollout yesterday I noticed a strange pattern. A huge number of crashes with “System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw”
The most interesting bit was that the failures were only mostly on phones and not on desktop devices.
What the heck!! looking inside didn’t help much. The crash group on HockeyApp also mentioned ‘invalidoperation_novalue‘ Okay this was strange.. In another instance I had a similar invalidoperation_novalue but somewhat different location ‘System.Nullable$1.get_Value ‘
In a few places I was using nullable int. that translates to System.UInt32
int? pos = null;
// elsewhere read it
var item = list[pos.HasValue ? pos.Value : 0];
// in other places I encountered some exceptions - can't remember what and I used null check rather than HasValue
var item2 = list[pos != null ? pos.Value : 0];
//or in newer iteration of csharp
var item3 = list[pos?.Value??0];
Somehow I was directly using instance of nullable directly. A few posts helped. I was sure that was the problem. Thanks to Carsten Schuette for showing the use of GetValueOrDefault
InvalidOperationException in DeviceUtils.DiagonalSize
System.InvalidOperationException must contain value for ViewModel
So in the latest build, I have replaced above usage with
int? pos = null;
// elsewhere read it
var item = list[pos.GetValueOrDefault(0)];
Only hoping that I identified and fixed the one that was causing the issue. Stack trace with .NET Native can be painful.
Exception Type: System.InvalidOperationException
Crashed Thread: 2
Application Specific Information:
InvalidOperation_NoValue. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)
Thread 2 Crashed:
0 SharedLibrary 0x0000000002908719 0x0000000002580000 + 3704601
1 MOL-Desktop 0x0000000001e1e122 0x0000000000c00000 + 18997538
2 SharedLibrary 0x00000000028d3fcc 0x0000000002580000 + 3489740
3 SharedLibrary 0x00000000028d3fa2 0x0000000002580000 + 3489698
4 SharedLibrary 0x00000000028d3a0e 0x0000000002580000 + 3488270
5 SharedLibrary 0x000000000290387a 0x0000000002580000 + 3684474
6 MOL-Desktop 0x0000000001e1d783 0x0000000000c00000 + 18995075
7 SharedLibrary 0x00000000028d3fcc 0x0000000002580000 + 3489740
8 SharedLibrary 0x0000000002942c09 0x0000000002580000 + 3943433
9 SharedLibrary 0x00000000028d369a 0x0000000002580000 + 3487386
10 MOL-Desktop 0x0000000001b08a62 0x0000000000c00000 + 15764066
11 MOL-Desktop 0x0000000001b0b397 0x0000000000c00000 + 15774615
12 MOL-Desktop 0x0000000001b0b2ef 0x0000000000c00000 + 15774447
13 MOL-Desktop 0x0000000001dd44db 0x0000000000c00000 + 18695387
On 1st of Jan 2017 I got a mail from Microsoft stating that I have been awarded an MVP award for my community contributions for Windows Development.
I am honoured to have been nominated and to have been awarded this. For a developer in Microsoft technologies this is the highest honour (sort of). Thank you @WindowsDev and @MVPAward
I think 2016 was a mixed bag and technically I did little to have deserved this honour. I have been a contributor to the UWP Community Toolkit and that was the primary driver. I am sure I did substantially more from 2011 – 2015 but hey maybe that’s what it took 🙂 still feels surreal
Going ahead I will try to blog more about #UWP and #UWPDev in 2017. Happy new year all
The only reason I install Chrome now and again is to use extensions like Json Formatter extension. Recently Microsoft released Windows 10 Anniversary update.
Edge browser on this update supports extensions. This list of extensions on store is still limited. The team is analysing the performance and publishing them accordingly.
Can’t wait any longer. I started by cloning Json-Formatter repo and used Microsoft Edge Extension Toolkit to port the extension to work on Edge.
You can download the repo and install the extension after enabling Extension developer mode from ‘about:flags’
The repo is on Github https://github.com/hermitdave/json-formatter-edge along with instructions
An example geonames json service can be found here
By default the json is displayed like this on Edge browser.
With the extension installed, it is displayed at below
To port another extension use the Micosoft Edge Extension Toolkit available on Store
Starting Windows 8 Microsoft introduced a sleep state called Connected Standby (CS). Think of this sleep as your smartphone when its screen is off, the device is still running, connected to the mobile networks, capable of receiving notifications and wakeup calls etc.
In early days this feature was supported only on WOA… you know it as Windows RT.. yes something many wouldn’t care to remember.. Windows x86 / x64 SKU officially support CS starting with Haswell processor. Haswell introduced a sleep state S0. This keeps part of the device sufficiently awake to receive notifications etc while in low power state.
It never truly worked for me. I had one of the first engineering models from Intel delivered in June 2013 and the device refused to wake up properly. I tried just about everything and while things have gotten better, for people like myself, battery life is more important than notification (which I already get on my phones). A few times SP4 in CS has had around 50 – 90% drain in few hours ( 2 – 4).
The solution is easy – unless CS is something you rather than instead of longer battery life, you should force system to hibernate rather than go into connected standby.
Switching to hibernate:
- press Start Menu and type power options
- open Power Options from Control Panel.
- tweak Choose what power buttons do option – enable hibernation and set desired settings
- tweak Change when the computer sleeps – I prefer a short sleep
- next click Change advanced power settings
- Navigate to Sleep > Hibernate After > Ensure duration is correct.
- Click Ok and close all power options.