How advanced can I make the controller? - airconsole

Specifically is it possible to draw a line on your phone and pass that shape to the screen? Or can I only have buttons on the controller. Thanks!

Your controller is a (mobile) website. That means you can have everything a mobile website can also do such as buttons (touchevent), swipe/gestures functionality (touchmove etc, see e.g. hammer.js), use device motions, camera,...
So if you manage to draw lines on a mobile website, you can also use it for an AirConsole controller. Just keep in mind the latency: drawing lines in realtime on your phone and displaying it on the screen may have some delay.
Also sending messages on a touchmove event is a limitation.

Related

Laravel 5.2 Popup User Notifications in Browser - Examples, Tips?

I have a guitar lessons site where I want to notify users (guests or logged in) about new notifications in real or near real time. I followed this example:
https://blog.pusher.com/writing-realtime-apps-with-laravel-5-and-pusher
I have an event set up, I have pusher account, I have things working as described in the above link.
But... I would like to have the notifications show up the way notifications appear on a lot of other sites. Namely, where a small popup appears on bottom right corner of browser regardless of where user is scrolled on current page. Or maybe where a message bar would appear on top of browser regaardless of where user is scrolled. In any case, I can't find examples of 5.2 notifications in this manner. All I see are examples of using a message div in a blade file and having the div populated via the pusher code in the blade. So I imagine to do do what I want is similar in spirit, just requiring some extra front end steps that are not clear to me yet.
Tips, examples appreciated!
Thanks
Well you can use a common laravel blade file (with pusher code) and inherit that file in all blade templates.
Now using jquery growl (http://ksylvest.github.io/jquery-growl/) or alert box of your choice you can show the popups on any page you want.

It's possible to trigger an action in my Air app, from a link in a webview?

I'm planning on create a desktop app for a customer, which will be basically a webview (displaying some page only accessible in this app), and two widgets.
But this page needs to have a couple of links/buttons that will trigger some events (outside the webview, obviously) in the app, calling the widgets.
It is possible? How?
I've made a little research and didn't found any resource on that.
Thanks in advance!
You can use JavaScript to call Action Script 3 (and also you can call JS methods from AS3) methods using ExternalInterface (http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cb2.html).

How to dismiss pages

I'm playing around with the wearable SDK and created some additional pages for my sample app.
Is there a convenient way to dismiss / delete a single page by e.g. swiping?
I just found calls for adding, but not for removing (even after an action)
As far as I know, this is not possible, because even a multi-page-notification is (from a technical point-of-view) just one single notification which can only disapper in its entirety.
The only possibility I see here is to set a pending intent to a broadcast receiver, figure somehow out on which page the user was when dismissing the notification, and then create a new notification without this page.

How can I open the app from the url of calendar like Blackberry travel?

I´m developing an app like Blackberry Travel. In Blackberry Travel, when add a flight, it adds in the calendar. In this event has 'Notes', where appears a url to load the app and see the flight.
I need doing the same, but only the load the app behavior. So, I have two question:
How can I open the app from the url? I saw this but, when I use the sample HttpFilterDemo, when I click in the url www.rim.com that I typed in an event of the calendar, never execute setRequestProperty method.
How can I show 'Open with Blackberry' when I click in the url ?
It´s done!
A perfect example in blackberry developer documentation

RPX/Janrain - using an image map instead of the widget

I would like to use an image map for my Rpx/Janrain basic account instead of the widget they provide. I have tried looking through the javascript file, but it is minified so useless to me.
I just want the "login buttons" to be displayed in my header image with an area map and depending on the image area clicked launch in to the login for that service.
Thanks!
A bit late to the game but I will answer this for posterity. Unfortunately this isn't possible with the Basic app. Pro level and up allows you to customize your method of login. You would set janrain.settings.custom = true; in the settings in the head and use the janrain.engage.signin.triggerFlow(provider) function in the image map areas to kick off the various identity provider sign in pages.
See http://developers.janrain.com/documentation/widgets/social-sign-in-widget/users-guide/coding-the-widget-appearance/ for examples.

Resources