cv-library / phonegap-plugin-dropbox-chooser

Dropbox Chooser plugin for Cordova/Phonegap
Other
8 stars 11 forks source link

infoPlist url scheme conflicts issues #3

Open shrewdact opened 9 years ago

shrewdact commented 9 years ago

I ran across a problem with this plugin.
I guess the problem is on iOS *-Info.plist, URL_SCHME conflicts with LaunchMyApp's URL_SCHEME.

I followed the guide of installation for iOS as below. First, I installed the plugin and replaced $APP_ID, $DROPBOX_APP_KEY with my own values in plugin.xml file. Then I added cordova ios platform.

As the LaunchMyApp plugin should be installed with '--variable URL_SCHEME=xxx' option, this has to be installed after platform is added.

I found that dropbox chooser plugin overwrites target node of plist before LaunchMyApps tries to update the plist file. Strangely, launchMyApp info is not updated, after DropboxChooser has installed.

To figure out any solution, I have tried setting the info.plist file manually to have both plugins installed such as mixing those two setting values.

With setting info.plist CFBundleURLTypes like below, LaunchMyApp partially worked. What it mean is LaunchMyApp switched app but after then url was not opened. screen shot 2015-05-28 at 5 20 40 pm

Though I assume this two plugins conflict and tried many options, I have no luck to solve this problem.

I would appreciate if someone could help.