💡Tips
Using local preset strategies allows you to:
- 🚀 Reduce the time taken to fetch strategies on the first launch
- 🔒 Avoid strategy fetch failures caused by network issues
● Android
1. Create the specified directory
└─ /Assets/Plugins/Android/mcRes.androidlib/assets/localStrategy
2. Place the strategy file
└─ Put the exported JSON file into the directory above
● iOS
localStrategy.json
and place it in the Xcode project as shown in the figureCall McSdk#SetLocalStrategyAssetPath(string path)
before SDK initialization to set it up. Example:
McSdk.SetLocalStrategyAssetPath("localStrategy");