2011-04-15 84 views

回答

4

phonegap plugin通過daniellmb建議效果很好。請記住以下幾點

  1. CORDOVA_FRAMEWORK在InAppPurchaseManager.h中,刪除所有的代碼。你會碰上inAppPurchaseManager.h沒有發現「CDVPlugin.h」文件,這既是進口應該如何看

    #import <Cordova/CDVPlugin.h> 
    #import <Cordova/NSData+Base64.h> 
    
  2. 如果你得到errror插件「InAppPurchaseManager」未找到,或不是CDVPlugin。檢查Cordova.plist中的插件映射。你必須添加以下Cordova.plist

    <key>InAppPurchaseManager</key> 
    <string>InAppPurchaseManager</string>