Flutter Platform channel: Integrate Android /iOS with Flutter | HINDI | explanation with example

  Рет қаралды 7,650

CreateCode with PRO Coach

CreateCode with PRO Coach

Күн бұрын

Пікірлер
@runaliambavkar5095
@runaliambavkar5095 4 жыл бұрын
This video clarifies flutter.dev documentation really very clear and Simple.
@procoaches
@procoaches 4 жыл бұрын
Thanks for support Runali
@jaiminmodivlogs
@jaiminmodivlogs Жыл бұрын
Can We use Android XML code in Flutter to also run it in iOS? In case of View its okay.
@kevalprajapati9074
@kevalprajapati9074 4 жыл бұрын
Hey Thanks you.I cam from Quora.
@procoaches
@procoaches 4 жыл бұрын
Welcome!
@syedsufiyan2620
@syedsufiyan2620 Жыл бұрын
Hi can you pls help me with how to put JSON data in Android native code and access/get it from Flutter side?
@cynido
@cynido 4 жыл бұрын
I have an android app, and i dont know much flutter, how do i implement the my whole android app inside(or using) flutter
@procoaches
@procoaches 4 жыл бұрын
Hi Shiva, its a good question. You can open a activity in flutter, also you can write android code in flutter. Given that, you can add your whole app in flutter and have it running. Let me know if you want detailed information on this
@cynido
@cynido 4 жыл бұрын
@@procoaches definitely bro, make a video about it if its possible.
@vishalmourya1851
@vishalmourya1851 3 жыл бұрын
MethodChannel(flutterEngine.dartExecutor, methodChannel).setMethodCallHandler { call, result ->if(call.method.equals("getUserName")) { result.success( result : "Vishal Mourya - The legendary Coder" ) } } I have written this code in MainActivity.kt file but i am getting error on call,result in above code like " Cannot infer a type for this parameter. Please specify it explicitly." plz can you help me, Thanks in advance
@sameerchorge7726
@sameerchorge7726 4 жыл бұрын
Hello , I have one doubt related to the method channel, I wanted to implement Method Channel which runs sqflite LocalDatabase operations in background so i followed one example here's the link github.com/prefanatic/sqflite_isolate_bug Using this example i'm able to run sqlite crud operations in background which prevents my app from freezing and lag, But i want callback after background function is completed , But as per this example i did not get any callback from method channel , I also tried setting the SharedPreferences but i cannot access the sharedPreferences in the code which was written to run in background
@procoaches
@procoaches 4 жыл бұрын
I will help you don't worry
@sameerchorge7726
@sameerchorge7726 4 жыл бұрын
Thanks , I need a callback but i don't know how i can get the callback after my background function completed its execution
@procoaches
@procoaches 4 жыл бұрын
@@sameerchorge7726 Hey, I looked at your code. You are passing null instead of some value in your ' result.success(null);', That is why you are not getting anything as a result. Also, there is a reverse function where you can call flutter functions through android. You might want that. Have a look at flutter documentation. Let me know what you got.
@sameerchorge7726
@sameerchorge7726 4 жыл бұрын
@@procoaches I sent e-mail on your provided business email-Id, with brief description about issue.
@vasubansal4-yearb.tech.ele193
@vasubansal4-yearb.tech.ele193 4 жыл бұрын
I have Used A Method Channel of Sending SMS but I implements sqflite code in dart but when i run the code its gives me Exception [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider) I want to run my sqflite code in dart but it says to me to create channel of this so can i Solve this issue
@procoaches
@procoaches 4 жыл бұрын
Hi, it is showing error of a plugin path_provider. Please check if it is initialized property.
@byteheight6726
@byteheight6726 Жыл бұрын
Tutorial is good but voice too low
@adilmobologics358
@adilmobologics358 2 жыл бұрын
hey, can we send something to the native code through the platform channel? Like I want to convert the pdf to word. And the link for pdf will come from API, but flutter SDK doesn't support conversion from pdf to word. And it is supported in native. So can i send that link to native through the platform channel?
@procoaches
@procoaches 2 жыл бұрын
Hey Adil, Yes you can send the link/path to native and native can do the conversion. After conversion, native will send the response back yo you
@adilmobologics358
@adilmobologics358 Жыл бұрын
@@procoaches Thank you brother❤
@razaabbas861
@razaabbas861 4 жыл бұрын
Hello can we use zoom sdk same way in flutter app ?
@procoaches
@procoaches 4 жыл бұрын
Yes you can. Use this for your reference github.com/decodedhealth/flutter_zoom_plugin
@razaabbas861
@razaabbas861 4 жыл бұрын
@@procoaches yes i tested it .. it just joins the meeting ... i need to use Zoom Video Webinars ? do u think it is possible to implement it by using this plugin ?
@procoaches
@procoaches 4 жыл бұрын
@@razaabbas861 I think that is in development so you might not get all features into that. But since it is open source also you know how to implement Platform channel so you can add that webinar feature into that. Note you can only add features that are provided in Zoom android/ios SDK .
@razaabbas861
@razaabbas861 4 жыл бұрын
@@procoaches Okay Thanks for your response :)
@kevalprajapati9074
@kevalprajapati9074 4 жыл бұрын
But what if i don't know Dart.I just want to use Java. Please help
@procoaches
@procoaches 4 жыл бұрын
You just can't use java and build flutter app
@procoaches
@procoaches 4 жыл бұрын
Dart is super easy language and it is similar to java. You can learn it in a week. Give it a shot
@kevalprajapati9074
@kevalprajapati9074 4 жыл бұрын
@@procoaches Thank you for kind reply, But actually i am now Learning Java.Its my first language.So it would take time to first learn Java Completely and then I would go to that next. So Should i go to Dart next or C or Python? please i seek reply
@procoaches
@procoaches 4 жыл бұрын
@@kevalprajapati9074 If you want to go in cross platform app development then go for flutter/dart. C and Python have their own path. So choose your path first then technology. I guess this may help you
@kevalprajapati9074
@kevalprajapati9074 4 жыл бұрын
@@procoaches oh you awake still? me too.I will first secure my placement and them go for more of my interest.:)
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
I want to use this method in MyApplication class
@procoaches
@procoaches 3 жыл бұрын
Can you elaborate your question?
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
@@procoaches yes, I have integrated the third party library in Android ,library provide me one method with data ,who data came then will share on flutter text view?
@procoaches
@procoaches 3 жыл бұрын
Ohhk so you need to send data from android to flutter. For that you have to write a listener in flutter that will listen to method calls from android(opposite of this video). Let me know if you want a video on this
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
@@procoaches Yes,I need this video
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
this code is not work override fun onNotificationOpened(data: String?) { Log.e("AppLink", data?.toString()) flutterEngine = FlutterEngine(this) GeneratedPluginRegistrant.registerWith(FlutterEngine(this)) MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result -> if (call.method == "getBatteryLevel") { result.success(200); } else { io.flutter.Log.e("user_debug", "getBatteryLevel is not method of called") result.notImplemented() } }
@AmitGupta-xc9gq
@AmitGupta-xc9gq 3 жыл бұрын
Please help me
Learn to use Isolates in Flutter | Simplified
10:28
CodeX
Рет қаралды 32 М.
Rethinking Dart interoperability with Android
16:02
Flutter
Рет қаралды 16 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,7 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 136 МЛН
Flutter for iOS developers
13:43
Flutter
Рет қаралды 119 М.
MethodChannel in Flutter Part 7 | Hindi
23:36
itsanilg
Рет қаралды 1,6 М.
Using Native Code with Flutter
1:03:43
Andy Julow
Рет қаралды 33 М.
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 99 М.
Flutter Native Platform Integration in 2023
17:30
Snippet Coder
Рет қаралды 1,1 М.
How to call platform specific code in Flutter - Programming Addict
14:26
Programming Addict
Рет қаралды 25 М.
Something is wrong with ISPs in India 🇮🇳
13:17
Mehul - Codedamn
Рет қаралды 23 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,7 МЛН