-
Notifications
You must be signed in to change notification settings - Fork 0
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
Upgrade all dependencies and create a new build for iOS #1
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, you made it work ... congratulations!!
Some notes and questions.
Regarding deployment: Is the app at-risk of being unpublished in the iOS app store? If yes, then we'd better get this published. If not, then let's focus on the Android app first, test and make it work, publish in Google Play, then publish the iOS app later. |
From https://developer.apple.com/support/certificates/ I don't think we are at any risk of app being unpublished. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
Now I'm curious how Android is doing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super Madhu, that you managed to get it building again and upgraded Cordova!
One comment about setup, otherwise ready to merge :)
Now I'll have a look at Android, which unfortunately doesn't build yet. I think plugins need to be updated / replaced for that.
npm i | ||
npx cordova requirements # check requirements for building the app | ||
npx cordova platform add ios # only on iOS supported platform | ||
npx cordova platform add android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest
npm install
npx cordova platform add ios # when building iOS app on Mac OS
npx cordova platform add android # when building Android app
npx cordova requirements # check build requirements
npx cordova build ios # when building iOS app on Mac OS
npx cordova build android # when building Android app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, feel free to do so!
Also, I would really like to make sure everything is tested (and I can only do that on Android), like various ways of navigating, barcode scanning, network online/offline in different conditions. |
Yes I am testing too and it seems like there's some issue with custom scheme and scanning doesn't work properly. 😞 |
The barcode scanner doesn't open and the error seems to be:
I've tried these config in Info.plist without much luck: <key>LSApplicationQueriesSchemes</key>
<array>
<string>app</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict> And have the same issue with opening Related old PR, perhaps this needs to be merged in order to make it work? @wvengen apache/cordova-plugin-inappbrowser#274 |
Another note: many of the cordova plugins seem to be unmaintained and haven't been updated since 3-4 years. It may be the end of life for cordova. Something to consider for the future - to switch to a different technology like ReactNative. |
I see that many of the current plugins have not been upgraded yet, I'd expect that to be important for a succesful upgrade.
That is something we don't have capacity for, as it is basically creating a new front-end. Cordova, or any other embed-website-app-framework, would still be preferred. Ideally, we wouldn't need an app anymore, but use this website-as-app thing (but I don't think barcode scanning has made it yet to browsers - except a slow JS-based version using the webcam that doesn't cut it on lower-end devices at least). |
Bummer, too bad it didn't work out to get this merged. Thing is, at the time I had hoped my Cordova changes would have been accepted by the time a new upgrade was due. But because my contribution was just before Cordova's WKWebView introduction, I didn't have the time to develop it there. Sad it didn't work out. Now we either need make these changes, and hope to get them upstream (a better chance, hopefully). Or use a wholly different approach for the app, now this is becoming more time-consuming ... :( E.g. load within the app (not in an inAppBrowser - but that is a lot less safe with all these external scripts and embeds in the website), or use another website wrapping framework. It seems Cordova is fading indeed. Capacitor seems a similar alternative, and even mentions migration from Cordova. But it is still a lot of work. Perhaps it makes sense to reconsider how much work we want to put in maintaining the app ... |
Since the app is not at the risk of being unpublished any time soon, I'd say we can give capacitor a try in the coming time. ReactNative along side https://github.com/react-native-webview/react-native-webview is also an option to consider. |
Ah, that's a good idea, now I understand you better :) It's a bit of overkill in terms of size (shipping all the RN code including its own JS runtime), but could be a good idea in terms of development speed - especially considering we have some RN experience. |
closes https://github.com/q-m/questionmark-web/issues/370