6 Answers, 1 is accepted
You can use the following code to check if your app is running in the device simulator:
checkSimulator: function() {
if (window.navigator.simulator === true) {
alert('This plugin is not available in the simulator.');
return true;
} else if (window.plugins === undefined || window.plugins.AdMob === undefined) {
alert('Plugin not found. Maybe you are running in AppBuilder Companion app which currently does not support this plugin.');
return true;
} else {
return false;
}
}
Let me know if that helps.
Regards,
Tina Stancheva
Telerik
Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.
The simulator property is something we add dynamically when you run your project in the simulator. This is why if the app is running outside the AppBuilder device simulator, the property will be undefined.
If, however, the property is undefined when you run the app in your simulator, we will need to examine your app or a sample app where the issue reproduces. Only then we will be able to investigate the cause behind the error.
Regards,
Tina Stancheva
Telerik
Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.
Hi Tina,
I'm using telerik app builder and plugin 'Printer-master' from https://github.com/katzer/cordova-plugin-printer
When I check to printer available than, error like : Plugin not found. Maybe you are running in AppBuilder Companion app which currently does not support this plugin.
I can't understand it. please help.
Sorry, I forgot these steps.
Run -> Build -> Android-> App package
After following these, success.
Thanks.
Currently the AppBuilder companion app and the AppBuilder device simulator don't support custom plugins. I believe this was the cause for the behavior you experienced. You can check the following articles for a complete list of the supported plugins within the companion app and the device simulator:
Let me know if you have more questions.
Regards,
Tina Stancheva
Telerik
Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.