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

[Solved] Android app fails:

8 Answers 249 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.
Terry
Top achievements
Rank 1
Terry asked on 08 Mar 2015, 07:05 PM
When trying to run the sample HelloWorld program via the Android helper app (on Galaxy Note 4 / Android 4.4.4), I get just an error screen saying: Telerik NativeScript Error: Invalid url: ". Url must start with prefix" 'nativescript'

Earlier, the 'Cuteness' demo worked, so the program is functioning. How do I get it to display my HelloWorld tutorial app?

Thanks

8 Answers, 1 is accepted

Sort by
0
Terry
Top achievements
Rank 1
answered on 08 Mar 2015, 08:46 PM
More details. The above error popup is when trying "Expand the notification center and tap Sync." I found if I use Build > App Package, and then manually type the bit.ly URL into my browser on the phone, I can download and run the .apk Not very convenient, but at least a way to try and work through the demos.

Running the NativeScript app gives me all those cat pictures....
0
Mihail
Telerik team
answered on 09 Mar 2015, 12:20 PM
Hello Terry,

Thank you for your feedback. From the error message I can see that the URL prefix is an empty string. I can reproduce this error if I tap "Sync" button before I tap "Scan" button.

In order for "Sync" button to work you have to use "Scan" button at least once. We designed the workflow as follows:
  1. Build the app for NativeScript Companion App (see screen1.png)
  2. After the build completes you should be able to see QR code (see screen2.png)
  3. Use "Scan" button from the Notification Center (see screenshot1.png)
  4. Scan the QR code (see screenshot2.png)

After you successfully scan the QR code your app will be synced. Behind the scenes NativeScript companion app will save the URL encoded in the QR code. The initial scan is required in order to obtain the sync URL. Once you have used "Scan" button you don't need to use it further. Anytime you want to sync your app just make sure that you have saved your source code files and tap "Sync" button (no build is required).

I am sorry we didn't make the documentation more explicit about the workflow. Please let me know if the proposed steps work for you.



Regards,
Mihail
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Terry
Top achievements
Rank 1
answered on 09 Mar 2015, 01:47 PM
Hi Mihail, thanks for your reply. OK, so this is what I thought. The problem is that when I get to your Step 3, using the Notification Center pulldown, there are no buttons visible; I just has the Icon and says "Telerik NativeScript Comp.. (\n) Touch the buttons to sync or scan. Again, no buttons visible. I can send a screenshot from the phone if you need it. 
0
Terry
Top achievements
Rank 1
answered on 09 Mar 2015, 02:01 PM
Here are the screenshots after the notification center is pulled down and after the NativeScript button is pushed. 
0
Accepted
Mihail
Telerik team
answered on 10 Mar 2015, 08:18 AM
Hello Terry,

Thank you for sending the screenshots, they helped me to understand the issue.

By default Android tries to collapse the notification messages when they are multiple of them in the Notification Center. However, sometimes this could be really confusing. You can expand the whole notification message by swiping it down. Please see the following video http://youtu.be/lMs4T1kHpR4 for more details.

I will log an issue to improve the user experience in further versions of NativeScript companion app.

Regards,
Mihail
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Terry
Top achievements
Rank 1
answered on 10 Mar 2015, 01:38 PM
Thanks Mihail. Sorry for such a stupid thing! Still learning my nice new Galaxy4.

0
Terry
Top achievements
Rank 1
answered on 11 Mar 2015, 01:15 AM
I'm having the same problem with absent buttons on the notification center item.
0
Mihail
Telerik team
answered on 12 Mar 2015, 03:58 PM
Hi,

Please read my previous answer and watch this video http://youtu.be/lMs4T1kHpR4 for more details.

I already logged an issue to improve the user experience.

Regards,
Mihail
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Terry
Top achievements
Rank 1
Answers by
Terry
Top achievements
Rank 1
Mihail
Telerik team
Terry
Top achievements
Rank 1
Share this question
or