Hyphens in Bundle ID causing Universal Linking to fail?

Hey there. I've got a strange problem that I don't really understand that I'm hoping someone can provide some insight on. I'm working to get Universal Linking setup for an app of mine. I have been having some issues with getting it to work, and it seems to work only if I change my bundle ID to not include a hyphen or dash. Is this expected behavior? I would expect since dashes are allowed in Bundle IDs that this would not cause any issues with Universal Linking.


Real App (does not work):

Bundle Id: com.ihg.priorityclubrewards-test

Prefix:SBY6XFUKQX

Link:https://ihg.onelink.me/ihgtest/

Associated Domains File Entry:

{
"appID": "SBY6XFUKQX.com.ihg.priorityclubrewards-test",
"paths": ["/ihgtest/"]
}


I setup a new bundle id and provisioning profile to make sure dashes aren't the issue, but this made universal linking work!


Test App (does work):

Bundle Id: com.ihg.priorityclubrewardstest

Prefix:SBY6XFUKQX

Link:https://ihg.onelink.me/ihgtest1

Associated Domains File Entry:

{
"appID": "SBY6XFUKQX.com.ihg.priorityclubrewardstest",
"paths": ["/ihgtest1/"]
}

I've got Associated Domains enabled for both App IDs in the Member Center, and I have looked to find this in both of my development provisioning profiles:

<key>com.apple.developer.associated-domains</key>

<string>*</string>


Here is my real associated domains file:

https://ihg.onelink.me/apple-app-site-association


Are hyphens or dashes invalid in universal linking Bundle IDs?

Avoid special characters and spaces.


BTW, which store/OS are you linking to?

Hi, met with the same problem. Anyone managed to solve this?

Anyone managed to solve this? It's seems that is still occurring in 2024

Hyphens in Bundle ID causing Universal Linking to fail?
 
 
Q