TimmyRB / snapkit

SnapKit is a Flutter plugin that allows you to integrate Snapchat's own SDKs into your Flutter projects!
https://pub.dev/packages/snapkit
MIT License
30 stars 16 forks source link

Ios Exception #21

Closed geekmuhannad closed 3 years ago

geekmuhannad commented 3 years ago

Hi I tried to share an image with Snapchat it works in android but I got an exception in ios

I already add user demo & bundle id

[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: PlatformException(SendMediaSendError, Optional(Error Domain=SCSDKCreativeKitErrorDomain Code=10 "error_description_malformed_url" UserInfo={NSLocalizedRecoverySuggestion=recovery_suggestion_check_documentation, NSLocalizedDescription=error_description_malformed_url, NSLocalizedFailureReason=}), null, null)

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)

#2 Snapkit.share (package:snapkit/snapkit.dart:193:5)
geekmuhannad commented 3 years ago

The problem from the image provider. why in android accept sharing images from file but ios gave an exception as showing above

snapkit.share(SnapchatMediaType.PHOTO, image: Image.file( imageFile ).image, sticker: SnapchatSticker( image: AssetImage("assets/images/shared_sarahah_ar.png"), ), attachmentUrl: Constants.sarahahUrl);

TimmyRB commented 3 years ago

Sorry for the delay, have you tried loading the image the same way you're loading the Sticker's Image ie thru AssetImage("path/to/image.png") ?

ghost commented 3 years ago

Thanks, it works very well

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no activity in the allotted seven days.