Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Using MPRemoteCommandCenter in Xamarin Forms iOS project results in crash!

$
0
0

I am currently developing music player in Xamarin Forms. Today i ran in a obvious problem that appears to be a bug!

I have created a class which implements MPRemoteCommandCenter events so that we can handle LockScreen events.... the code works fine on iPod 5th gen running iOS 8.4 but it crashes on iPhone 4 running iOS 7.1.2 when using Xamarin Forms....

I guess now you are asking what am i doing here in Forms section..... So... first i thought i would create a empty Xamarin Forms project and implement my methods... still crash... so i created a Xamarin iOS solution.... the buttons worked fine and there was no crashing!

After a little bit of investigating and commenting out code in the Xamarin Forms test project. I found out that if i didn't call the base.FinishedLaunching (app, options); in iOS Forms projects AppDelegate.cs the buttons in LockScreen started to work and there was no crash and no UI!

So to reproduce this issue i have provided two Xamarin solutions one written in Xamarin iOS and second in Xamarin Forms.... You will also need to run the app on device running iOS 7.1.2


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>