User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21

Thread: About the usage of "Can payments be made?"

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    About the usage of "Can payments be made?"

    MMF help states: It is advisable to use "Can payments be made?" in any event where you want to query the store for information or request for payments.

    Instead of using this condition along with any Appstore request, can we put all Appstore events in a group and continuously check if payments can be made or not? This would allow to enable the Appstore group or show an error message, depending on the current state. Seems to be more elegant and effective to me, does anything speak against it?

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Apple does not really give any information about how efficient the test if purchases are available is. I would myself only do it at the start of the frame and before any purchases.
    You can do the grouping just fine, but I would maybe only do it once a second maybe (and when the user wants to do anything related to the store)

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the advice! Just want to be sure about these details, should also be interesting for others who want to use in-app-purchase:

    I'll check for connection problems only in intervalls (to show error message/disable buy buttons).

    I'll check for "Can Payments be made"
    - on start of frame (enabling buy buttons and product info requests)
    - in intervalls after a disconnection was detected (to allow Appstore requests again, covering special cases where connection was interrupted, WLAN was just started and took some time to initialize etc.)
    - when requesting payment, product info or using restore transactions
    but NOT in addition to events like "On any item event", "On specific item event" or "Restore payment finished/failed"

    Did I get this right?

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Yes that seems correct
    The events "On any item event" and similar wouldn't even fire if the device didn't have internet connection (with exception of the failure events).
    In either way, the triggered events doesn't need the 'Can payments be made' condition. It should only be used before attempting to access the store.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks for checking this!

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Does an app get rejected if it shows purchases whilst offline?

  7. #7
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I don't know but I wouldn't think so. You should at least notify the user that purchases cannot be made at the current time in some way. Maybe grey out the purchase buttons and display a notification icon and string at the bottom of the screen?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a separate screen for the Appstore stuff. It shows a "Loading data from Appstore" message by default and the buy button only appears after a successful "On Request Response" along with the item description and price. Hope that's ok for approval.

  9. #9
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export Module

    Join Date
    Sep 2006
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm having a problem with "Can Payments Be Made." I have an event like this:

    Can Payments Be Made?-----> Make purchase button visible

    Very simple. But even when I set my phone to Airplane mode the purchase button is visible. I'm using this because if I don't, when I do a "request information" while in airplane mode (to simulate no internet connection) the app crashes (iPhone4). So I don't even want to be able to get to the Purchase screen if there's no internet.

    Anyone have any ideas on what I might be doing wrong?

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can't check my code right now to see how I cover connection problems. I'm wondering if we interpret this condition correctly, look at these docs. Are we wrong, is it only about the general setting (IAPs can be deactivated) but not about connection issues?

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. "Cannot load joystick2.mfx" when "Compress the runtime" unchecked. Fine when checked.
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2013, 09:44 PM
  2. UPnUP - Android game "made with fusion" on Google Play
    By qenio in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 4th April 2013, 10:23 AM
  3. "Bug" For Saving and Loading Frame Positions AND "Timer Glitch"?
    By Zarpo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th March 2012, 12:40 PM
  4. What usage of the "keep screen ratio"?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th November 2010, 08:49 PM
  5. That annoying "BEEP" made by edit boxes
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 7th February 2009, 05:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •