appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

AppinioSocialShare().shareToTwitter #95

Closed faturah9 closed 1 year ago

faturah9 commented 1 year ago

I tried AppinioSocialShare().shareToTwitter

in the emulator and in the emulator, there is no twitter application installed, why does it error?

image
khanmujeeb687 commented 1 year ago

Hey @faturah9 , you are supposed to have the twitter app installed to share a file to twitter. otherwise, this error will occur.

faturah9 commented 1 year ago

Hey @faturah9 , you are supposed to have the twitter app installed to share a file to twitter. otherwise, this error will occur.

thanks for your response, but What if the user doesn't have Twitter installed on their device? Will it be a force close?

khanmujeeb687 commented 1 year ago

Hey @faturah9 , you are supposed to have the twitter app installed to share a file to twitter. otherwise, this error will occur.

thanks for your response, but What if the user doesn't have Twitter installed on their device? Will it be a force close?

No this will not force close the app, Because we have try catch on every platform-specific implementation. And to avoid calling apps that are not installed we have getInstalledApps method to check which apps are installed. You can use this feature to prevent calling apps that are not installed.