flutter_share_me icon indicating copy to clipboard operation
flutter_share_me copied to clipboard

-canOpenURL: failed for URL: "instagram://app"

Open ComplexCarbos opened this issue 4 years ago • 0 comments

I'm having a heck of time with the instagram share function on iOS. Works fine for me on Android.

When I attempt to share on iOS, I get the following error

-canOpenURL: failed for URL: "instagram://app" - error: "This app is not allowed to query for scheme instagram"

I do have instagram in plist, as the example app shows:

<key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string>

I also tried <string>instagram://app</string>, as suggested by Facebook documentation, but get the same error.

I am using a real device and instagram is installed on that device.

I attempted to reproduce the issue with the example app. While I can compile and run the example on Android, it fails to build for me on iOS:

$ flutter build ios
Expected ios/Runner.xcodeproj/project.pbxproj but this file is missing.

Application not configured for iOS

$ ls ./Runner
AppDelegate.swift               Base.lproj                      GeneratedPluginRegistrant.m     Runner-Bridging-Header.h
Assets.xcassets                 GeneratedPluginRegistrant.h     Info.plist

$ ls ./Runner.xcodeproj/
project.xcworkspace     xcshareddata
Taylors-MBP:ios taylorgarabedian$ 

While its likely my problem is due to ignorance with iOS, I thought it possible this is a real. issue.

My test environment is using Xcode Version 13.0 (13A233)

ComplexCarbos avatar Oct 06 '21 20:10 ComplexCarbos