NativeScript iOS app crashes on QR Scan

5 posts, 1 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    Nov 2012

    Posted 06 May 2015 Link to this post

    Hey guys,

    I'm trying to follow the Photo Album Native App tutorial and I'm at the point where I am to test it using QR scan on my iPhone. But every time I scan the QR code using the NativeScript app I get a crash with an error. Can anyone help me figure this out? 

    Here is the screen shot of stack trace http://i.imgur.com/NJJTaGy.png 

    Thank you

  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 07 May 2015 Link to this post

    Hi Ryan,

    With the latest version of the NativeScript framework we introduced some changes in the file structure of the NativeScript project. The tutorial and the template project were updated to follow those changes, but the iOS companion app that should work with those changes is still not live at the AppStore. Until the new version comes out, I would suggest the following workaround:
    1. In the Photo Album Native Code project, right-click the app folder and create a new JavaScript file called bootstrap.js.
    2. Place the following code line in the bootstrap.js file:
      require("./");

    This will allow you to correctly preview the sample application.

    Let me know if you have additional questions.

    Regards,
    Nikolay
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. Richard
    Richard avatar
    2 posts
    Member since:
    May 2015

    Posted 16 May 2015 in reply to Nikolay Link to this post

    Thanks for the info Nikolay, if possible, it would be a great help if you guys updated the Nativescript tutorial (I lost time on this as I'm sure everyone will). Also the LiveSync feature doesn't seem to be working in the iOS nativescript app, is this a know issue too?
  4. Richard
    Richard avatar
    2 posts
    Member since:
    May 2015

    Posted 17 May 2015 in reply to Richard Link to this post

    Turns out turning off "Zoom" under accessibility settings on iPhone 6 Plus solved the problem for "LiveSync", now it works fine :) The iOS Zoom feature recognizes a 3-finger double tab that apparently interfered with the 3-finger long touch need for the NativeScript app to activate "LiveSync". Not sure if this an iOS bug/feature or one of the NativeScript app.
  5. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 18 May 2015 Link to this post

    Hi Ryan,

    Thank you for the feedback.

    I confirm the unexpected behavior when the Zoom feature is turned on. We will think how we can update the LiveSync mechanism, so that it does not interfere with the Accessibility options. You are also correct about the bootstrap.js experience. Actually, we were expecting the NativeScript app update to become live at the AppStore sooner, but since it's still not there, I temporarily added the file in the template project, so that this project can run on both iOS and Android devices.

    Regards,
    Nikolay
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top