I have a CRUD app built with flutter. Now I want to use Swift to create a widget to show the data at home screen.
I use json to store the data. In the following code if I replace jsonURL with mock json string, everything works well. So I think the problem comes from accessing the local file.
let sharedContainerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.app.identifier")
let jsonURL = sharedContainerURL?.appendingPathComponent("things.json")
And this is how I create the json file with Dart.
Future<String> get _localPath async {
final directory = await getApplicationDocumentsDirectory();
return directory.path;
}
Future<File> get _localFile async {
final path = await _localPath;
return File('$path/$storageName.json');
}
In a nutshell the problem is that the widget cannot access the json file I created in the app storage. Everything works well except the widget.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm building app for iOS with flutter and I encountered some problem implementing the IAP function.
What I Encountered
I made a purchase in simulator. The product list was load successfully, the storekit poped up, and I finished purchase successfully as well. But I cannot see transaction detail in the Storekit Manager in xcode, neither can I see notification send from Apple.
I'm sure I configured the server URL in App Store Connect, and both chose V2.
I'm sure I enabled Storekit in Edit Scheme, and sync with App Store Connect
My server can receive Test Server Notification.
What I Expected
I want to receive the notification from Apple when make purchase from both develpment(simulator) and production(physical device). Otherwise I cannot verify the user's purchase.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store
App Store Connect
StoreKit
StoreKit Test