How to use brython in Cordova

223 views
Skip to first unread message

吴伟

unread,
Sep 16, 2015, 6:30:01 AM9/16/15
to brython
Cordova create app using javascript. If Cordova can also be used brython, then you can use Python to create app. What a great thing it is.

Kiko

unread,
Sep 16, 2015, 6:56:21 AM9/16/15
to bry...@googlegroups.com

2015-09-16 12:30 GMT+02:00 吴伟 <popw...@gmail.com>:
Cordova create app using javascript. If Cordova can also be used brython, then you can use Python to create app. What a great thing it is.

Here there is an android app I made some time ago with Brython:
https://github.com/kikocorreoso/SimpleAgenda

I suppose the process with Cordova (PhoneGap (http://web.archive.org/web/20141026223659/http://tech.pro/tutorial/1258/deploying-flask-to-heroku-and-creating-an-android-app-with-phonegap) or others) would be as easy as it was with a simple android WebView but I've never tried.

If you try, please, write a small tutorial to help others.

dan d.

unread,
Dec 3, 2015, 9:46:36 AM12/3/15
to brython
 Hello,

I am very interested in seeing a working simple Brython / Cordova application.
If anyone has seen one, please give a pointer to it.

Someone I know tried to package a little Brython web app with Ionic (Cordova). The APK was created for Android, it installs fine on an andoid phone.
When launched it displays the web page correctly, but the AJAX calls do not work...

If anyone has experience, tips / tricks... let me know!

Thanks!
Dan

Kiko

unread,
Dec 3, 2015, 9:53:23 AM12/3/15
to bry...@googlegroups.com
I think you have to allow explicitly the internet connection to the app (android permissions).

See 'Adding a webview to your application' section here (http://developer.android.com/guide/webapps/webview.html).
 

Thanks!
Dan

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/528cfdd1-e349-43d0-b33d-f14ecb9d2b30%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages