cjlotz / Xamarin.Plugins

Cross platform Xamarin Plugins
MIT License
113 stars 56 forks source link

Messaging does not work if there's a BackgroundAgent #15

Closed fonix232 closed 8 years ago

fonix232 commented 9 years ago

I've been having this issue since I started using Xam.Plugins.Messaging:

What would be a simple solution in this case?

cjlotz commented 9 years ago

@fonix232 What version of Windows Phone are you using? W.r.t the BackgroundAgent - the Sms, Phone and Email functionality uses the default platform UI for sending a Sms, Email or making a Phone call. These API's aren't allowed in Background agents.

fonix232 commented 9 years ago

It's WP8 base (our client requires backwards compatibility for now...). I'm very well aware of the BackgroundAgent limitations, and that's why I don't understand how it is possible that the Messaging plugin won't work when it is not added to it.

jamesmontemagno commented 8 years ago

You most likely just need to manually reference the assemblies that are added to the PCL project. So instead of adding the NuGet to the background agent solution go and just manually reference the files from the packages/lib/pcl-net45+.... folder.

That would make it work fine.