Thursday, January 11, 2024
HomeiOS DevelopmentFlutter - Unable to get intent for international urls in ios

Flutter – Unable to get intent for international urls in ios


I’m presently growing an Flutter iOS utility containing a Share extension.

When making an attempt to share any file from Information getting app in share tray however not getting app when making an attempt to share web site urls from safari or youtube hyperlinks from YouTube.

I’ve adopted all steps for iOS from : https://pub.dev/packages/share_handler and efficiently run the code.
Step 1 : xCode -> File -> New -> Goal -> chosen Share Extension from Record and named as “Share Extension”
Step 2 : Share Extension/data.plis
<key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>IntentsSupported</key> <array> <string>INSendMessageIntent</string> </array <key>NSExtensionActivationRule</key> <string>SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( $extensionItem.attachments, $attachment, ( ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.file-url" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.picture" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.textual content" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.film" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" ) ).@rely > 0 ).@rely > 0 </string> <key>PHSupportedMediaTypes</key> <array> <string>Video</string> <string>Picture</string> </array> </dict> <key>NSExtensionMainStoryboard</key> <string>MainInterface</string> <key>NSExtensionPointIdentifier</key> <string>com.apple.share-services</string> </dict> </dict> </plist>
Step 3 : Runner/data.plist
<key>NSPhotoLibraryUsageDescription</key> <string>To add images, please permit permission to entry your picture library.</string> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLSchemes</key> <array> <string>ShareMedia</string> </array> </dict> </array>
**Step 4 **: added the next code projectroot/ios/Podfile
`goal ‘Runner’ do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(FILE))

goal ‘ShareExtension’ do
inherit! :search_paths
pod “share_handler_ios_models”, :path => “.symlinks/plugins/share_handler_ios/ios/Fashions”
finish

finish`



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments