Xamarin Forms Play Asset Delivery

165 views Asked by At

I got a game app that is 600mb+ as .aab. Google Console wont let any upload higher than 150mb.

I need to somehow use Play Asset Delivery to get my assets to be On Install Time when the app gets installed it fetches the bundle of resources. I do not have a clue if this is possible in Xamarin Forms.

I have found this GitHub Example but its for Xamarin.Android which is most likely Xamarin.Native and most files are much different to the original files from Xamarin.Forms.

Is this possible in Xamarin.Forms and if so can someone help me out on how to achieve this, as my raw folder for videos and sounds is huge and wont even get close to 150mb even with compression. If I try huge compression I will lose a huge amount of quality for video and audio.

I've spent way other 4 hours now trying to figure this out and no luck.

Thanks in advance.

2

There are 2 answers

1
Jianwei Sun - MSFT On

You can try to use Linker to reduce the size of the application.

It has three options:

  1. Don't Link (None in Visual Studio)
  2. Link SDK Assemblies (Sdk Assemblies Only)
  3. Link All Assemblies (Sdk and User Assemblies)

For more details, you can refer to this doc: Linking on Android. Wish it can help you.

0
Tommi Gustafsson On

You can use the GitHub example you provided in Xamarin.Forms. It's the best way to create asset packs automatically during build.

However, if you want to do things manually, you can check this answer out:

Adding Asset Packs to Android Bundle in Xamarin?