-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS not working, No data is parse into app #81
Comments
@simranKa I have try it but the data i receive still null, below is example code i used in ShareHandlerIosViewController, and Build Phases in my project // import UIKit @available(iOS 14.0, *)
} Build phases : Below is my record video: WhatsApp.Video.2024-01-17.at.16.03.59.mp4Is there something i missing? Thank you @simranKa |
|
@aniketcodebase It has nothing to do with the loadIds, |
in my case, actual problem was a mismatch (case sensitive) between the group-id (autogenerated after enabling the app-groups ) and bundle id
I had to correct my group-id to group.some.something.myTestApp
|
@AimanKyo97 I explained step by step how to setup fo Xcode 16 and IOS 18, the example app works right out the box by following instructions here |
I did follow the documentation but its not working for me in iOS, can help me check what i doing wrong?
The app can launch when being shared but no data is parse in the app.
iOS Device iPhone:
Version: 17.2.1
Xcode Version:
15.1
In info.plis
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>XXX</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLSchemes</key> <array> <string>ShareMedia-$(PRODUCT_BUNDLE_IDENTIFIER)</string> </array> </dict> </array>
In Podfile
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
# share_handler addition start
target 'Share Extension' do
inherit! :search_paths
pod "share_handler_ios_models", :path => ".symlinks/plugins/share_handler_ios/ios/Models"
end
end
In Folder Share Extension->ShareViewController.swift
import share_handler_ios_models
@available(iOSApplicationExtension 14.0, *)
class ShareViewController: ShareHandlerIosViewController {}
Inside ShareHandlerIosViewController {}
//
// ShareHandlerIosViewController.swift
// Pods
//
// Created by Josh Juncker on 7/7/22.
//
import UIKit
import Social
import MobileCoreServices
import Photos
import Intents
import Contacts
@available(iOS 14.0, *)
@available(iOSApplicationExtension 14.0, *)
open class ShareHandlerIosViewController: UIViewController {
static var hostAppBundleIdentifier = "com.xxx.xxx"
static var appGroupId = "group.com.xxx.xxx"
let sharedKey = "ShareKey"
var sharedText: [String] = []
let imageContentType = UTType.image.identifier
let movieContentType = UTType.movie.identifier
let textContentType = UTType.text.identifier
let urlContentType = UTType.url.identifier
let fileURLType = UTType.fileURL.identifier
let dataContentType = UTType.data.identifier
var sharedAttachments: [SharedAttachment] = []
lazy var userDefaults: UserDefaults = {
return UserDefaults(suiteName: ShareHandlerIosViewController.appGroupId)!
}()
}`
Part 1 cycle:
Part 2 cycle:
@JoshJuncker @czredhat @sidlatau @daviddomkar @martingeorgiu
Thank you in advanced.
The text was updated successfully, but these errors were encountered: