How to create a apple watch project using phone gap - ios

I am new on phonegap .I want to develop a project for Apple watch. How to develop a project for Apple Watch using phonegap ? What is step to follow ?
Can i convert simple phonegap ios project in apple watch , is it possible then how ? if not so why ?

You have to create a typical cordova project and have to use one of these plugins:
https://www.npmjs.com/package/cordova-plugin-apple-watch
https://github.com/Telerik-Verified-Plugins/AppleWatch
The second one gives you some more options, but both are limited.
There is no way to create a webview based app for the watch, because the watch does not have a webview.
If you need more features, you have to write your own native watch app.

Related

Deploying app for personal use on iOS device

I want to build a very simple gallery like app (which uses the Telegram bot API to fetch images from certain telegram channel). I want to have this app for both Android and iOS device. I guess either progressive web app or flutter could be used to achieve this. I have developed native android apps before, and wish to learn PWA or flutter along with this project.
So my question is, can I deploy this app to my iOS device without enrolling in the Apple developer program? Since this is only for personal use and I do not wish to publish this app on any app store. Also, do I need to have a Mac with Xcode to do this?!
Thanks in advance!
For developing a Progressive Web App for iOS, you won't need Xcode and a Macbook since it is basically still a website with enhancements. However, bear in mind that PWA support on iOS is very limited. Android has much better PWA support.
This article gives an overview of what is currently possible

creating iOS app for Apple TV using titanium appcelerator

I have created iOS app using appcelerator titanium I want to know if this created app will run on Apple TV or will need to create separate app for Apple TV ?
The idea is to have single ipa that supports iPhone, iPad and Apple TV.
I googled but couldn't find any document where app can be created using Appcelerator for Apple TV.
There is an open request ticket at https://jira.appcelerator.org/browse/TIMOB-19570
So currently it is not supported
You could try to add it just like using the watchOS target in your app. It may require a bit more tooling when talking about resources, but in general they could be merged together.

Add Apple Watch app in Swift to current application in Ionic Framework on App Store

I have an app in the App Store, which is made in the Ionic 3 Framework (Angular).
I would like to make versions for Apple Watch. Unfortunately, I can not do it in the Ionic 3 Framework.
Therefore, I have a question:
I would like to make application for Apple Watch in Swift language.
Is it possible to add an application Apple Watch standalone version made in Swift Xcode, to the current application, which is in the App Store?
So far I found that it might be possible to do that, you will have to communicate to the apple watch through a Cordova plugin like those : https://github.com/leecrossley/cordova-plugin-apple-watch and https://github.com/DVenkatesh/cordova-plugin-watchconnectivity.
But it seams that they are only supporting watchOS 2.0, so I think that you can start your plugin by using one of those and change the code to make it work on watchOS 4.0.
You can see the documentation about cordova plugin here : https://cordova.apache.org/docs/en/latest/guide/platforms/ios/plugin.html
You can look at this post : How to realize communication between Cordova App and Native WatchKit Extension this guy were able to do it.
If I have more developpement about the subject I will let you know.
UPDATE :
I have been able to establish a communication between my mobile and watch app. I have forked an existing project to make it work on ionic 3.0 (https://github.com/plbolduc/cordova-plugin-watchconnectivity)

Distribute a PhoneGap compiled IOS app without the Apple's app store

i want to know if its possible to distribute a phonegap app, without the app store.
Is there any way to achieve this?
Using phonegap build is this possible?
I saw this docs by apple, using enterprise solution, but i cant see how i can use it with phonegap.
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingEnterpriseProgramApps/DistributingEnterpriseProgramApps.html
Enterprise account works irrespective of app is built in Hybrid or native.
Yes using PhonoGap build its possible to archive, However even using terminal on mac you can generate the project and archive in regular method.

Can we merge Hybrid app with Native iOS App?

I have one Hybrid app(build on Phonegap) and one iOS App. The requirement is to merge both app into single app. some functionality drive from native and some through hybrid, is it possible?
Yes, it's possible. You can embed the phonegap webview in any native app, but as you already have the phonegap app created I recommend you to add the iOS app inside the phonegap app as if you do so, you don't have to manually add and configure phonegap in your native app.
You'll need a native tabbar controller or something like that to switch between the native view/viewcontroller and the phonegap view/viewcontroller
Here you can find the information about phonegap as a component (embeding phonegap webview, also called cleaver), but I couldn't make it work to add phonegap plugins since phonegap 3.0, that's why I recommended you to start from the phonegap app instead embedding the phonegap webview in your native app
Yes, you can add the cocoa native app as plugin in PhoneGap and then configure it with config file.

Resources