I’m trying to figure out how to check if my Ionic app is running on DevAPP (DevAPP is a testing platform that runs your app locally on your device).
This is important because I’m using a plugin that is not available in DevAPP, so it crashes the app. I want to be able to perform some kind of check to see if the app is being run with DevAPP. And, if it is, I just won’t call the code for the unavailable plugin.
I’ve tried checking platform.platforms()
, but it just says “mobile,android,phablet,mobileweb”. Those don’t seem to suggest that DevAPP is running.
Another possible solution would be a way to check if a plugin is installed. I tried just checking if the injected variable was truthy if( this.fcm )
, but this still crashes the app.