Archive for the ‘Phonegap’ Category

phonegap: Phonegap 1.0 iOS Install Note

Friday, August 19th, 2011

Thanks for installing PhoneGap 1.0.0!
Plugins
• Plugins MUST add their plugin mapping to their app’s PhoneGap.plist Plugins key, if not they will not work (see your plugin’s README)
• A lot of plugins have changed their mapping names in PhoneGap.plist, you might have to copy and use the new PhoneGap.plist in your app.
• Modify your Plugin headers as well: http://wiki.phonegap.com/PhoneGap-iOS-Plugins-Problems
• UN-DEPRECATED: Camera.getPicture core Plugin granted a reprieve.
• REMOVED: Network.isReachable core Plugin removed in 1.0, use the Network Information API instead
• REMOVED: Notification activityStart, activityStop, loadingStart, loadingStop core plugin functions removed in 1.0 and put in the plugins repo
• REMOVED: Image, Movie removed (unused)
• REMOVED: File.writeAsText removed
• REMOVED: Plugin base class ‘PhoneGapCommand’ is removed in 1.0, use the base class ‘PGPlugin’ instead in your third-party Plugins
• ADDED: Splash screen control plugin, to hide/show (use in conjunction with PhoneGap.plist setting AutoHideSplashScreen)
Upgraders
1. Add the existing framework "CoreMedia" to your project
2. Set it to weak/optional in your Target
3. Copy the new phonegap.*.js files in manually to your "www" folder (COPY from /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www)
4. Update your script references in your HTML files to point to the .js files above
5. Copy "Capture.bundle" from /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework and add it to your project as well (or copy from a new project)
6. Set the existing framework "UIKit" to "Weak/Optional" in your project (to support iOS 3.x devices)
7. Set the existing framework "AVFoundation" to "Weak/Optional" in your project (to support iOS 3.x devices)
8. You can remove "CoreTelephony.framework" if it exists (and none of your plugins use it), it is not used by PhoneGap anymore
9. Recommended steps: http://wiki.phonegap.com/Upgrading%20your%20iOS%20PhoneGap%20Project

Xcode 4
1. Launch Xcode 4
2. Select "New Project…" then under the File menu
3. Select "Application", under the "iOS" section
4. Select "PhoneGap-based Application" then in the right pane
5. Select the "Next" button
6. Name your project and bundle identifier
7. Select the "Next" button
8. Choose the location where you want the new project to be

*IMPORTANT*: On first run, it will create a sample "www" folder for you inside your project. After that, you MUST drag and drop the "www" folder into your project in Xcode, to create a folder reference for it.
*IMPORTANT*: For the "CoreMedia" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
*IMPORTANT*: For the "UIKit" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
*IMPORTANT*: For the "AVFoundation" framework, you MUST set the linkage as "Optional", if not iOS 3.x devices will crash. The linkage type could not be set in the template itself (undocumented).
That’s it! Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

Xcode 3
1. Launch Xcode 3
2. Select "New Project…" then under the File menu
3. Select PhoneGap, under the "User Templates" section
4. Select "PhoneGap-based Application" then in the right pane
5. Select the "Choose…" button
6. Name your project
7. Choose the location where you want the new project to be.

That’s it! Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

Links
• www.phonegap.com
• docs.phonegap.com
• github.com/phonegap/phonegap-iphone

javascript: OAuth with iOS, PhoneGap, and Chrome Extension

Friday, June 10th, 2011

Phonegap: Install / Uninstall Notes / Instructions for Mac

Sunday, May 15th, 2011
This installer will only install items under your home folder (signified by ~)

Items that will be installed:
(1) Xcode global var in ~/Library/Preferences/com.apple.Xcode.plist (which will be listed under Xcode Preferences -> Source Trees)
(2) PhoneGap Xcode static library and static framework project under ~/Documents/PhoneGapLib
(3) Xcode 3 project template in ~/Library/Developer/Xcode/Project Templates/PhoneGap
(4) Xcode 4 project template in ~/Library/Application Support/Developer/Shared/Xcode/Templates/Project Templates/Application
(5) PhoneGap Xcode static framework under /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework (may change in future updates)
(6) Symlink to the framework in (5) under ~/Library/Frameworks

To uninstall:
(1) Remove the PHONEGAPLIB value in Xcode Preferences -> Source Trees
(2) Delete the ~/Documents/PhoneGapLib folder
(3) Delete the ~/Library/Application Support/Developer/Shared/Xcode/Project Templates/PhoneGap folder
(4) Delete the "~/Library/Application Support/Developer/Shared/Xcode/Templates/Project Templates/Application/PhoneGap-based Application.xctemplate" folder
(5) Delete the /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework folder
(6) Delete the ~/Library/Frameworks/PhoneGap.framework symlink

If creating a new app does not copy the www folder, it can be found here (on Mac)

/Users/Shared/PhoneGap/Frameworks/PhoneGap.framework

See Also

PhoneGap for iOS xCode4 with No Template Tutorial

PhoneGap iOS xCode4 Template version

Install Phonegap Plugins (i.e. ChildBrowser)

PhoneGap Plugins Compiles error, no file, solution