I’m having an issue with the android Back up user data with Auto Backup | Identity | Android Developers feature not working.
Unity version; 2018.4.3f1
Android; min version: 16, target: 28
Partial manifest which includes the allowBackup flag;
<application android:allowBackup="true" android:icon="@drawable/app_icon" android:label="@string/app_name" android:largeHeap="true" android:theme="@style/UnityThemeSelector" android:resizeableActivity="false"
android:isGame="true" android:banner="@drawable/app_banner" android:networkSecurityConfig="@xml/network_security_config">
<!-- Required for "super widescreen" devices -->
<meta-data android:name="android.max_aspect" android:value="3.0" />
<activity android:label="@string/app_name" android:name=REDACTED android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:clearTaskOnLaunch="false">
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
</application>
I’ve tried it with the ‘android:fullBackupOnly’ flag, but it made no difference either.
- It won’t retain anything in Playerprefs upon uninstall.
- It won’t retain anything when manually saving it in the native android sharedPreferences and uninstalling.
- Builds have been created using the same bundle identifier as used for our store product.
- We force our backups by manually triggering the google drive backup on the phone to ensure it attempted to do the backup.
- We have multiple manifests which get merged together, but we’ve looked in our final merged manifest and it is still the same as shown in the example above.
Any help with this would be greatly appreciated, as I’m not sure where to go from here.