Skip to main content

All Questions

0 votes
0 answers
112 views

Where to place json file inside my flutter iOS plugin

I try to create iOS plugin for flutter. For that I want to use a json file, but I haven't managed to read it yet. I don't know if I've placed my json file correctly in my project : At the root of ios ...
Juliettead's user avatar
1 vote
0 answers
95 views

Flutter plugin not shown on Development Pods

I am trying to edit a flutter plugin code for iOS (Swift). I read in the official documentation that you can edit the iOS plugin code using XCode itself. As mentioned there, I built the code first and ...
Shrijan Regmi's user avatar
1 vote
0 answers
287 views

Accessing DeviceActivity API through Flutter plugin

I am trying to access Apple's the Screen Time API to get to the DeviceActivityData. But man, it's hard! On Android it's just: val usage = Stats.getUsageMap(context, start, end) done. On iOS I have to ...
DerCommodore's user avatar
0 votes
1 answer
381 views

Create a Flutter plugin in swift to export realm data

We have a native iOS app that has a Realm database. Now we have developed a new Flutter app that will substitute the native iOS app. When an user upgrade native iOS app to the new Flutter app, we want ...
Sami Issa's user avatar
  • 1,974
0 votes
1 answer
683 views

Flutter/Swift await sink from synchronous context

I'm trying to make use of an async Swift Library for a Flutter application, however, I cannot await the async Swift. The code structure is the following: ... nfcChannel.setMethodCallHandler({ ...
Alex's user avatar
  • 591
0 votes
1 answer
3k views

Flutter plugin - MethodChannel: .invokeMethod() from native iOS to Flutter never reaches Flutter part

I'm having an issue with Flutter plugin development, especially with invoking MethodChannel from native iOS side to trigger Flutter plugin code. On Android, identical (in terms of logic) code ...
kkaun's user avatar
  • 603
0 votes
2 answers
2k views

Flutter Plugin - Value Of type "xxx" has no member "xxx"

I write a flutter iOS plugin which using Google Machine learning framework 'ML Kit'. The iOS plugin language is swift. Plugin has 3 files. MLKitPlugin.h, MLKitPlugin.m, SwiftMLKitPlugin.swift, these 3 ...
zhouxinle's user avatar
  • 469
7 votes
2 answers
3k views

Where and How to Include File Resources Within IOS component of Flutter Plugin?

Let's say you're writing the IOS component of a Flutter plugin in Swift. You have your MyFlutterPlugin.swift file open in XCode. So that we know what we're talking about the same thing, it's the file ...
Nerdy Bunz's user avatar
  • 7,554
3 votes
1 answer
614 views

Why does Apple payment sheet pop up twice?

Ok, I have this issue 90% of times. The user clicks the CTA button in the app Apple payment button is shown The user subscribes Then it seems everything has gone OK I get no error in the console, ...
Tomas Baran's user avatar
  • 1,993
0 votes
1 answer
421 views

Bundle.main.resourcePath returning nil in my flutter plugin, after working fine previously

I've made a test flutter app that uses a plugin I made that simply retrieves the path of the resources folder in my .app and returns it to my dart code. This works completely fine in the example ...
Letal1s's user avatar
  • 57
1 vote
1 answer
1k views

How do I move/copy a file from cache to the user's documents directory? [Swift, Flutter]

I have downloaded a file in Flutter and using the path_provider package, placed it in the directory I get from getTemporaryDirectory(). Then calling a method using MethodChannels, I am calling the ...
Nabeel Parkar's user avatar
5 votes
0 answers
602 views

"handle" function is not being called in Flutter iOS plugin

We have created a Flutter plugin where iOS code is written in Swift- import UIKit import CooeeSDK public class SwiftCooeePlugin: NSObject, FlutterPlugin { var sdkInstance = RegisterUser.shared ...
Shashank Agrawal's user avatar
2 votes
2 answers
314 views

Custom `UITextField` subclass doesn't appear on the screen

I am developing a flutter plugin. The library that I use with Swift has a UITextField subclass. I cannot show this subclass on the screen. It only appears on the screen when I try it with the ...
TurkC's user avatar
  • 425
2 votes
1 answer
2k views

Cannot find 'present' in scope for Flutter plugin

Currently I am trying to do a plugin to integrate third party native SDK with Flutter and I'm not really familiar with Swift. In the third party SDK, there is a line of code that need to be ...
akifarhan's user avatar
  • 1,200
0 votes
1 answer
3k views

How to use Objective-C framework in Swift without Bridging Header?

I'm developing a Flutter plugin (in Swift) trying to wrap an Obj-C framework. I was able to import the Header files in MyPlugin.h file, but now how do I use the framework without a Bridging Header? I'...
Yaobin Then's user avatar
  • 2,842

15 30 50 per page