Questions tagged [flutter-method-channel]

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.

146 questions
0
votes
1 answer

Is there any way to implement a custom lock screen using flutter?

I'm implementing an android app that can change user's lock screen(not lock screen in app), for example, an user can change the position of clock in lock screen from top to bottom or else. Moreover, I want to render some custom widgets, which is…
0
votes
0 answers

Trying to refresh widget timeline using flutter method channels

I haver a flutter project in which I have created a widget which I need to update if data is changed in app, hence I am using flutter method channel to call a method defined in Swiftui appDelegate file which will reload timeline of widget, however…
0
votes
0 answers

Exoplayer controls not working with Android 13 in Flutter

I have a native player, Exoplayer to be specific and I'm taking its view to flutter via method channel but I'm encountering an issue where the player works perfectly fine with lower versions of Android like 11 but in Android 13 the controls of the…
0
votes
1 answer

There was a repetitive construction, I separated it as a method, but I had a problem with the button part.Can you help me?

I'm new to flutter. There was a repetitive construction, I separated it as a method, but I had a problem with the button part. Can you help me? TextButton buildSportSection(String sport_screen,String sport_name,String name) { return TextButton( …
fatma
  • 1
  • 1
0
votes
0 answers

MissingPluginException('No implementation found for method $method on channel $name');

I am creating flutter package , when I am testing on test project with direct call to android method it works, but when I am trying it with flutter package example project got this below error. MissingPluginException('No implementation found for…
0
votes
1 answer

Reboot mobile programmatically

Hi team i created flutter project and my task is if i press the restart button mobile device need to got restarted but if i press the button it wont works got error in console error -> either user 10478 nor current process has…
Manoj
  • 1
  • 3
0
votes
0 answers

How can I use a callback method provided by a third-party native package in Flutter using a platform channel?

I'm trying to use a method provided by a third-party package in Flutter platform channe;. So this is the Kotlin method public final var logD: ((String?, String?, Int, String?) → Unit)? Flutter MainActivity.kt if (call.method == "getLogs") { …
0
votes
0 answers

Flutter Spotify iOS | MissingPluginException(No implementation found for method listen on channel player_context_subscription)

I am using a free Spotify account for development purposes only. I am trying to use this to connect my Flutter iOS application with Spotify. One thing to mention in advance is that the whole code I did is working fine on Android perfectly but not on…
Muhammad Hassan
  • 1,224
  • 5
  • 31
  • 51
0
votes
0 answers

Flutter App's Scene Delegate, How to modify

I'm developing a Flutter App, and i need to write some native code to implement a third party sdk. SDK's documentation says i need to use app's navigation controller to initialize sdk. I need to give the app's navigation controller to a method as…
0
votes
0 answers

MissingPluginException(No implementation found for method on channel com.amazonaws.services.chime.flutterDemo.methodChannel)

I was trying to integrate the Amazon Chime demo app that was provided by AWS on our project. After getting everything from the demo app provided by AWS to our project, I was getting an error "MissingPluginException(No implementation found for method…
Konark Shivam
  • 160
  • 1
  • 7
0
votes
0 answers

out of memory E/DartVM ( 2745): Exhausted heap space, trying to allocate 64 bytes

// ignore_for_file: prefer_const_constructors, file_names, prefer_const_literals_to_create_immutables, use_full_hex_values_for_flutter_colors this is the code `import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class…
0
votes
0 answers

Flutter plugin to write data back to native through a `IOSink`?

There are plenty of plugins demonstrating reading native data via dart streams. How to do the reverse, writing data back to native via IOSink? something like: var ioSink = await _nativePlugin.writeSomething(); // Use the sink like writing a dart…
swlv
  • 73
  • 5
0
votes
0 answers

Send a local notification when user loses Internet connection in flutter with method channel in java even if app is terminated / killed

I am working with an application in flutter in which I need to send local notification when user losses Internet connection. It works when app is open or in foreground but it doesn't work when app is terminated/killed. Or also app is crashed in…
0
votes
0 answers

background thread support for flutter windows plugins

There's a section Executing channel handlers on background threads in official flutter docs covering how to execute plugin handlers in background threads. But it only covers languages used in mac/ios/android. There's mentioned on c/c++ or win32 API.…
swlv
  • 73
  • 5
0
votes
1 answer

when running the program found a problem in the method_channel_firebase.dart file, how to handle it?

When I run my application suddenly this problem appears => Exception has occurred. FirebaseException ([core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()) Error image I have tried several things and still get…