[AC-6253] Use of Associated Domains crashes app on iOS with SDK 8.0.0+
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2019-07-24T18:24:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Low Bird |
Assignee | Shak Hossain |
Created | 2019-05-13T09:36:20.000+0000 |
Updated | 2019-07-24T18:24:01.000+0000 |
Description
If you click on an URL that is registered to your app via iOS Associated Domains, the App is started and crashes instantly. It is working fine with Titanium SDK up to 7.5.2. It crashes on TiSDK 8.0.0 and 8.0.1RC.
How to reproduce:
app.js:
Ti.App.iOS.addEventListener('continueactivity', function(e){
});
tiapp.xml:
<ios>
...
<entitlements>
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:dev.expample.org</string>
</array>
</dict>
</entitlements>
</ios>
Attachments
File | Date | Size |
---|---|---|
crashlog.txt | 2019-05-17T15:20:50.000+0000 | 73168 |
[~l0wb1rd], Thanks for your report. Can you share complete crash log? Did you experience this on simulator or real device? Let us know the update.
Hello, We haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it.
I do need further help! Crash happens on Device - we haven't tested on simulator. It should be very easy reproducable since it happens with a blank iOS app on different devices built from different environments.
Crashlog: [^crashlog.txt] Can I provide anything else to help track this down?
[~l0wb1rd], Did you experience the same crash using 8.0.1.GA?
I had the same issue, and I fixed it commenting the line 128 of TiApp+Addons.m Classes -> TitaniumKit Extensions -> TiApp+Addons.m This recursive call provokes the dump:
Once I commented it, I had no dumps and the universal iOS links worked perfectly.
The issue is the same in 8.0.0GA and 8.0.1GA
can confirm that it still crashes with 801GA on device and on simulator. Thanks, Daniel Marin. I'll try the suggested patch and report back.
The suggested patch here in the comments does work. It might be that this issue is related and that it is already fixed in master/810 https://github.com/appcelerator/titanium_mobile/pull/10725
[~l0wb1rd], Just passing as followup here. Are you able to get that sorted out? Please let us know if you need more help with this issue.
The issue is fixed in the master Ti SDK: 8.1.0.v20190611140242 and later. Thanks.