In Swift undertaking there’s put in package deal SnapSDK SPM, and data file configured with clientid. I’m making an attempt to make use of SCSDKSnapAPI.startSending() for sharing picture from app to Snapchat. This efficiently opens Snapchat, however no content material is transmitted and Snapchat exhibits error (alert field):
One thing went unsuitable. Please strive once more later.
That is code the place share is initiated:
import SCSDKCreativeKit
struct shareView: View {
@State non-public var snapAPI = SCSDKSnapAPI()
...
var physique: some View {
...
Button {
let snap = SCSDKSnapPhoto(picture: picture)
let snapContent = SCSDKPhotoSnapContent(snapPhoto: snap)
DispatchQueue.predominant.async {
snapAPI.startSending(content material) {
res in
print(res)
}
}
}
}
}
Results of startSending perform is nil, which means no error occurred.
I’ve checked bundleid on snap developer portal and clientid in data file. I’ve outlined SCSDKSnapAPI object as state area of dad or mum struct so it is on struct stage scope and never on perform stage.
Any ideas on this are welcome!