Ionic Cloud Push notifications. When I build my app and push notifications via ionic cloud its working fine i.e., I am recieving notifications in app but when I do ionic serve this error occurs. It would be greatful if someone helps me out?


This feature is only available when running on an emulator or actual device. You can not test this feature with Ionic Serve.

OK thats fine but can you please help me out in how will my ionic serve work now?
Do I have to delete my code for time being or what?

Look into using a mock version of the plugin. The docs ( talk about this.

Or you could perform a platform check before calling the code (less than ideal)

1 Like

Platform check worked fine.