D4rWiNS
D4rWiNS

Reputation: 2615

CloudOnce not merging correctly the manifest

Using Unity and CloudOnce,

I am implemeting cloudonce in my app withouth successfull, so I started a new project , just added the cloudonce and set up it correctly, but it crashed, After look up in the logs on logcats the error was

"Using Google Play games services requires a metadata tag with the name "com.google.android.gms.games.APP_ID" in the application tag of the manifest for com.xxx.xxx"

after further look in the manifest, I miss this

<meta-data android:name="com.google.android.gms.games.APP_ID"
        android:value="@string/app_id" />

After look in the Plugins/Android/AndroidManifest there is no meta data with the app id either

Upvotes: 0

Views: 415

Answers (1)

Clayton Wilkinson
Clayton Wilkinson

Reputation: 4572

You can either run the Android setup from the Unity Menu or invoke it statically with the correct values. If you just want to add the app id property to the AndroidManifest.xml, you can escape it with a space to force the parser to interpret the app id as a string. This is what the plugin does when you run setup.

For example: <!-- The space in these forces it to be interpreted as a string vs. int --> <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 1213456789" />

Upvotes: 1

Related Questions