Flutter - Make Phone Call without UrlLauncher - android

I'm building an application using flutter and I want to be able to integrate with the phone to make calls.
In android I believe I'd ask for the REQUEST_PHONE_CALL permission.
Using flutter, I found the this plugin. Unfortunately it doesn't support iOS and the android implementation is still rather buggy.
The only alternative I found to achieve this is to use this, but that doesn't quite have the same functionality, so I want to find other alternatives.
Any tips? Thanks in advance!

I think the best way is to write it in the native code. I mean the code to call a number using platform channels
[https://flutter.io/platform-channels/][1]
I didn't test this and didn't try it. when I do I will update my answer :)

Related

Dynamically alter App Icon on iOS and Android

I'm fairly new to Flutter but have found that it fits most of my design needs for iOS and Android. But, I've been unable to find a way to dynamically change the app icon.
In Swift, you were able to change the app icon from inside the actual app allowing for some pretty neat customization. A Medium article discussed this back when it first came out for iOS 10.3.
Does anybody know of any way to do this in Flutter, or will I need to make a custom package to do this?
https://medium.com/flutter-community/programatically-change-ios-app-icon-in-flutter-c9e84bc541a2
Maybe this would help. Here's a plugin too.
https://pub.dev/packages/flutter_dynamic_icon
I don't believe this is currently supported, and probably won't be by the flutter team although someone could theoretically write a plugin to do it. However, most of the configuration needs to be done natively anyways, so I don't know how much value the plugin would provide other than doing the call to setAlternateIconName.
What you should do is write the code directly in iOS as you would for a native iOS app, but expose a MethodChannel to the dart side which would allow you to control it from flutter.

A few questions about webRTC on android

I have a few questions about webRTC on android. I can say I'm new about android and webRTC but I can also say I made tooo much research about webRTC on android. But still have a few questions. (some of them because of I'm new, and some of them because of I'm okey but not fully)
I'm trying to make an android app which is going to communicate between web browser (first choice is chrome) and android device directly (p2p we can say). So I made too much research and I found webRTC is good for me. Do you advise me something other or is it okey you think? (also I am going to code a plugin for chrome).
Nearly every document says 'android is not directly support webRTC'. So I need something to provide me webRTC on android. What it is? Is it native android that I have to code? Is it native (NDK) library that I have to include my project? Or is it a java lib? Or should I go for cordova/crosswalk or sth like that? I researched all but didn't find something can help me. Yeah there are documents about it but not enough..
Some of documents says, I need chromium. But why and how? They show me lots of linux terminal commands and even there is no a line java or C or C++ code. Even some terminal commands and links that they give is not working.
I read/found/tried these things as a result of my research:
Apache cordova
Crosswalk
http://www.webrtc.org/
https://github.com/webrtc
http://webrtc.github.io/samples/
http://simonguest.com/2013/08/06/bui...t-for-android/
http://orcaman.blogspot.com.tr/2014/...tc-source.html
https://github.com/pchab/ProjectRTC
https://github.com/pchab/AndroidRTC
and something more..
in a nutshell I need help. Please give me your hand. Thank you. (because I'm really very helpless and tried to do my best)
Thank you.
As others have suggested, I recommend checking out g.co/webrtc. As I understand it, your goal is to make Android connect to a web browser using WebRTC. There are two (three) ways you can achieve that.
You can just use Chrome, Opera or Firefox for Android. All these browsers support WebRTC, and it allows you to use the same code for your web app, as for your Android app. With the new Add to homescreen support, as well as support for push notifications from web apps on Android, this could be a very good solution for you.
You can use the Android native WebRTC library, available from WebRTC.org. As mentioned in my article, I recommend using the pristine.io compiled library, available from MavenCentral.
If you can limit your application to Lollipop, you can use WebView, which support WebRTC now iirc. I don't know much about it though.
And the best resource for getting help is discuss-webrtc. It's a lot more active than StackOverflow.

how to integrate VoIP in android application?

I want to make free calling application through net to mobile or land line call using VoIP. I have not much knowledge of VoIP. I get inspiration from using some application like line,Skype,etc. how can I achieve domestic and international call using VoIP in android application. I search lot about but I cannot get direct and easy to understand resource to get this task. so if any one have any idea or resource then most well come to achieve this task of my application.
You can use WebRTC,and here are compiling steps Getting Started, there is an working example project, WebRTCDemo for Android, where you can check how it's working. I used it in the real program, not just googled and answered, and it works perfectly well, also has STUN, TURN support.
You may use the Android SIP API to implement VoIP : http://developer.android.com/guide/topics/connectivity/sip.html
Here is a great tutorial : http://www.basic4ppc.com/android/forum/threads/android-sip-voip-tutorial.13088/
If you want to use 3rd party libraries,this one is good : http://www.sipdroid.org/
You can look at CSipSimple source code

Can I use Lazarus Pascal to build for iOS AND Android

I would like to know:
If it's possible to use Lazarus (Pascal) for both Android and iOS development.
If the answer seems positive, do I need a third-party SDK/API or package to do this?
Thanks!
Android: See answer from Nic Strong.
iOS (iPhone/iPad): Check google and find this result.
I am almost certain the answer is no.
EDIT: Looks like I was wrong. See http://wiki.lazarus.freepascal.org/Android_Programming
The answer is yes. For Ios Lazurs uses objectivepascal which a pascal extension that allows integration with objective-c much like objective-c++.
However it is necessary to do some work to set-up the environment and you need an Apple computer to build test and debug.
This is the best entry point for iOS development:
http://objectivepascal.com/

How to write android code in titanium

I had been working on android since a little long. Now I am wondering about titanium. Is it possible to write android (java) code in titanium app since the app is build in titanium? If yes then how? Actually I am having problem dealing with push notification for android in titanium. So I got a solution to build complete app in titanium and then if possible use android code in app to deal with push notification. How? Please do response as quickly as possible. Thanks in advance.
To answer your question directly, you will need to develop a native Android extension to call Java code via JavaScript in a Titanium application.
Rai
You should be checking out the docs Here tells you all you need to know
Hope it helps
Frank
yes it is possible but remember that the titanium tools lag behind the official android ones. Documentation is poor and often wrong, code is laggy and the resulting .apk are much bigger.
Why are you thinking of using Titanium? For cross-compatibility?
If you are thinking about that you have multiple possible ways:
1) Build a minimum common denominator, like titanium, but better: Write a core application for both android and iPhone so that it will be fast and light on memory, with a modified broswer to show your content. This way the interfaces will be much easier and you'll have to write the content just once.
Still you will be able to access low level hardware, like GPS, compass, gyroscope.... easily without consuming too much battery (unlike with titanium) as needed.
2) Find an existing minimum common denominator: Javascript work both on iPhone and Android.
3) There are many other options (Adobe air, python, custom scripting, mobile web site, ...) but I think that the cons outweigh greatly the pros.

Categories

Resources