Android app fails:

Thread is closed for posting
9 posts, 1 answers
  1. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2014

    Posted 08 Mar 2015 Link to this post

    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
  2. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2014

    Posted 08 Mar 2015 in reply to Terry Link to this post

    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....
  3. Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 09 Mar 2015 Link to this post

    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.

     
  4. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2014

    Posted 09 Mar 2015 in reply to Mihail Link to this post

    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. 
  5. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2014

    Posted 09 Mar 2015 in reply to Terry Link to this post

    Here are the screenshots after the notification center is pulled down and after the NativeScript button is pushed. 
  6. Answer
    Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 10 Mar 2015 Link to this post

    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.

     
  7. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2014

    Posted 10 Mar 2015 in reply to Mihail Link to this post

    Thanks Mihail. Sorry for such a stupid thing! Still learning my nice new Galaxy4.

  8. Terry
    Terry avatar
    2 posts
    Member since:
    Oct 2010

    Posted 10 Mar 2015 Link to this post

    I'm having the same problem with absent buttons on the notification center item.
  9. Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 12 Mar 2015 Link to this post

    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.

     
Back to Top