-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android:name="CordovaApp" vs. android:name="MainActivity" #1
Comments
Hi Felix, Thanks for this; just checked and my Cordova CLI was not the latest, so I was blissfully unaware that the guys at Cordova had helpfully changed the activity name. I'll integrate your suggested code changes (or a variant of them) when I have some time shortly. Cheers, |
Hi Dave, thats good news for issue #1. Felix Von: Dave Alden [mailto:[email protected]] Hi Felix, Thanks for this; just checked and my Cordova CLI was not the latest, so I was blissfully unaware that the guys at Cordova had helpfully changed the activity name. I'll integrate your suggested code changes (or a variant of them) when I have some time shortly. Cheers, — |
Fixed in v1.1.1 |
Hi Dave, your forgot to correct it in https://github.com/dpa99c/cordova-custom-config/blob/master/hooks/applyCustomConfig.js#L38 |
Oh, missed one. That's why programming shouldn't be done after drinking beer ;-) Guess it will be fixed in v1.1.2 :-) |
Works like a charm now. Tx. |
android: create parent path if not exist
Thank you for this great plugin.
With (the newest) Cordova CLI 5.3.1 and Cordova-Android 4.1.0 some preferences are not applied to the android manifest. We tracked this down to the following root cause:
In https://github.com/dpa99c/cordova-custom-config/blob/master/hooks/applyCustomConfig.js#L30 and the following lines you assume android:name="CordovaApp", but the cordova guys renamed the activity to 'MainActivity'.
This issue may be relevant for cli users only, I haven't tried to reproduce it on phonegap build service. The provided code changes should work with cli and pgb.
To support both activity names you could apply the following changes to your code:
That's it. Now your plugin supports 'old' and 'new' activity names.
Sorry for not providing a pull request for this, but I'm a litlle in hurry these days.
Felix
The text was updated successfully, but these errors were encountered: