apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 986 forks source link

Trouble to open Instagram App #1409

Closed FranGhe closed 2 months ago

FranGhe commented 2 months ago

I'm developing an app by cordova using cordova-plugin-x-socialsharing to share contents to socials. All work fine for many socials, but not for Instagram. I use this function but I'm strongly sure that the problem is not here but on backend

window.plugins.socialsharing.shareViaInstagram(
    'Text to share', //textToShare, 
    'https://www.google.nl/images/srpr/logo4w.png',
    function(result)    {console.log("Sharing success");}, 
    function(errorMsg)  {console.log("Sharing failed with message: " + errorMsg);}
);

info.plist is configured as:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fb</string>
    <string>facebook</string>
    <string>facebook-stories</string>
    <string>mailto</string>
    <string>twitter</string>
    <string>instagram-stories</string>
    <string>instagram</string>
    <string>whatsapp</string>
</array>

My xcode console write these messages:

Only support loading options for CKShare and SWY types.

error fetching item for URL:file:///private/var/mobile/Containers/Data/Application/1FB7A9D6-4D57-418E-92D2-4A897DEF5747/tmp/instagram.igo : (null)

error fetching file provider domain for URL:file:///private/var/mobile/Containers/Data/Application/1FB7A9D6-4D57-418E-92D2-4A897DEF5747/tmp/instagram.igo : (null)

Collaboration: error loading metadata for documentURL:file:///private/var/mobile/Containers/Data/Application/1FB7A9D6-4D57-418E-92D2-4A897DEF5747/tmp/instagram.igo error:Error Domain=NSFileProviderInternalErrorDomain Code=0 "No valid file provider found from URL file:///private/var/mobile/Containers/Data/Application/1FB7A9D6-4D57-418E-92D2-4A897DEF5747/tmp/instagram.igo." UserInfo={NSLocalizedDescription=No valid file provider found from URL file:///private/var/mobile/Containers/Data/Application/1FB7A9D6-4D57-418E-92D2-4A897DEF5747/tmp/instagram.igo.}

Any suggestion?

dpogue commented 2 months ago

This appears to be a problem with cordova-plugin-x-socialsharing, so please report the bug on the plugin's repository.

FranGhe commented 2 months ago

... done, but anyone reply and seems that is a new trouble on ios?! https://www.google.com/search?q=Only+support+loading+options+for+CKShare+and+SWY+types&oq=Only+support+loading+options+for+CKShare+and+SWY+types&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIICAEQRRgnGDvSAQgxNDk1ajBqN6gCALACAA&sourceid=chrome&ie=UTF-8

any suggestion is appreciate...