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

fix for when initially :latest_receipt is nil #2

Merged

Conversation

hayesmp
Copy link
Contributor

@hayesmp hayesmp commented Feb 16, 2014

This seems to be the fix for my 'NSInvalidArgumentException', reason: 'data parameter is nil' problem.

@holgersindbaek
Copy link
Owner

Nice one. Did you get the gem to work properly in the end?

holgersindbaek added a commit that referenced this pull request Feb 17, 2014
fix for when initially :latest_receipt is nil
@holgersindbaek holgersindbaek merged commit f17688a into holgersindbaek:master Feb 17, 2014
@hayesmp
Copy link
Contributor Author

hayesmp commented Feb 17, 2014

Yes. I discovered that the actual receipt data (:latest_receipt) was nil in this case and that's what it was trying to send to be verified.

I had some horrendous problems getting all my gems and cocoapods to work. Everything WAS working until I started trying to integrate StoreKit. I had to tear it all out and start over.

@hayesmp
Copy link
Contributor Author

hayesmp commented Feb 17, 2014

I'm still editing the gem to see if I can pull out the expiration date to show the user.

@hayesmp
Copy link
Contributor Author

hayesmp commented Feb 17, 2014

I AM worried that the receipt_data is always nil so I'm going to have to watch that.

@holgersindbaek
Copy link
Owner

@hayesmp Sorry to hear that. Gems and especially Cocoapods do weird stuff in my Rubymotion apps sometimes as well.

Getting the expiration date sounds like a great addition to the info module. I'm quite sure I've already done half the work in the "subscribed?" method. You should check that out.

@holgersindbaek
Copy link
Owner

@hayesmp Remember to push a new PR if you mange to get it to work.

@hayesmp
Copy link
Contributor Author

hayesmp commented Feb 17, 2014

Yep. New PR. Got it.

It's weird: I'm getting the same data parameter is nil when I tried to pull out the method you created to get the exp date. So it worries me that it's not capturing the receipt. I'll look at this later tonight and make sure I am getting receipt data.

@holgersindbaek
Copy link
Owner

Sounds good. Let me know what you find out.

@hayesmp
Copy link
Contributor Author

hayesmp commented Feb 18, 2014

As I suspected: the receipt data stays nil. Need to figure out where it's trying to save the reciept...

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.

None yet

2 participants