Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, this is possible, but not by packaging the meteor app on the phone. You have to point phonegap to your meteor server instead (you will still be able to use the API for accessing functionality on the device). Here are the instructions:</p> <ul> <li>Grab the latest copy of phonegap 2.2.* from <a href="https://github.com/phonegap/phonegap">https://github.com/phonegap/phonegap</a> (2.1 has a bug that prevents this technique from working)</li> <li>Create your phonegap project and whitelist your meteor server domain name using the instructions here: <a href="http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html">http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html</a></li> <li>For iOS, find and open CordovaLib/Classes/CDVViewController.m and around <a href="https://github.com/phonegap/phonegap/blob/618578606e43ee3e819e573116182e05e9ea572a/lib/ios/CordovaLib/Classes/CDVViewController.m#L175">line 175</a>, overwrite appURL with appURL = [NSURL URLWithString:@"http://your-server.com"];</li> </ul> <p>That's it. Compile and run the app.</p> <p>A couple of time savers:</p> <ul> <li>You can start setting up your meteor directory by copying the www/ directory contents into your meteor server root directory. Make sure to copy the javascript files under the client/ directory so that they get loaded before the main meteor js file.</li> <li>Run app.initialize(window) from your main meteor js file, if the window parameter is not passed, the app will crash.</li> <li>Don't try to set up the meteor server under the www/ directory in Xcode. You won't be able to deploy to a device because the .meteor subdirectory contains symbolic links to your node modules.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload