x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

In-App purchases not working iOS

We're working on getting In-App purchases to work. Using 4.5.1 and we seem to have changed the 'bSupportInAppPurchasing=True' in folder 'C:\Program Files\Epic Games\4.5\Engine\Config\IOS' yet whenever we test out the in-app purchase functionality, it fails always.

Any solutions to this?

Here's the IOSEngine.ini: [Audio] AudioDeviceModuleName=IOSAudio

 [OnlineSubsystem]
 DefaultPlatformService=IOS
 
 [Advertising]
 DefaultProviderName=IOSAdvertising
 
 [DeviceProfileManager]
 DeviceProfileSelectionModule="IOSDeviceProfileSelector"
 
 [OnlineSubsystemIOS.Store]
 bSupportInAppPurchasing=True
Product Version: Not Selected
Tags:
more ▼

asked Mar 18 '15 at 10:00 AM in Packaging & Deployment

avatar image

GameEon Infotech Pvt. Ltd.
6 3 10 8

avatar image Terence.Burns Mar 18 '15 at 01:50 PM

Hi GameEon,

I should be able to assist you with this :-) Let's start with how you are testing your IAPs.

Note that the IAP system has changed a lot since 4.5, so it will be beneficial to you if you upgrade your engine version. We have also added blueprint support since then.

/Terence

avatar image GameEon Infotech Pvt. Ltd. Mar 18 '15 at 02:34 PM

Hey Terence, Thanks for your assistance :)

We do realise a lot's been changed since 4.5 but our project is complete and we didn't want to take chances on upgrading our version since all our development was done in 4.5.1

Having said that, we've used the 'Make In-App Purchase' blueprint method and also entered the Product Identifier properly in it. But still it gives a failure message each time. Went through a few posts online and tried to implement the IOSEngine.ini method but yet no success.

avatar image Terence.Burns Mar 18 '15 at 02:41 PM

That's no problem. Do we have any log output to determine the error code from IAP?

If there is no LogOnline output. we may need to enable it in the DefaultEngine.ini. Just add:

 [Core.Log]
 LogOnline=verbose


Terence

avatar image GameEon Infotech Pvt. Ltd. Mar 19 '15 at 05:25 AM

Hey Terence,

Getting this log message:

 LogScript:Warning: UInAppPurchaseCallbackProxy::Trigger - Invalid or uninitialized OnlineSubsystem
avatar image GameEon Infotech Pvt. Ltd. Mar 19 '15 at 06:10 AM

Also getting this message as well:

 LogOnline:Warning: No default platform service specified for OnlineSubsystem
avatar image Terence.Burns Mar 19 '15 at 10:51 AM

It seems like the engine isnt respecting your config entry.

 [OnlineSubsystem]
 DefaultPlatformService=IOS

Are you in a position to debug the code? I can point you in the right place to find why it's not using OSSIOS.

/Terence

avatar image Terence.Burns Mar 19 '15 at 10:53 AM

Just something else, Do you happen to have anything related to OnlineSubsystem in your projects DefaultEngine.ini?

avatar image GameEon Infotech Pvt. Ltd. Mar 19 '15 at 02:04 PM

Updating the engine to 4.7.3, lets see if that solves this problem

avatar image GameEon Infotech Pvt. Ltd. Mar 21 '15 at 07:08 AM

There's nothing related to OnlineSubsystem in DefaultEngine.ini and seems like we can't upgrade to 4.7.3 because our assets are taking too much time to load and many functions have been deprecated.

Should there be some declaration for OnlineSubsystem in DefaultEngine.ini?

avatar image Terence.Burns Mar 23 '15 at 09:36 AM

Your DefaultEngine.ini should contain the sections you highlighted above, yes.

It's pretty strange about the slow startup speeds. Does the Log display any information about what is happening there?

avatar image GameEon Infotech Pvt. Ltd. Mar 24 '15 at 11:01 AM

The log gets stuck on some weird resolution problem. We kept it for build for 1 entire day and still no progress.

avatar image Terence.Burns Mar 31 '15 at 10:05 AM

Hey GameEon, apologies for the delay, this thread got lost in spam. It seems as if the OSS is not being initialized correctly. So it's worth making sure that your defaultEngine.ini or IOSEngine.ini contains the sections and values we discussed above.

Are you in a position to debug the code?

/T

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey GameEon,

Can you just make sure that the OSS is added as a dependency of your game.build.cs.

 PublicDependencyModuleNames.Add("OnlineSubsystem");
 DynamicallyLoadedModuleNames.Add("OnlineSubsystemIOS");

This oughta be all you need along with the ini options you highlighted initially.

/Terence

more ▼

answered Apr 09 '15 at 01:48 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question