Comments (4)
That sounds promising, we'll look into it.
Thanks 👍
from cordova_sdk.
Looks like you've considered my suggestion. Nice! However, I'm a little confused why you are using a cordova hook to replace strings in your javascript file rather than just injecting the values directly into the AndroidManifest.xml and *-Info.plist and reading them out in the native portion of the app. Seems like an unnecessary detour and is rather uncommon for a Cordova plugin. Again, I suggest reading the Cordova Plugin Specification for this (see link in my first comment). If you need any help with this, let me know!
from cordova_sdk.
Hi. Thanks for the feedback.
The script for the string replace was taken from the article Three hooks your Cordova/PhoneGap project needs. Since the way we load the config values in both Android and iOS is done directly through function parameters and not file properties, we thought this was the most direct way.
We'll be happy to do it a better way if you know it. The best way would be to do a Pull Request so we could review it. The Cordova Plugin Specification is not, unfortunately, as complete or easy to use. So if you have another source of knowledge on that part, we'll be happy to consider it.
Hope that was helpful and thanks for the suggestion.
from cordova_sdk.
I think that article is targeted more towards Cordova users rather than plugin authors. The main problem with this approach is that it requires the user to manually install a git hook, which is not optimal, also, it would be nicer if parameter like the app token and log level could be managed via the config.xml rather than requiring and additional config file. Perhaps I'll take a stab at it when I have the time.
from cordova_sdk.
Related Issues (20)
- iOS crashing on launch with: "-[UIDevice adjTrackingEnabled]: unrecognized selector sent to instance 0x600000e8d480" HOT 6
- Ad transparancy popup background is coming as black instead of app screen in ionic Cordova based application HOT 1
- CordovaError: Failed to fetch plugin https://github.com/CesarBalzer/Cordova-Plugin-BTPrinter.git HOT 1
- [ERROR] An error occurred while running subprocess cordova. HOT 1
- Cordova Sdk integration - adjust HOT 2
- Ionic 3 issue - adjustConfig.hasConversionValueUpdatedCallbackListener is not a function HOT 11
- Capacitor instructions HOT 23
- Error on Adjust.create() HOT 6
- Update Android SDK to Version 4.28.9 HOT 2
- Error on IOs : +[NSString adjJoin:]: unrecognized selector sent to class 0x7fff86500530 HOT 3
- Enabling iOS frameworks HOT 1
- Adjust.create() crashes the App with unrecognized selector sent to class HOT 4
- Build error on mac M1 with the simulator HOT 3
- Installation fails and then XCode build fails HOT 7
- Cannot get access to Adid() function - (CDVPlugin class AdjustCordova (pluginName: adjust) does not exist.) HOT 2
- Play Referrer installs - attribution problem HOT 5
- Installation tutorial incomplete
- sdk no more compatible with Google Play Store HOT 5
- TypeError: adjustConfig.hasSkad4ConversionValueUpdatedCallbackListener is not a function HOT 4
- Help me ,God bless you
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova_sdk.