Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The library isn't compatible with newer swift versions #36

Closed
orre1996 opened this issue Mar 13, 2024 · 3 comments
Closed

The library isn't compatible with newer swift versions #36

orre1996 opened this issue Mar 13, 2024 · 3 comments

Comments

@orre1996
Copy link

Seems like some packages needs to be updated

Skärmavbild 2024-03-13 kl  14 07 44
@alexanderjordanbaker
Copy link
Collaborator

This library only supports Swift on Server, not devices like an iPhone. We recommend using StoreKit 2 on device.

@orre1996
Copy link
Author

orre1996 commented Mar 13, 2024

Ohhh that makes sense, sorry about that.
Unfortunately promotional offers can't be done with only StoreKit 2, you need to create the signature on the server from what I've read. Unless I've completely missed something. And for the JavaScript code I get an error saying that applicationUsername.toLowerCase is not a function when I try to create the signature

@alexanderjordanbaker
Copy link
Collaborator

So yes, to create a promotional offer you need a server which has access to your app's private signing key (Another reason this can't be done on device, as the app wouldn't have access to this key). We can track that issue on the issue you created on the node library.

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

No branches or pull requests

2 participants