I created a new android build and selected Debug Build. But when I download I can not view any console or debug info… it seems like a normal app without the debugging option / menu…any ideas how to make sure debugging is available on the build
peabucket
@peabucket
Posts made by peabucket
-
Monaca debugger on Android build not showing
-
RE: Onsenui Bluetooth Tutorial
What was the full code you used, it still gives me same error as I just posted now above
-
RE: Onsenui Bluetooth Tutorial
Really need help with this … seems like such a simple question about using Cordova plugins…
-
RE: Onsenui Bluetooth Tutorial
Still getting the same error: Uncaught (in promise) module bluetoothSerial not found undefined:0
What is the correct way to use a plugin functions inside Onsenui? Do you just call the plugin, i.e. bluetoothSerial() … or use cordova.require();… There is nothing in the docs about using cordova plugins even though you can import them from Monaca
app.controller('InfoPageCtrl', ['$scope', function($scope, bleService) { var bluetoothSerial = cordova.require('bluetoothSerial'); ons.ready(function(){ bluetoothSerial.isConnected( function() { alert("Bluetooth is connected"); }, function() { alert("Bluetooth is not connected"); } ); }); }]);
-
RE: Onsenui Bluetooth Tutorial
@munsterlander Monaca Cloud IDE , the latest version
-
RE: Onsenui Bluetooth Tutorial
Thanks again, but it seems that I can not get the cordova plugins to loaded correctly, any idea why this is happening from the code above. I have tried cordova.require(‘bluetoothSerial’); and new cordova.plugins.bluetoothSerial.Delegate();
-
Cannot load cordova plugins in Onsenui 2
I am trying to load a cordova plugin but it keeps giving an error: **"Uncaught (inpromise) module bluetoothSerial not found undefined:0. **
How would I go about loading a cordova plugin inside Monaca, I have tried:
- window.bluetoothSerial()
- cordova.require(‘bluetoothSerial’)
- new cordova.plugins.bluetoothSerial();
All give the same error message
app.service('bleService', function() { var bluetoothSerial = cordova.require('bluetoothSerial');//new cordova.plugins.bluetoothSerial.Delegate(); return { sendMessage: function(message) { // interact with bluetoothSerial } }; }); app.controller('InfoPageCtrl', ['$scope', 'bleService', function($scope, bleService) { bluetoothSerial.isEnabled( function() { console.log("Bluetooth is enabled"); }, function() { console.log("Bluetooth is *not* enabled"); } ); }]);
-
RE: Onsenui Bluetooth Tutorial
Thanks for the reply. I have tried another plugin (https://github.com/don/BluetoothSerial). But for some reason it does not load and keeps giving an error “bluetoothSerial is undefined”. I have some simple code below to check if Bluetooth is enabled and to get name of bluetooth devices:
app.service('bleService', function() { var bluetoothSerial = cordova.require('bluetoothSerial');//new cordova.plugins.bluetoothSerial.Delegate(); return { sendMessage: function(message) { // interact with bluetoothSerial } }; }); app.controller('InfoPageCtrl', ['$scope', 'bleService', function($scope, bleService) { bluetoothSerial.isEnabled( function() { console.log("Bluetooth is enabled"); }, function() { console.log("Bluetooth is *not* enabled"); } ); }]);
Or if I am able to do the same with the plugin you have suggested some example that works with Monaca IDE would be useful also. I need to work with Bluetooth 2.0 and 3.0.
There is an example of how to use Bluetooth plugin on Monaca IDE docs but it seems only compatble for Monaca 3.5 version: http://docs.s.monaca.mobi/3.5/en/reference/third_party_phonegap/bluetooth/
-
Onsenui Bluetooth Tutorial
Any way to integrate Bluetooth 2.0 or 4.0 with Onsenui? I am using Monaca and since v 5 they do not have bluetooth support, so I looked around and found a tutorial using a iBeacon plugin (https://docs.monaca.io/en/sampleapp/samples/ibeacon/) but no tutorial on a standard Bluetooth plugin, would think this would be pretty popular feature to implement… any help with this would be great! thanks