Is there an alternative to Adobe PhoneGap and Appcelerator Titanium? - javascript

I just want a framework that allows me to build cross platform apps with HTML5 for at least iOS and Android. The problem that I'm having here is that I can't build PhoneGap or Appcelerator Titanium apps for iOS since I don't have a $99 developer subscription. I might have one in the future, but for now I can't. Is there anything like these frameworks around that doesn't require a iOS serial? I don't want to use one of those online tools that don't require coding. Preferably something like PhoneGap so I can access some of the phone's sensors, like the GPS and Camera.

If you want to publish in the App Store, you need a developer account. In order to get into the App Store, your app must first go through Apple's internal approval process, and you can only apply for that approval if you have an account.
The only way to publish in the App Store without your own account is to piggyback on someone else's account (e.g., publish it under a friend's account). It's unlikely that any publication service would let you piggyback on their account: what if you tried to publish malicious code and got their account in trouble with Apple?
If you don't need to publish in the App Store, your unapproved iOS app is still runable on jailbroken devices. If you do want to have your app in the App Store, you must get an account.

Related

Web App runs inside Webview and installed like a native App

I created a Web App(PWA) via React and Bootstrap. It runs perfectly. I planned to create an Android and another iOS Apps that have only one page with a Webview that loads my Web App via URL and ship those Apps to the customer.
My question is that there is a better and standard way to this? I heard about Hybrid Frameworks like IONIC but as I understand, IONIC Apps, Are web Apps that run on device not loaded from a URL, Is that right?
What I want is that my changes in the server affect all users and Apps installed on their devices. Because of that, I created the PWA App, not the Native App. I searched a lot but I can't reach a final decision.
Used to be I was an Android developer and had a lot of problems with shipping the latest version to the customer, Now I want to use Web-based technologies to reach Apps that works like a website.
The issue here is: you will not be able to use the devices resources if you load the PWA in a Webview. For example push notifications will not work. A PWA can be installed onto a phone and windows as an application. This will have push notification on Android and Windows but not on Mac or iOS (Safari is the new IE). You need to go Hybrid or back to Native if you need more.
You are right with IONIC. It is a wrapper for a webapp stored on the device but it allows us to use native features (push works on both Android and iOS). But you still have the distribution issue since you need to publish to the stores every version. Not even mentioning the hoops apple gets you through when you try to publish.
The good thing with IONIC is you have a single source code for multiple platforms and you can choose the library you want to build with. It used to be Angular but now you can choose ReactJS, Vue, Angular or ES. Which makes it way friendlier.
With IONIC you could build the native features and lazy load the rest as dynamic component from a url: stackoverflow question if you do not care about backward compatibility.
I did both PWA and IONIC. Both has their pros and cons.
If I do not care about iOS and Apple I would stay with PWA otherwise IONIC.

How do I get a Phaser game onto the iOS App Store?

On my pc, I made a game with html, css, javascript, and phaser for the framework. I'd like to get this game on the iOS App Store. I have access to a mac so I could transfer my project onto it if I can't do everything on my pc.
What are my options for doing this? Or what would you recommend?
Releasing to the Apple App Store is a very stringent process, and there's really no room whatsoever for deviation from the intended process. You will outright need to transfer your project onto your Mac; iOS apps cannot be published without a Mac, as they require XCode to sign them.
Once you have your program on your Mac, you'll need to purchase a Developer Licence from Apple, making sure that you go for either Individual or Organisation (as those are the only licences that can publish to the Apple App Store). Note that not only do you need to join Apple's Developer Program, but also iTunes Connect (though this is free)!
After obtaining your licence, and setting up both accounts, you'll need to create a Provisioning Profile certificate for your developer(s) that you sign your app with through XCode, and create a unique identifier for your application.
From there it's just a matter of publishing it to the Apple Developer Program.
Once you upload, it will be placed into a Beta Review by Apple's testing team. Assuming it passes, you can add in all of the relevant store data and submit it to the store itself. This process usually takes a few days.
Hope this helps!

How can I forbid to switch to other applications except mine phonegap app?

I am writing application using PhoneGap I have to block a user switch to all other applications when my app is running. A user will have to submit some button to close my app. It is obligatory to use, because user should not have the access to browsers and other similar apps.
Besides, he should not access to all notifications from other applications.
So my application should work like "air mode", but have to forbid not only the calls and network, but all activity in background, in that way a user will work only with one app for a definite time.
It is possible to do?
Thanks for all
I found information about Guided Access for iOS. It looks pretty cool for my purpose to "limits your device to a single app and lets you control which app features are available."
But I have not the tools (may be plugins or smth else) for PhoneGap how can I manage this setting. Will be awesome to get read-only property whether the setting is On or Off.
P.S
There is phonegap plugin which allowed to check if application under Guided Access or not - mobile-accessibility
Links:
About Guided Access
Mobile accessibility phonegap plugin

android app with apache cordova

I'm developing a web app using HTML5,CSS3 and JavaScript.
Then I want to use the Apache ordova platform to generate a native android app from my web app but I still don't understand what do I need for this,specially do I need a server-side development with php for example??
First off i suggest you read this
Pretty much your app will be able to accomplish a little bit more than what you would be able to do in a browser if all you had available was the ability to write html/js*.
*by this i mean that you have access to device-specific hardware which is not available in a browser and a few more things but pretty much that's it.
You will need to install node.js (or io.js), then install cordova through npm, and make sure you have the Android SDK installed. Once you create your project, your html/css/js will be wrapped into a native webview component, you do not need any server to render it, effectively your app is a native app that can be installed from google play.
You will need a server, typically a RESTful API, if your app needs to query data remotely or persist to some third party. If you are thinking through a classic MVC mindset (render a page through some php code) then you probably need to read about cordova and how it works. A cordova app is a client-side only app, no server-side processing is possible unless through a network communication to a server you have access to on the internet. You can do persistence locally (to the android device) and even use a local database, but remember that this db exists on the device, so you won't be able to share information between users unless you somehow coordinate that through your app (and most likely a server-side app / rest api).
It is unlikely that your existing web app can be wrapped into a cordova app straight away, cordova apps are single page apps mostly.

CRITICAL issue with iOS, CocoonJS and Facebook

I've just published in the Apple's Appstore a CocoonJS powered Javascript game that integrates some Facebook functions. After creating my app to Facebook, I spent weeks testing it in the CocoonJS Launcher, and I found the following:
In iOS, the user should grant permissions to apps that tries to access Facebook through the phone's Settings -> Facebook, where a list of apps appear.
I did so with the CocoonJS Launcher and then Facebook started working as expected. However, the final app (generated through the Cloud Compiler) has just been published in the store and, after trying to access Facebook from within the app, the app says that the user should grant permission from Facebook's settings (as I did with the Launcher), but it doesn't appear at the phone's Settings -> Facebook (that is, the list of apps that use Facebook and where it appeared the Launcher).
I've created my app in Facebook, retrieved its ID number, put it in the CocoonJS Cloud Compiler (both for Apple and Android) and, of course, called the "init" function inside the game with the corresponding Facebook app code... Even though it worked with the Launcher, it doesn't work with the app, and now my app is alive and no Facebook integration can be done (which is a real mess, because almost every game function uses it now)...
How could I solve it? What can be happening? Might it have something to do with the Cloud Compiler, or maybe it's related to the JS code?
Thanks in advance for your time and effort! :)
As states in help center, do some testing first with a custom launcher:
http://support.ludei.com/hc/en-us/articles/200767268-Custom-Launcher
The CocoonJS launcher you download from the store has the configuration string of Ludei:
http://support.ludei.com/hc/en-us/articles/200924496-Social
The problem may not have been in the submission, but in the development of the application.
In case you feel it's a bug, please fill a bug report with the following template in their help center.
The template guide:
http://support.ludei.com/hc/en-us/articles/203459717-How-to-report-a-CocoonJS-bug
The forum to post the issue (troubleshooting section):
http://support.ludei.com/hc/communities/public/topics/200011348-Problems-Troubleshooting

Categories