Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 12    Views: 113

BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
06/03/13 10:37 PM (12 years ago)

Easy In App Purchase Plugin

Hi. Can someone confirm if Easy In App Purchase plugin works on the iPad without any manual code changes in Xcode, or if you still need to apply these changes that were mentioned in a previous post a few months ago? It works on my iPhone4 but not on my iPad3 (nothing happens when you click either the "Purchase" or the "Restore" buttons). Both devices are using the latest iOS and the app is compiled for iOS 6 and up. I also logged out of iTunes & App Stores via the settings on both devices. I downloaded the source code only a few days ago so I have a recent copy of the Easy IAP plugin. Thanks --------------------------------- Thanks. FYI I made the following adjustments in my in app iPad .xib and the BT settings for background showed correctly and the purchase and restore buttons initiated the appropriate action. (not sure if this will universally apply) Very excited for this plugin! 1) For the main view (under objects) for the ipad .xib, show the attributes inspector and change the background from white to "clear color" like the iphone .xib. 2) For the same ipad .xib, go to the connections inspector, click on the purchase and restore buttons individually and adjust connections to match those of the iphone .xib.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/03/13 11:39 PM (12 years ago)
It should work exactly the same. There's not much difference between an iPhone and an iPad, other than screen size. (A few other minor differences, but not important for this plugin). I would double check that you correctly assigned your iPad XIB file objects to the .h properties/methods. If you were messing with that, it could certainly cause you problems.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/03/13 11:46 PM (12 years ago)
Hi Chris. I didn't touch any of the code for this plugin. I saw some past messages about others having problems on the iPad with this, and a "fix" being put in place for the xibs. I'm wondering if that fix was put in. I'm referring to this post: https://www.buzztouch.com/forum/thread.php?tid=A638433BFB2ABB1CCFA21F7&fid=BC70C36A743CD4FAD95D17F&sortColumn=FT.id&sortUpDown=&currentPage=3 Where I quote: ----------------------------------- @mysps: 03/16/13 12:20 PM (2 months ago) There is currently a bug in the plugin. You have to make the connections in xCode. Check these post: https://www.buzztouch.com/forum/thread.php?tid=2B2F443B904C35E372C65C4 http://www.buzztouch.com/forum/thread.php?tid=89A913811403B1830C67690 ----------------------------------- I checked those posts and didn't see a confirmation that this fix was put in. Cheers
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/03/13 11:50 PM (12 years ago)
Hmm - I don't remember anything about that, but I can't catch everything! :) I would send a PM to theMonster and ask if this is a known issue still outstanding.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/04/13 12:01 AM (12 years ago)
Thanks Chris. Already sent to theMonster. Thought I'd post here too just to allow anyone else who has implemented this recently to also respond.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/04/13 12:14 AM (12 years ago)
yep - always a good idea. If you get an answer, be sure to post it.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/04/13 11:29 AM (12 years ago)
Isn't anyone using IAP on the iPad? :-) OK, after looking at the .xib files for this plugin and the Connections Inspector properties for the Buy and Restore buttons, it looks like this "issue" is still there, i.e. the .xib for iPad does not have the following property set under "Sent Events" (like it is for the iPhone .xib) for either the Buy or the Restore buttons: Touch Up Inside -- File's Owner purchaseProduct:... To see what I mean, take a look at these 2 pix: - iPhone Buy Button connections settings: http://postimg.org/image/4qj76itxt/ - iPad Buy Button connections settings: http://postimg.org/image/pgxn77yrj/ - ditto issue for the "Restore" button So, now I'm very close, but how do I edit/add this property? I did a search on Google and haven't come across anything simple on how to do this - just clicking on the "Touch Up Inside" radio button didn't do anything. Thanks, and I hope this gets fixed in the main plugin soon as I'd like to use this plugin in the future and would be nice not to have to do this every time :-)
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/05/13 09:31 AM (12 years ago)
I haven't heard anything back on this, including from the developer of the plugin. I'm trying to submit my app to iTunesConnect, but can't do that until this issue is fixed. So, I was wondering if anyone is willing to share their working iPad .xib file for this plugin. If I copy that into my copy of the Easy In App Purchase, I'm assuming the issue should be resolved. Thanks!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/05/13 04:08 PM (12 years ago)
Steve, Sorry I haven't responded earlier - things have been busy here with my new job. I took a look at the ipad .xib file and you're right, there does seem to be some inconsistencies as you've noted where the buttons aren't connected to the appropriate action in the class files. You should be able to connect these yourself by clicking on the button in the .xib file and control+dragging it to the appropriate method in the class file. You'll need to switch to the "Assistant Editor" in XCode to do this, so you can see both Interface Builder and the class file side by side.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/06/13 12:58 AM (12 years ago)
Hi Chris. I managed to get a copy of the "fixed" .xib file for iPad from @FromtheNE. If anyone needs a copy of it, let me know. I've sent a copy to Susan to see if she can update this .xib in the plugin available for purchase. Cheers
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/06/13 07:26 AM (12 years ago)
Glad you got it working! I hope your app has a lot of success in the market.
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
06/06/13 01:15 PM (12 years ago)
Thanks Chris. It has been a real learning experience with this first app, and I thank Buzztouch for enabling me to make this happen. I'm just figuring out the last bits, such as: - updating my app support site, creating a privacy policy - a "distribution" certificate? - creating the binary archive for upload - how to submit the in-app purchase with the binary? The in-app purchase is already created and working Wish there was a nice guide for some of these extra bits :-) The guide we have in the How-To's section here is great but I'm not sure about how to submit the in-app purchase along with the app, and using the distribution cert :-) Cheers
 
ThomasSechak
Aspiring developer
Profile
Posts: 59
Reg: Jul 10, 2011
Charlottsville
10,690
like
05/07/14 09:00 AM (11 years ago)
I am having the same issue, with Easy iAP plugin not working in iPad. Can someone send me the fixed .xib file. I sent my app to apple and they rejected it becouse of this error. Its 11 months later since this thread started and the issue or a similar issue in the Easy iAP plugin still exists. Thanks
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.