-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The app doesn't work in mobile devices #12
Comments
When the app loads but the start button doesn't work there is most likely a JS error. Did you get any popup messages? (bluetooth not enabled, etc.) If not, can you send the console output of the app running on your Android phone? (e.g. using adb logcat) That would help me finding the source of your problem! |
Thank you for your answer. I tried it using Phonegap and following the instructions of configuration and installation. Here is my logcat: Thank you. |
Thanks! It seems that there is a problem with Cordova and the screen orientation. Can you run Ps. It wil not work on your MacBook as the app requires access to mobile sensors :) |
Now it fails during the build because the android platform was already added.
|
Hmm, to bad that didn't work. Can you try one more thing? Maybe that solves your problem. (If not, I will have to do some more debugging) Comment the following line: https://github.com/wouterbulten/slacjs/blob/master/src/app/app-mobile.js#L58 This disables the screen locking code (which was the only error present in your logcat log). |
Commenting this line I have Motion and Compass working but no Bluetooth (unless it is turned on), and the Start, Restart, Pause buttons aren't working. I have lots of warnings after typing "sudo gulp serve-mobile", in case it can help you to resolve the problem:
Thank you. |
I have also tried to run on android and iOS and didn't work. @wouterbulten do you know what else could cause the problem? |
Sorry for my late responses; unfortunately my (free) time is limited right now. All those warnings are from the js linting, so nothing to worry about. They just give an indication of violations of the Airbnb js style guide. @ngamulin @jaimels9 does the local version of the algorithm work? I.e. can you run |
Yes, I can run this command without problem in my computer and the program works successfully. Maybe the error is in the cordova part... |
@jaimels9 what did you mean with your comment some time ago regarding
You must turn Bluetooth on before you open the app; if bluetooth is disabled it should give you a small alert telling you to turn bluetooth on. |
@wouterbulten yes, I had the app working in the mobile and the Bluetooth was turned on, but the app said it was disabled. |
@jaimels9 @wouterbulten I managed to solve bluetooth issues by fixing the address of Cordova Bluetooth LE Plugin in config.js (line 59): replace 'com.randdusing.bluetoothle' with 'cordova-plugin-bluetoothle'. As the plugin requires newer cordova versions for Android and iOS, go to mobile folder and run the following commands:
The bluetooth error doesn't appear anymore and the values x, y, z, and heading are changing in phonegap UI running on mobile device. The window in which points are supposed to appear remains blank when i press start button. Is there any other known issue or setting that has to be modified in order to fix it? The local version runs without problems. |
@ngamulin very nice! I knew the original BLE plugin was deprecated, but it should have worked with the original cordova version. Nonetheless, this is a good change. Would you be able to do a pull request? Then I'll review/test it and then merge your changes. Regarding the empty screen: This is probably caused by the device filter. The app filters bluetooth devices (so that you only use your own landmarks). You will probably use other devices names than the default. So you have two options:
Btw, if you want more info about the algorithm itself. There is a paper available here: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7471364 |
thanks @wouterbulten Actually I have first read the article and there got the repository address. Excellent work! I will pull the project and commit changes. |
@wouterbulten As configuration/filter removal didn't work, I tried to go through the code and noticed that that the call of fuction initRadio() in bluetooth.js doesn't initialize the radio. |
It will take a few days before I can fully look in to this and try out the new version of the BLE plugin myself. In the meantime, it seems that the signature of the initialise function has changed. The new signature: bluetoothle.initialize(initializeResult, params); The docs are however inconsistent about this in some parts (the examples still show the 3 parameter version). Following this issue the above should be the new correct one. |
Hello, I have followed all the installation and configuration steps of the app and I am unable to work with this application on my mobile devices. I have tried with an iPhone 5 and with an Android mobile but the "Start" button and the rest of the elements of the interface just doesn't work. Do you know what am I doing wrong? Or do you know why is this error happening? I am not having any error in the Terminal during the execution of the app with PhoneGap or Cordova, and I have tried both ways.
Thank you so much.
The text was updated successfully, but these errors were encountered: