I created a google action using Google action SDK web hook. When there are same responses in a row, the first message moves all the way to the top of the window, higher than normal display window. In certain Nest version, it even holds up the conversation.
Related
I am currently developing a flutter app, which contain 3 tabs, 1 for dashboard, for displaying activity, for setings,and one for profile.
in activity section I am hitting the API and displaying its result in cards , example, once clicking activity button API returns a JSON of some 10 data, so there are 10 cards gets created inside activity tab, each card once clicke internally calls the another api and display the result which consist of some entries like 5 header fields and corresponding its entries.
till here I am not facing any issue.
what I am trying to do is in dashboard section I want to create a container which show the last 3 clicked cards in the activity tab.
i.e a user logged in and he clicked on the activity inside that he clicked on any of the cards present and viewed its contents, I want to display those cards in my container inside dashboard, so he can view the last accessed cards in the dashboard itself to have the quick access, otherwise he has to go to activity section all time and to search for those cards.
can u help me with the approach so how can I keep track of the cards he accessed, and how to show those inside the dashboard.
For this kind of functionality you will need one list of cards which is accessible from activity and dashboard tab,
Then if user clicks on any card you can add that card object to your local list of cards.
And show that list of cards in dashboard.
This approach will work on local store only,
And if user left app the list will be null.
If you have any other specific situation, please elaborate the question,
I may further help you in that case.
This question is related to the question linked below, but instead deals with the interactive console included with the Facebook SDK:
Facebook Post to wall FB.Feed issue in Unity Facebook SDK
I have two screenshots to show the issue I'm having. This first screenshot is the FB.Feed dialog I get the first time I allow the app permission to post to my wall. It also shows if I invoke the dialog and I've given NO permission for it to post.
This particular dialog has trouble displaying the app's icon. It also grays out the entire screen, and doesn't allow any click throughs to the Unity app running, which is ideal but is different than the behavior of the other dialog, which I'll show next.
Here is the second screenshot, taken after refreshing the application page. The background app is not grayed out, and in my application, you can click through to the app in the background and interact with it, right through the dialog box. Obviously, this is not ideal.
So my questions are, what's causing these dialogs to change, and how can I make the API show the one that I want?
The first one happens only when the person first allows your app. First time a person allows your app they will see the normal javascript dialogs. However, if they come back to your game, they will see the second dialog that occurs inside your game.
We prevent a normal click-through in our dialogs that should be enforced by Unity's Modal Window: https://docs.unity3d.com/Documentation/ScriptReference/GUI.ModalWindow.html
However, it looks like Unity has a bug on their end that might clicks through. I've messaged Unity and they are now aware of the issue. Thanks for reporting that.
I am developing an app for windows 8 , in which I want the toast to have link to any webpage or any other metro application rather than the own application.
note:The web link or App Name will be entered by the user.
This isn't supported. Toasts can only take the user to the application that sent the toast. See below.
From MSDN:
A toast notification can contain text and/or images, but secondary
actions such as buttons are not supported.
and
When a user taps or clicks the notification, the associated app is
launched and the user can expect that the resulting view is related to
the content of the notification. It is the only mechanism by which one
app can interrupt a user in another app.
You can also try this :
create a new xaml page with WebBrowser element and use following code to easily navigate to webpage.
Here On clicking the shell Toast it is navigated to the specific page inside your app specified in the url.
It's just a workaround it's not great but will partially accomplish your task.
Thanks .
I am in the process of building a touch screen photobooth where users will take pictures, add graphics, etc in Adobe AIR. At the end of the process, they will get to email themselves the picture, share the picture on Facebook, and share it on Twitter.
I am using this tutorial: http://tv.adobe.com/watch/adc-presents/oauth-in-adobe-air-applications-built-with-flash-or-flex/ to figure out how to get oAuth to work in AIR. But it seems simple. Just load the authorization request URL into AIR's equivalent of an iFrame.
The tricky part is that there will be no physical keyboard on site. For all text input, we designed an onscreen keyboard. Programming an on screen keyboard in AS3 is pretty easy. But we don't have access to the text fields within the AIR HTML/Browser wrapper so we can't manually add characters to the input strings...
Is there any workaround we can implement for this? Adding a physical keyboard is unfortunately out of the question.
I realize this is 5 months old, but I was working on something similar for a client this evening and ran across your question. I also wanted to omit the need for a system level onscreen keyboard, or a physical real world keyboard, just wanted to use a Flash/AIR based keyboard completely under control of the app via the attached touch screen.
I came up with a hacky way to do this all in Flash/AIR and it works for any oAuth dialog (with some caveats). I've got it working as a test for Facebook and Twitter oAuth permission pages just this evening. It requires that you use a StageWebView for the display of the oAuth dialog and some JavaScript injection via loadUrl method of StageWebView. Using the stageWebView, setting up a listener for the Complete event on the load of the oauth permission page in your StageWebView is the first step.
Next step, is once its loaded and the complete event fires, in your complete handler, you can then inject javascript directly into the page via the StageWebView reference, and then via that function set up communication to populate the fields dynamically from your AS3 on screen keyboard or other function. For example, to populate the username field in Twitters oAuth permission page, you could do this:
webView.loadURL("javascript: form = document.forms[0]; form['username_or_email'].value='your_username';");
That populates the username field in Twitters oAuth permission page.
So you could inject a function into the page, which you could then call from ActionScript to pass in key presses from your virtual onscreen keyboard, or completed strings, to populate the proper fields. That is the only tricky part, identifying the form and field names in the source of the oAuth pages ahead of time. So far Twitter and Facebook look pretty straightforward to identify, but of course could break at anytime, a little regexp could help make sure they are correct. Only problem I see here beyond that would be if the field names changes dynamically for security purposes, but from a quick glance at twitter and facebook at least they don't appear to do that. Other oAuth pages may or may not, YMMV.
There is a useful library for working with StageWebView that might be helpful in doing some of this communication - take a look here: http://code.google.com/p/stagewebviewbridge/wiki/Communication
In any case, that is the overall approach, leverage StageWebView, and then dynamically inject your own JavaScript function to handle passing in the value to the fields from your onscreen keyboard, or simply populate the fields directly with code similar to the above. Hope this helps anyone out there attempting something similar.
Wanted to add that I came up with this approach because it was/is a requirement to allow a user to do this directly on the exhibit I am working on, but my personal preference would be to simply collect a users email address, or phone number, and have the interactive send them an email or SMS message to their own device, which they could then easily share more safely and securely. Another solution would be to display a QR code, a user could snap and quickly resolve to share more securely - I prefer those approaches, but the above will do the trick for users willing to enter in their credentials in a public place. Make sure you have time outs on the session and properly logout users credentials for subsequent users, otherwise bad things are guaranteed to occur.
I would like to show a graph of visitors (eg. 7 days back) on a specific subpage on my website - not the entire site!
I've been looking at:
http://www.jensbits.com/2010/06/23/google-analytics-data-export-api-with-google-chart-visualizations-2/
.. but i cant figure out how to show a graph for a specific url/subpage.
Any ideas?
Follow these steps
1.Go to your Google Analytics Account.
2.Click on the 'gear' icon. It will show you 3 tabs-> Profile, Tracking Code and Property Settings. Click on Tracking Code.
Under What are you tracking? select A Single Domain radio button. It will show you its corresponding options on the right. Select I want to track PHP pages. It will show you the tracking code underneath. Copy paste the code in the php file/page you are willing to track.
Dont worry about the query parameters. They will be identified automatically with respect to the tracking code. So if your page identifies 100 different layouts with respect to the parameters, they will show up in your analytics account.
Use the following Api to export data from your account
Google Analytics PHP API
Then, after you have received the data, you can set up an ajax request that fetches the data from your PHP script and embeds it in your site using a javascript API chart builder. This is also available with Google
Google Charts API
Hope that helps. All the best!