Adding Apple in-app purchase to Electron HTML/JS app - javascript

Is there a way to add Mac App Store in-app purchase to Electron HTML/JS application? There are app store modules for Phonegap, Nativescript, ImpactJS etc but I can't seem to find anything for Electron or pure JS.

As suggested in one of the similar GitHub issues, you can try out customising nodobjc module.

A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows. https://github.com/voltrue2/in-app-purchase

From what I can see on this post, no one has really given a thorough answer.
I need to do in app purchases in my Electron app for the Mac App Store. It doesn't seem like anyone has figured out how to do that yet, so I've created a post with a 300 reputation points worth of bounty. If you think you can get more specific with how you'd do in app purchases, please let me know in there:
Implementing in-app purchase in an Electron app for the Mac App Store

Related

Google sign-in in an Electron.js application not working

I'm making a desktop app version of a website with electron. The desktop app itself works, but the google sign in does not work because "this browser is not secure."
Opening the sign-in page in a secure browser will not work here because i did not make the actual sign-in version itself, I am only making the desktop app version.
I've seen other posts where they say to change the userAgent, but Google has disabled that, so it will not work.
I also have used a solution with nativefier app --userAgent..., but the Windows and Linux versions become messy with a bunch of extra files after building. I would like to get a single .exe file for Windows and a single .AppImage or .deb file or similar for Linux if possible.
If you have any solutions or workarounds for this, please let me know. Thanks!
I managed to log in with Google using this package: getstation/electron-google-oauth2. This package will open a browser window for the log in, then successfully pass it to Electron app. There are examples in the readme demonstrating how to make it work.
Also make sure that you configure a desktop OAuth 2.0 Client ID for the app:

How to publish React JS PWA in Amazon app store?

I am creating a React JS PWA web app, so that the users can install it on their mobile devices. Now the client ask to find out a way to push these PWA apps to amazon app store. So my query is whether we have tools for converting the Progressive Web Apps as APK or HTML5 Web app files so that we can put them to amazon app store.
I googled a bit and I am confused, but I am not sure which one is the right one to use and whether we can publish a PWA app to the amazon app store
Any help on this will be very grateful.
Thanks.
PWA needs a browser to be executed. So if you want yo package your pwa as apk(android) you will need to implement a kind of mini-browser with pure android.
Fortunately, this task is very common and there are even online services to do that:
https://appmaker.xyz/pwa-to-apk/
https://pwatoapp.com/
Or if you know java:
https://github.com/xtools-at/Android-PWA-Wrapper
Or c++
https://github.com/RikudouSage/PwaToTwa
Or nodejs
https://github.com/pwa-builder/CloudAPK
You can use the Amazon Web App Tester to verify how your Web app behaves when Published to the Amazon App Store: https://developer.amazon.com/docs/fire-tablets/webapp-app-tester.html
If it performs correctly in the tester, you can then publish the URL directly or upload your files. The full process is described here: https://developer.amazon.com/docs/app-submission/publish-app-webapp-files.html

Apple store - react native binary refused

I'm currently facing an issue trying to publish an update of my app in the Apple store.
When the app tries to connect to the API, the loader spins indefinitely.
When I test my app in all conditions it works perfectly.
I tried my app :
with different IOS version (including the 14.1 of IOS),
in debug mode,
in release mode,
with the testFlight app on an Iphone device
I also tried the connection with a VPN to check the server connection from another location
Moreover, I didn't change anything in my code that could alter the connection between the app and the server.
The app also works perfectly on Android.
The problem was solved making appeal of the reviewer's decision ... The app was totaly ok ...
I have same issue too. I tested my app all the way like you said. Also test with NT64 Internet Sharing too and i haven't get any issue like Apple said. They can't connect our api.

React Native JS concern

I am new to react-native world. Following few tutorials, I found that it react-native app runs on javascript engine on mobile. I am following ios tutorial. So when I go to localhost:8081/index.ios.bundle it loads JS for the app. I know I can use ngrok to manipulate this URL.
I have multiple concerns with this:-
If I change the URL of js from something local to something remote, this would result in a completely new app and now I don't need to go through the App Store to upgrade my app version. Can this be a potential issue in the future?
Since anybody can open this JS in a browser which might have important information like client id and secret for the app, can this be an issue as well?
I am not 100% sure. You can indeed update hybrid app easier and if it is only a quick fix you don't need to go through apple store verification process. Apple can also delete your app and ban you if you don't follow guidelines. Usually your js is local in production for instant app start time, and the network is used only for fresh data.
This is solved with an authentication mechanism.

Meteor.js deploy for web and mobile native app, one code-base

So this maybe a silly question, but i guess I'm missing something.
I host my meteor app in modulus.com.
The goal is to have a single code-base for all devices and the web, fetching from the same database.
So everything happens in the web is immediately synced with the mobile app or vice versa.
Should i provide different builds (different modulus projects [web, ios, android]) all connected to the same db to make it all work as one application?
A single build will do?
How will this work?
thanks
Yes, you can use the --server option to specify which Meteor server your built mobile app should point to. This way, you have one Meteor backend running the web app, Android app, and iOS app. This should work just fine with Modulus.

Categories

Resources