Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6253] Use of Associated Domains crashes app on iOS with SDK 8.0.0+

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2019-07-24T18:24:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLow Bird
AssigneeShak Hossain
Created2019-05-13T09:36:20.000+0000
Updated2019-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

FileDateSize
crashlog.txt2019-05-17T15:20:50.000+000073168

Comments

  1. Jebun Naher 2019-05-14

    [~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.
  2. Rakhi Mitro 2019-05-17

    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. 
  3. Low Bird 2019-05-17

    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.
  4. Low Bird 2019-05-17

    Crashlog: [^crashlog.txt] Can I provide anything else to help track this down?
  5. Rakhi Mitro 2019-05-20

    [~l0wb1rd], Did you experience the same crash using 8.0.1.GA?
  6. Daniel Marin 2019-05-27

    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:
         [self tryToInvokeSelector:@selector(application:continueUserActivity:restorationHandler:)
                     withArguments:[NSOrderedSet orderedSetWithObjects:application, userActivity, restorationHandler, nil]];
       
    Once I commented it, I had no dumps and the universal iOS links worked perfectly.
  7. Daniel Marin 2019-05-27

    The issue is the same in 8.0.0GA and 8.0.1GA
  8. Low Bird 2019-05-28

    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.
  9. Low Bird 2019-05-31

    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
  10. Rakhi Mitro 2019-07-24

    [~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.
  11. Sharif AbuDarda 2019-07-24

    The issue is fixed in the master Ti SDK: 8.1.0.v20190611140242 and later. Thanks.

JSON Source