Load PlugIns in extern url

3 posts, 0 answers
  1. Torben
    Torben avatar
    2 posts
    Member since:
    Jan 2014

    Posted 28 Jan 2014 Link to this post

    Hi AppBuilder-Community!

    I like App-Builder, its pretty cool!

    What I want to do, is:
    -load an external url (I do that by defining content source in config.xml android only)
    -from this url I want to call internal plugin like barcodescanner

    In external url I load sources:

    but plugin call fails..
    same I did on local site and there it works.

    my config.xml:
    <access origin="*"/> <!-- allow local pages -->
    <access origin="*"/>
    <content src="http://www.domain.com/index.html" />

    Am I missing something or is it quiet not possible?

    Greeting, Torben
  2. Steve
    Steve avatar
    10941 posts

    Posted 30 Jan 2014 Link to this post

    Hi Torben,

    Cordova plugins can only be started and accessed from the local files of the app via the javascript to native bridge. In general we do not recommend setting external url as starting page for your app. If we understand your idea correctly, you wish to use an existing web site for the creation of a mobile app. This is not a good idea for many reasons which we would not list here (lots of info on the net), but the main one being that you app would be rejected from Apple App Store and Google Play, because one of the requirements is for the app not to be a representation of a web site.

    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  3. Torben
    Torben avatar
    2 posts
    Member since:
    Jan 2014

    Posted 30 Jan 2014 Link to this post

    Thanks for your reply Steve! It would be only two pages. I thought thats no problem, but you are right, thats no clean solution.

Back to Top