AppClipCodeGenerator - Compressed URL too large

I use AppClipCodeGenerator to make my app's App Clip code, like this.↓

AppClipCodeGenerator generate -u ht-tps://tachibanakaoru.github.io/toyjigsaw/puzzle4x4/1 -i 0 -o ./mycode.svg

(I changed 'https' to 'ht-tps' because the question should not include url.)

But there is a error with this message, and I cannot made a App Clip code.
"Compressed URL too large: The compressed URL byte size exceeds supported payload size of the App Clip Code."

Is there a way to make an App Clip code with this url?
AppClipCodeGenerator(Version: 1.3.6)


I played around the encoder tool a little bit and starting to notice the interesting behavior of the AppClipCodeGenerator. For example:
My url is too long: ht tps://foodiesocial.net/qr?p=8923001&p1=23,
In comparison Apple's own example ht tps://appclip.example.com/qr?p=8923001&p1=23 can compress successfully. Mine url is even shorter.

Also this makes me hard to predict what base url we should use since different query parameter value change may break it as well.
I also have the same problem, so I tried in AppstoreConnect and to see if I would get more information. First, there is a warning under my advance experience that it says that it is not compatible with App Clip codes. The more information button links to https://developer.apple.com/documentation/app_clips/creating_app_clip_codes where I cannot really see why my experience is not compatible :( Any ideas?
I have tried to use AppClipCodeGenerator to generate App Clip Code for my url but always got the error
“Compressed URL too large: The compressed URL byte size exceeds supported payload size of the App Clip Code”

URL: ht tps://swiftylemonade.com?p=33.8644&p1=118.2611
Command to generate code:
AppClipCodeGenerator generate -u 'ht tps://swiftylemonade.com?p=33.8644&p1=118.2611' -f FFFFFF -b 000000 -t cam -o ./appclip-code-sample.svg

However it successfully generated the code when trying with Apple example url which is longer

Apple example URL: https://appclip.example.com/shop?p=123&p1=456&p2=789


Is there any specific requirement for the url?

Their encoder can only fit in so many characters. QR codes have a lot more data storage capability.

Check out this link for more details, however there is no clear documentation on the length. I was also looking for a concrete number but it is probably indeterminate. Unfortunately, my domain name is quite long so I'm probably stuck with only a few chars available for my query params :(

Apple Documentation: Encoding a url in an app clip code

Hi everyone,

@edorphy Is right, there's no fixed length for the URL you encode in an App Clip Code. The App Clip Code Generator can encode some path components more efficiently than others. There are a few best practices you can follow to fit as much information in an App Clip Code and they're all documented in Encoding a URL in an App Clip Code. For example, use the appclip subdomain and name the parameters (p=..., p1=.., and so on) like the in the example in the article: https://appclip.example.com/shop?p=123&p1=456&p2=789.

Something you could do is to use a short URL in the App Clip Code, and then use one of its parameters to make another network call that downloads additional information. However, you'll need to be careful to NOT do any long-running tasks because your App Clip needs to launch instantly.

AppClipCodeGenerator - Compressed URL too large
 
 
Q