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

Load PlugIns in extern url

2 Answers 66 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Torben
Top achievements
Rank 1
Torben asked on 28 Jan 2014, 10:47 AM
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:
-cordova.android.js
-Plugins/BarcodeScanner/barcodescanner.js

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

my config.xml:
<access origin="http://127.0.0.1*"/> <!-- 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 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jan 2014, 03:57 PM
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.

Regards,
Steve
Telerik
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)
0
Torben
Top achievements
Rank 1
answered on 30 Jan 2014, 04:48 PM
Thanks for your reply Steve! It would be only two pages. I thought thats no problem, but you are right, thats no clean solution.

Greetings,
Torben
Tags
General Discussion
Asked by
Torben
Top achievements
Rank 1
Answers by
Steve
Telerik team
Torben
Top achievements
Rank 1
Share this question
or