We have a simple apple tv app that is basically a static ad. Our apple tv is the latest (4th gen, tvOS 10.0.1). The problem is we do not have an external server!!! so how can we by pass the lines below or make it point to a local application.js file:
static let tvBaseURL = "http://localhost:9001"
static let tvBootURL = "\(AppDelegate.tvBaseURL)/application.js"
Are we required to have a server for developing apple tv apps? We have seen other examples on stack on how to do this but they are outdated and/or for older devices. Any help would be appreciated. It's either we get this working or go back to AndroidTV
It is not necessary to use external server in tvOS apps (even for the latest tvOS 10). You can use UIKit like in iOS applications to build application without JavaScript. Also, you can create hybrid application (Swift+JavaScript) where external server is also not required.
Related
In WWDC 2015 it is mentioned that watch supports native apps but I fail to see the option in new Xcode 7 for the way to just build an apple watch app without the companion app. Please let me know the way to do so, if it exists.
In fact, watchOS apps are linked to the iOS companion app.
In both versions, each watchOS app has two targets: WatchKit App - which contains storyboard, icons, etc - and WatchKit Extension, which contains the code.
In watchOS 1 (old WatchKit) + iOS 8 combination, WatchKit App is installed on Apple Watch, and both WatchKit Extension and iOS app are installed on user's iPhone.
In other way, in watchOS 2 + iOS 9 combination, both WatchKit App and WatchKit Extension are installed on user's Apple Watch, and iOS App is the only code and view installed on iPhone.
Running iOS app only requires one target, so it can run without Apple Watch (since the first iPhone OS).
But running watchOS apps needs both WatchKit App and WatchKit Extension. In watchOS 1 (the old WatchKit) because one is on iPhone and other on Apple Watch, so running apps need connecting between them with Bluetooth, so you have to carry your iPhone nearby. In watchOS 2, both are on Apple Watch, so running apps does not need connecting to iPhone and having iPhone nearby. You can connect them with WatchConnectivity framework included in watchOS 2 SDK (in Xcode 7).
So in watchOS 2 apps can run standalone, but they are not standalone at all. They install on Apple Watch when installing on iPhone, and they can connect with each other. When you create a new watchOS App, you must include it with your iPhone app when submitting it to the iTunes Connect.
NOTE: This makes watchOS apps faster and more reliable.
You can't build native watch apps yet. Maybe in a later build of Xcode 7, but so far all Apple has announced is that "at some point in the near future" you will be able to build a native Watch app.
In watchOS 2, watch apps are "native" in the sense that the WatchKit extension now runs on the Apple Watch instead of the user's iPhone. This means it can no longer share data with the iPhone app using shared app groups but must instead use the new Watch Connectivity framework to pass data back and forth. It also means that watch apps can be much faster and much more capable without the phone being present.
However, a watch app must still be bundled with a companion iOS app, at least for this year.
In iOS 13 it's possible to create independent watchOS application. More information can be found here. You have to download Xcode 11 to be able to create independent watchOS application.
To create it simply go to File -> New -> Project and select watchOS -> App as it's shown on a screenshot:
I am just starting out experimenting with using Phone Gap to create an Iphone app, and in the Get Started guide it says a requirement is Mac OS X Snow Leopard (10.6).
Link
I thought it was possible do Phone Gap development on any machine using HTML/CSS/Javascript?
Phone Gap can build the app for you in is own server: https://build.phonegap.com/ . With that you don't need a mac to develop your app.
If you need private apps, this feature isn't free.
PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. If the platform is supposed to produce a native iOS app (that can be submitted to AppStore) then you need to have Mac OS because Objective-C is supported on Mac/XCode.
More from their website:
The process for completing iOS builds is slightly different than that
for other platforms: all iOS builds need to be signed by a developer
certificate and a provisioning profile, that is tied to your Apple
developer account and the device you wish to test on. This document
covers how to set this up.
Note: Since PhoneGap Build uses Apple's standard development process
to build applications, you will need to sign up for their developer
program to build iOS applications on PhoneGap Build. You will also
need a Mac to configure your certificate and provisioning profile.
actually using phonegap application u can run your application in iPhone , Android & so many Phone application with single code which is written using html-5 ,css , jQuery , javaScript & jQuery mobile.
but if you want to post your application on apple app store then you have to have XCode which can run in only mac os.
so while you are designing or implementation time you not need mac os. all you need is notepad & html 5 supported browser.(for testing) Thats it.
Using Ios 4.0
I want to build a project throw which we can remote access other i phone through one.Is it possible in any cases, its totally idea in dreams i don't know whether it is visible or not.
I haven't s
Thanks.
There are applications that allow mac/windows desktop sharing from an iphone/ipad (example RemotePC, Splashtop). And there are applications which allow you to access the iPhone screen from a desktop (Veency VNC). Hence accessing iPhone from another also should be possible.
You can also check out Game Kit for connecting iOS devices
I am developing an application in iOS 4.0, after having made several apps in Symbian S60v3.
Where I am stuck in iOS is that I want to access a file from the device which is saved from a third-party application to some location on the device.
In the case of symbian I knew its location: System\Data\xyz\alpha.inf, but with iOS I don't know how to access the location.
You can't. It is one of the security features in iOS that applications are sandboxed and cannot share data at all.
I have been looking for a way to show the iPhone screen (not the simulator) on a monitor or projector for demo purposes.
Previous SO post suggested jailbreak (Veency, iDemo/DemoGod, screensplitr) or simulator.
Release notes iOS 3.2 (External Display Support) and iOS 4.0 (Inherited Improvements) mentions that it should be possible to connect external displays to iOS 4.0 devices.
Is it now possible to demo an iPhone device on a monitor without using the simulator, or are the release notes about other improvements?
Anyone tried to display an iOS 4.0 device on a projector or monitor?
Update 22.Jul.2010:
To mirror iPhone screen: Jailbreak
and use Veency, iDemo or
screensplitr
To output to
external device from your
application: Implement External Display Support in your app in iOS
3.2, 4.0
Update 15.Apr.2011 ;))
It is now possible to mirror iPad2 on a monitor
Update 1.Dec.2011:
It is now possible to mirror iPhone 4S on a monitor
The iPhone 4 supports the VGA adapter that launched with the iPad. Within your application, any external display appears as an additional UIScreen instance. You can create a UIWindow, associate it with the UIScreen, and place content there that you would like to have displayed on the secondary monitor.
I show how to do this in the video for the iPad session of my course on iTunes U, and provide some code for this in the course notes. Matt Gemmell also has a nice writeup on the subject.
http://code.google.com/p/iphoneos-screen-mirroring/ Has code to allow you to mirror your screen using the cables mentioned above. This code uses private apis so make sure you don't ship with it. This can be done by creating a new target in xcode and conditionally compiling the mirroring code in.
Check Apple Composite AV Cable and Apple Component AV Cable. These connect to a TV and computer so may be you can find a way to get it on a projector.
Since iPad 2 "The Apple VGA Adapter mirrors exactly what you see on iPad 2 so that everyone in the room can enjoy it." Same hardware that needs special coding on original iPad then on iPad 2 by default mirrors.
If you are using a smart TV as a monitor, you can use the AirPlay function. However, not all Smart TVs support this function. You can simply test it by connecting your iPhone and TV to the same network to see if you can use AirPlay. If not, you can try MirrorMeister's free mirroring app, it works on all iOS and macOS devices as long as you connect to the same Wi-Fi.