IAP and Admob together

sioncosionco Posts: 40Member
edited September 2016 in Programming
Hi I want to include IAP and AdMob together in my Android game.  I'm going to have Ads and then a one time in-app purchase to remove them.

They both require me to add the following to my games engine.cfg

bluebee's Google Play service module for Android 

[android]
modules="org/godotengine/godot/GodotGooglePlayServices"


and the Google Payment module that comes in the demos:
[android]

modules="org/godotengine/godot/GodotPaymentV3"


However, when I add both together, Godot only chooses one and removes the other from Project Settings.

This also happens if I try to add them both in Project settings.
Tagged:

Tags :

Answers

  • AkienAkien Posts: 70Godot Leader
    edited September 2016 Answer ✓
    Have you tried using an array?
    modules=["org/godotengine/godot/GodotGooglePlayServices","org/godotengine/godot/GodotPaymentV3"]
  • sioncosionco Posts: 40Member
    Yes,but unfortunately it just crashes when I open the app on Android.
  • sioncosionco Posts: 40Member
    I've been testing it and they work individually in the same app, but when I try to use the array, it just crashes. Anyone?
  • Shin-NiLShin-NiL Posts: 158Moderator

    You must separate the modules by commas:

    [android]
    modules="org/godotengine/godot/GodotGooglePlayServices,org/godotengine/godot/GodotPaymentV3"

Sign In or Register to comment.