16
gitpush
7y

one gotta love Cordova piece of shit -.-
Tested app on browser all is good, deployed on phone and that shit wasn't able to access internet, turned out I needed another cordova plugin for this shit to work.

XCode, I'm sorry bro you are much less pain than cordova :(

Comments
  • 2
    Lol πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚ how many tech stacks do u work on?!
  • 2
    @Electrux do you really need to know :P
  • 1
    @gitpush now that u mention it, yes 😌
  • 2
    @Electrux I work on:
    I do mobile apps, I just try to learn everything related to them, for example native, hybrid: React Native, Ionic (just have an idea about it never actually built a project with it), learning Flutter (Dart from Google), Xamarin (C#)
    So that I can handle any task that might come, but if its up to me I'd go native and never use hybrid shit
  • 0
    @notcool in cordova/phonegap I only stick with building the app NEVER EVER THINK of diving deeper tbh
  • 2
    @gitpush wow that’s a lot 😎😎
  • 1
    @notcool for a simple app it has most that you want. The one we built didn't require native code, but they have a tutorial on how to do both.
    React is easier to build even for websites, but for me I'd rather have two code basis unless that hybrid language is supported internally by the system and not a hacky way like using a WebView to launch the app ...etc.

    Or like I first tried phonegape, that shit installed two apps to run the original app ...
  • 1
    @Electrux well, life ain't easy and market requirements changes a lot :( T_T
  • 2
    @notcool in react it does by default, based on which platform you run it shows the stuff.

    There are platform specific components, but you can also build yours in native and use it in react native as if it was a react component
  • 1
    @notcool good luck :D
  • 1
    @gitpush React Native doesn't use WebViews. It's JS code controlling a native View. That's why it looks native by default. πŸ˜‰
  • 1
    @gitpush m so doomed 😨
  • 1
    @notcool I haven't written any native code in React Native, but from what I could see from the docs and some modules I dared to open the source, it's not that hard. There's a bridging mechanism in React Native that helps you transfer data from native code to JS code.
  • 0
    @shellbug well thats something new to me. but how is this possible? When I want JS to interact with native I usually have to add listener from native to the webpage I'm using
  • 1
    On Android yo need internet permission and the plug-in for access Network and access Network state
  • 0
    @JMente it was there in the manifest file, the missing thing was a cordova plug-in
  • 1
    @gitpush not only manifest in your HTML file add or remove the tags with the whitelist config and add the access-origin in config.xml to allow request from every or only a domain.
  • 0
    @JMente also did that but also didn't work until I installed the Cordova plug-in
Add Comment