Flutter uses a flexible system that allows you to call platform-specific APIs whether available in Kotlin or Java code on Android, or in Swift or Objective-C code on iOS. A named channel for communicating with platform plugins using asynchronous method calls.
Questions tagged [flutter-method-channel]
146 questions
0
votes
0 answers
How can communicate between my Android module and Flutter Module?
Currently, I have integrated flutter in my existing Android Module using Flutter cached Engine.
Is there a way that I can pass the data as we do in android using Bundles

Rishabh Chandaliya Jain
- 178
- 1
- 13
0
votes
1 answer
After callback from native code redirection issue in dart file flutter
i am done with communication between flutter to native code using MethodChannel. Its bridge between flutter to native done but when i try to redirection of Native Screen to Flutter screen its not redirect. I am using Navigator push method to…

Maulik p
- 26
- 1
- 2
0
votes
0 answers
Flutter / Kotlin method channel file delete fails
I have a flutter application that fetches images from internal storage, the permission for read/write are already handled using storage_path plugin in flutter.
Also write permission is given at AndroidManifest.xml file

suranju
- 25
- 7
0
votes
0 answers
Can method channel be handled in dart itself
I'm new to flutter so, please bear with me if this is a novice.
Is there a way to add handler for Method channel calls in dart code?
The samples and demo I referred to online all use the method channel to add handlers in native platforms. But none…

Nikhileshwar
- 1,666
- 1
- 11
- 26
0
votes
0 answers
Unable to get data from native android to flutter using platform channel?
it prints the following to the console
I/System.out: [{file_path=/storage/emulated/0/WhatsApp/Media/WhatsApp Audio/AUD-20181028-WA0004.mp3, file_name=AUD-20181028-WA0004.mp3}, {file_path=/storage/emulated/0/WhatsApp/Media/WhatsApp…

Dubey sai vithal teja
- 43
- 1
- 10
0
votes
0 answers
createState mathod is not working in StatefulWidget in flutter.... it shows the following error
there createState mehod is not working..
[class MysignupPage extends StatefulWidget {
const MysignupPage({ Key key }) : super(key: key);
@override
_MysignupPageState createState() => _MysignupPageState();
}
class _MysignupPageState extends…
0
votes
2 answers
Flutter method channel error. { Unhandled Exception: MissingPluginException(No implementation found for method getBatteryLevel on channel battery) }
so i followed everthing from 'https://flutter.dev/docs/development/platform-integration/platform-channels?tab=android-channel-java-tab' but when I click the floating button in my device this error is…

Mitiksh
- 1
- 1
- 1
0
votes
1 answer
How to access js file function from dart file for the mobile application flutter?
I want to access the function which I have defined in js file and I need to access that function from my dart file,
I have followed the following way for the access, but when I am trying to access that function from dart file for the web, it's…

Harsh Panchal
- 826
- 6
- 16
0
votes
1 answer
Exiting native Android activity on Flutter requires two back presses
I have managed to implement a native Android Activity on Flutter. The code looks like this:
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class Communication extends StatefulWidget {
@override
…

YU No
- 69
- 1
- 7
-1
votes
1 answer
Flutter is not launching dynamic URLs that are being received as response from API
I have been trying to launch a URL insder the flutter app. I am using url_launcher but am unable to launch the URL. The URL that I am receiving is a response from an API.
If I am copying the response and sending it statically, it's working, but when…

Rishabh
- 29
- 3
-1
votes
1 answer
How can I Integrate native SDK in flutter?
I have to integrate native payment gateway in both android and iOS, how can I achieve this in flutter method channel? Any proper documentation for getting result from SDK after integration part?

afsal.an
- 499
- 2
- 6
- 13