I am trying to use Ionic Native BLE on Ionic 3, but none of its functions return any callbacks, not even when subscribed. I am testing this example on a 7.0 android device. I am not forgetting to turn on the location and the bluetooth.
First, I thought that the problem was in the Ionic Native itself, but I tested the File functions and it worked fine, so I am lost. It has been a month now since I have been trying everything to make this work and nothing works.
I could manage to solve it, at last. All I had to do was to deploy the apk using this. I was using the debug version of the apk and it never called the BLE options. I wish that this could work for the debug version as well.
Related
I learned dart and I want to access flutter, but I was surprised by android studio because my computer is weak.so,can i create android and apple applications with flutter without android emulator , with just flutter pack and vs code and browser
If you only work with simple UI widgets yes you can use the embedded development tools within the browser to get the dimensions of the device you working on like so
But, most of the cases there are libraries work differently according to the platform so it might work with the web but not with android or iphone and you can not test it without the actual device.
And yes VS code is a very good with flutter and might be better than android studio but it won`t make the difference you expected, in my opinion what make it faster is to use an actual device for testing and not using the emulator, also don't use a lot of application along side with the IDE, like if you are using spotify, listening to youtube video or following a tutorial just use your phone because browsers as bad as emulator.
You can use a text editor and the command line tools to build flutter apps and test them on a real device.
I wouldn't recommend it though.
You could give VSCode a try as it is a more lightweight environment.
Your computer should handle testing on a real device, which requires only a USB cable. Accessing the application in the browser would probably eat a lot more memory. You can read about how to use the real device with flutter here.
I want to add agora_rtc_engine plugin into my app , but I'm facing a problem with it . When i debugging the app on real device it is working and when i installing it on another device it doesn't work and show me that on the device screen
agora video call flutter keep stopping
I'm using the agora quick start example https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart
can any one know the wrong with it ?
It happens to me when I rewrite code or copy lib. But when I download examples like this one https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart everything works.
Temporary you can build your project on this one, just changing name and reinstalling it on your phone.
I have trouble in setting flutter and running an app on a real device in vs code. I want to run my apps on physical device and I do not want to use emulators. Is it going to be possible?
Yes, this is very possible. In fact, many flutter developers use physical devices in order to test features like Maps,Camera, etc. I always recommend following a video tutorial to set up environments for development. But you should try the following:
First of all, I recommend the flutter docs https://flutter.dev/docs/development/tools/vs-code to set up vscode.
After this, all you need does not have anything to do with VSCode any longer. You should check https://flutter.dev/docs/get-started/install/windows to connect a physical device.
Im not sure if you have already setup flutter on your machine to start with. If you haven't use this link how to install flutter
the next part is easy just install dart and flutter extensions in vscode.
walla!
I'm a uni student who has to create a React Native mobile application for an assignment. Initially, we were using University computers for our coding and using Android Studio emulators to test our code once it was written to make sure it works on an android device.
Unfortunately due to the current epidemic, my University has closed all facilities including their 24 hour library which myself and coursemates were using to complete this assignment. This means that all of our assignment work must now be completed on personal computers. My personal laptop doesn't seem to work well with Android Studio, I am assuming it is due to the ageing hardware. I cannot get an emulator to run.
I would like to know if there is a way to use an online emulator or something of the sort to test the code I have written to make sure it actually works. I am aware of expo but since I am using the React Native CLI I don't think I am able to use Expo for an emulator. Is there a way that I can still use the Expo emulator even though this React project is not using Expo CLI?
Unfortunately I also cannot use a personal device as I do not own an Android phone.
Any advice would be greatly appreciated. I have made my course tutors aware of my circumstances and was informed that I can apply for exceptional factors to be taken into consideration when marking my work. However I would much rather complete the work to the best of my ability if possible without needing to apply for the above.
The only solution I know is the genymotion, it should be a bit easier to run on less powerful hardware but take no word from me because I've never used it. Otherwise if you know someone with a more powerful pc/laptop you can clone your project from git to that pc, connect to that pc with teamviewer or remote desktop (vpn needed) and run it from there.
There is another solution at last after making a build for you app you can try running the app on BrowserStack a cloud testing platform. But it's gonna be tough if you have a bug or something. Or you can use Genymotion it runs on a less powerful hardware
I'm using the Ionic Native BLE plugin to scan and connect to bluetooth devices. I'm able to get the plugin to list available devices, but I'm unable to get it to show already paired devices. This is the plugin I'm using:
https://ionicframework.com/docs/native/ble/
After searching through the documentation and finding examples, I've come to the conclusion that using this plugin to list already paired devices is just not possible. Is this the correct conclusion?
If so, do you know of any other plugins I could use to facilitate the looking up of paired bluetooth devices? I'm using Ionic 3.
We have been working on a simple BLE button and had the same issues. The only way we found out how to do this was to disconnect the button on app close (which the latest BLE version seems to do). We save the device ID (localStorage) when a user connects a device and then when the app starts up again the user has to wake up the device and the app starts scanning on startup. If the saved device id is the the id as your locally saved id it connects automatically.
If you, or anyone, wants to try other plugin, you can also try this: https://ionicframework.com/docs/v3/native/bluetoothle/
I first started using the same plugin that you use. After I encountered some difficult issues due to the strange operations of some bluetooth devices, I tried the second plugin and I found it to be better. That was three years ago and I can't say how the other plugin has improved in the present. One thing I like with the bluetoothle plugin is that it has many methods available and that gives more control to the bluetooth operations. You can look at these methods in its repo:
https://github.com/randdusing/cordova-plugin-bluetoothle