OpenFlutter / flutter_share_me

Flutter Plugin for sharing contents to social media. You can use it share to Facebook , WhatsApp , Twitter And System Share UI. Support Url and Text.
https://github.com/lizhuoyuan
Apache License 2.0
151 stars 145 forks source link

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

Open ComplexCarbos opened 2 years ago

ComplexCarbos commented 2 years ago

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:

`LSApplicationQueriesSchemes

instagram` I also tried `instagram://app`, 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)