Skip to content

Add share images to instagram feed#79

Open
artemsivcev wants to merge 1 commit intoShekarMudaliyar:masterfrom
artemsivcev:insta_feed
Open

Add share images to instagram feed#79
artemsivcev wants to merge 1 commit intoShekarMudaliyar:masterfrom
artemsivcev:insta_feed

Conversation

@artemsivcev
Copy link

Add possibility to share image to Instagram feed, both iOS and Android

@darwinshy
Copy link

Hey, if possible, merge this request. This is a much-needed feature.

val backfile = File(registrar.activeContext().cacheDir, backgroundImage)
val backgroundImageFile = FileProvider.getUriForFile(registrar.activeContext(), registrar.activeContext().applicationContext.packageName + ".com.shekarmudaliyar.social_share", backfile)
val share = Intent(Intent.ACTION_SEND)
share.setType("image/*")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)

"imagePath": stickerAssetName,
};
}
final String? response = await _channel.invokeMethod(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type is a bool? not a String?

Copy link

@Anant00 Anant00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App crashes when using shareInstagramFeed mainly due to:

  1. bool? is not a String?
  2. intent has no flag to grant read the uri permission.

@mikasiddiqui
Copy link

Possibility to share multiple images to instagram feed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants