An approach for use Meteor into PhoneGap/Cordova.
I use meteor to manage cordova content, and create a iframe to connect meteor server.
Both of the cordova start page and meteor page are in same origin, So I can access cordova in meteor code.
- Meteor: 0.6.6.1
- PhoneGap: 3.1.0
- Xcode: 4.6.3
- cd meteor/
- meteor
- cd cordova/
- cordova run ios
now the app is running and you can see how to use cordova with meteor
- cordova create cordova
- meteor create meteor
- add
<iframe src="/"></iframe>
tocordova/www/index.html
<content src="http://localhost:3000/www/index.html" />
- cordova build ios
- mkdir meteor/public
- cp cordova/platforms/ios/www meteor/public/www
- meteor run
- cordova run ios