Launch App Store in Apple TV - tvos

Is it possible to launch App Store in Apple TV from an external accessory which has MFi chip. I tried opening from my app using openURL
UIApplication.shared.openURL(url)
But I want to open from an external hardware accessory.
Thanks

Yes it can be done using "App Launch" feature supported from tvOS 10.0.1.
tvOS 10.0.1 introduced support for App Launch, the ability for accessories to prompt users to launch or install companion apps just like on iOS. For example, MFi gaming controllers usually have companion apps that catalog compatible software and handle upgrading controller firmware.
When initially pairing an MFi gaming controller to Apple TV, tvOS could prompt the user to launch or install the companion app automatically.

Related

Creating a cross platform runtime AIR app

I am compiling an AIR application from Animate CC (mac version) with runtime embedded. No issues on the mac, but when i transfer the app file to a PC (running windows obviously), the app icon displays as a folder instead, and there is nothing within this folder that I can click on to run the app.
I was under the impression that Adobe AIR is cross platform compatible, so am I doing something wrong when compiling, or do I have to compile on a PC to create a runtime embedded app that will run on Windows?
It's impossible to launch Mac app on Windows. Because embed runtimes are different for Win/Mac. Here you can get some more info https://superuser.com/questions/56739/executable-files-in-mac-os-x-vs-windows.
So you either build 'Mac projector' and run it on Mac or 'Windows projector' to run on Windows (you can change this option in File -> Publish Settings). Tick both options and you'll be able to run it on Win and Mac.
One more option is to build AIR app - but it will require AIR runtime installed.
You're correct that Adobe AIR is cross platform compatible, but publishing from a Mac doesn't give you a Windows-runnable app, nor does publishing from Windows give you a Mac-runnable app.
You'll need to compile on a PC to get a Windows-runnable .exe

Can I test tvOS apps on the AppleTV?

I'm aware the deadline for the developer kit for AppleTV has now passed some time ago.
What I'm confused by is, is it not possible to test tvOS apps on the actual AppleTV itself?
Is it possible to say hook up your mac with the tv device via HDMI and test it that way, like the way you do with other apps?
Many thanks
The dev kit is an actual AppleTV and was recently updated to the official tvOS release. You can test tvOS apps on it (or any other AppleTV) by connecting it to your Mac with a USB-C cable.
I have made a video showing how to test an app in Apple TV with TestFlight. https://youtu.be/Bsgdnl3dd4U .
Install TestFlight in your Apple TV first
Use "redeem code" to be able to see the apps in your TestFlight
Afterwards, you can see your beta versions on TestFlight.
To run your tvOS app on an AppleTV on your local wifi network:
On your AppleTV go to Settings > Remotes and Devices > Remote App and Devices.
In Xcode open Window > Devices and Simulators. You should see your AppleTV listed there.
Press the 'Pair' button and fill the 6 digit code shown on the tv.

AIR SDK: want to move flash cs6 app to RCT6378W2 RCA tablet

I'm trying to move an app created in flash professional cs6 to my 7" RCA tablet (serial number:RCT6378W2), but when I try to publish it, flash doesn't register the device as connected at all. The device is connected to my PC running windows 7 64 bit via USB to mini-USB. The device shows up in the computer panel as if it is connected. I have USB debugging activated on the device, I have the android SDK as well just to be sure I'm running the appropriate drivers to make up for the lack of drivers built into the RCA tablets for USB. The device runs android version 4.2.2 with jelly bean. I've already created the APK file through FLASH from the SWF. So, after all that I've been trying to bypass publishing and simply use the AIR SDK to download the app to the device using ADT commands and arguments.
adt -installApp -platform android -device RCT6378W2 -package C:\users\me\Desktop\FILE.apk
the command line returns either one of the following errors:
invalid argument
invalid device
To be clear, flash won't recognize the device when publishing. I've entered all of the appropriate info in the publishing settings, created a certificate, I even have the APK file ready to go saved on my desktop.
Does anyone have any experience with this situation, is the tablet simply not able to handle what I'm asking? Am I approaching this the wrong way? Any thoughts at all are appreciated.
Running adb with the 'devices' keyword and NOT getting any devices listed should tell you that you DON'T have a suitable USB driver installed.
Try the 'universal' driver found here:
http://download.clockworkmod.com/test/UniversalAdbDriverSetup6.msi
Restart your computer for good luck and then run adb again. Make sure that your tablet is connected to your PC and tat your cable is good. When your device is finally recognized by adb you can then see if you still have a publishing problem.

How to enable push notifications in AIR app?

Is there a way to enable push notifications in an AIR-enabled app? I have an iOS native app I would like to try and port to AIR, I have the proper provisioning profile and certificate, etc.
thanks,
Push notifications are not natively supported in AIR, but there are Native Extensions (ANEs) that let you have this functionality.
The guys from Fresh Planet developed several ANEs that are available with an open source license. I, myself, am using the Push Notification ANE they provided.
Check it out:
https://github.com/freshplanet
Push notifications are not supported in AIR till the latest released version 3.3

Run AIR app without AIR runtime files

I've made an AIR app with Flash Builder 4. Works great but I want to run the app without installing it. So..... when I install the app, I copy the files from program files and paste it on a CD and give it to somebody. He runs it on another computer without AIR runtime with as result that it doesn't work.
How can I bypass this? Like some launcher/setup that installs AIR runtime for the client if it aint installed. If it is installed, run the AIR app.
Thanks.
Creating an AIR Badge would be a good option.
The idea is you pass a link to the client, the AIR Badge check if
AIR is installed. If it is, installs your app, otherwise installs AIR
first.
There's a pretty good AIR Badger tutorial on the Adobe Developer Connection site. AIR Badger is an AIR App Grant Skinner wrote to make the setup easier.
Also check out the new AIR Launchpad, which is another AIR app that helps you get started with all sort of AIR related functions, including install badge.
Unfortunately the AIR Badger works online.
You cannot bypass AIR install. Maybe have a third party utility(batch script/etc.) that looks for air related files/.air filetype associations and based on that launches an AIR installer you supply on CD or the app itself.
On osx you have the mdls command that displays information about a file. You could check for kMDItemKind:
mdls -name kMDItemKind /path/to/yourApp.air
If it prints "com.adobe.air.InstallerPackage", then air should be installed, otherwise it will just print "Document".
There should be something similar for windows command prompt that checks registry file type associations.
After you've done that check, install AIR first or just the app, depending on the result.
HTH