This is a migrated thread and some comments may be shown as answers.

NativeScript iOS app crashes on QR Scan

4 Answers 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan J
Top achievements
Rank 1
Ryan J asked on 07 May 2015, 03:47 AM

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

4 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 07 May 2015, 11:41 AM
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.

 
0
Richard
Top achievements
Rank 1
answered on 16 May 2015, 06:17 PM
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?
0
Richard
Top achievements
Rank 1
answered on 17 May 2015, 06:18 PM
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.
0
Nikolay
Telerik team
answered on 18 May 2015, 10:50 AM
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
Tags
General Discussions
Asked by
Ryan J
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Richard
Top achievements
Rank 1
Share this question
or