I would like to integrate notifications and bluetooth via phonegap to my web app built with famo.us. Is it possible?
Famo.us
includes the Famo.us Toolbar
which itself is a mod of Cordova (similar to Phonegap) and includes all of the plugins Cordova supports. It's driven from the command line.
I've emailed the CEO of Famo.us
and his response was:
We are alpha testing the Famo.us Wrapper now. It's a mod of Cordova with all of the plugins from Cordova. The difference is that it's much more performant, especially on Android, than PhoneGap or Cordova.
To achieve better performance than the standard Android webview, you could try to wrap your application with the Crosswalk runtime, it works with famo.us:
- download the Crosswalk archive, e.g. https://download.01.org/crosswalk/releases/crosswalk/android/stable/5.34.104.5/crosswalk-5.34.104.5.zip
- unpack the downloaded archive
- from the unpacked crosswalk folder, run ./make_apk.py --name="Your App" --package="com.example.app" --app-root=/your/app/root/folder --app-local-path=index.html
This will produce an .apk that you can install to the device.
More information: https://crosswalk-project.org
Yes,
Famo.us DOES support phoneGap. It's just HTML, CSS and javascript so it can be wrapped like anything else. The main difference is that PhoneGap and Cordova use an old version of Chromium which gives it bad performance on Android, which is why Famo.us's own wrapper will be more performant.
Specially on Android.
Right now The Famous Toolbelt has not been released publicly (only to a small subset of testers) but if you've used the Yeoman Generator you can quite easily wrap the compiled code into a normal Phonegap project. The only thing you should avoid doing is directly manipulating the DOM (i.e not using Famous to modify the layout & contents)
The rest is the same as writing any other Cordova app from a Javascript perspective. Just make sure to include and initialise Cordova and your plugins correctly beforehand.
I have tested famo.us
with phonegap
and it works. However the performance when starting up is terrible. Some reason phonegap
takes a long time to load. But after that it works just fine. Basically these are the steps:
1. Install phonegap
2. Create the project
# phonegap create helloworld
# cd helloworld
3. Build the project
Then copy the famo.us
project folder into www
folder
# phonegap build ios
(or android)
© 2022 - 2024 — McMap. All rights reserved.