Write explicit code for different platforms?

Hi there,

I implemented the native contacts plugin. Now when I start “ionic serve” I get “No provider for Contacts!”, and the app stops.

What do I have to do at this point? Write explicit code for different platforms and avoid using the native contacts plugin when “ionic serve” is used?

Use this plugin to check if you on which plat form, example, iOS / Android / Window Phone / if not this 3 that mean you on web