How to Make Gushup Web widget full screen and open by default - bots

I am working Gupshup Chat bot,
I am trying to make Gushup bot full width i want the Chat bot to be full width and the Chat window to open by default when the chat window is loaded.
Please someone should tell show me how i can achieve this, am using the Gushup web widget on my website homepage but i need it to be full width to cover the whole of the page and also to be open by default.
Thanks

copy iframe html generated by chat popup using browser inspector

Related

UWP UI Freeze While ScrollTo method called in Xamarin ListView

We are developing chat application using Xamarin.Forms (2.5.0.91635) for UWP. We are trying to implement very basic functionality which is scroll to bottom when user open any chat window or send/receive messages. It working fine where no scroll in chat window but when messages are more then we show vertical scroll bar in chat widow. we are using below line to goes to last item of list view :
lstMessages.ScrollTo(objlastmessage, ScrollToPosition.Start, false);
We are use ObservableCollection to store message and bind it with listview.
Now problem is that when messenger app get any message from other user then system add it in observation collection and then move to last message in chat window, in between if if user typing message in Xamarin text editor then it freeze the UI until listivew update. so how to fix this issue. please some need hep.
Thanks

Showing a YouTube video in a Google Chrome extension

I would like to embed a YouTube player onto a page and show it to a user. If a foreground popup is used to host the player then, when the popup loses focus, the player is destroyed because the entire popup is removed.
I was hoping to use webKitNotifications.createHTMLNotification() and embed a player inside of an HTML Notification, but the spec has since been deprecated.
Just curious if anyone has any really crafty ideas on how to achieve this? I suspect hosting the YouTube player on a background page is a violation of YouTube's Terms of Service.
Looking through the dev. channel APIs:
http://developer.chrome.com/extensions/notifications.html - Too restrictive compared to HTML Notification. Doesn't look like I can embed a YouTube player inside one of these guys.
and... that's really about it.
Advice appreciated. Thanks.
You can simply have an HTML file in your extension for your page, for instance video.html, list it in your manifest under web_accesible_resources, and show it using:
chrome.tabs.create({url: chrome.extension.getURL('video.html')});
Inside your page you can use whatever method you want to embed the YouTube player.

how to open a itunes link in uiwebview

Is it possible to load a app store link in uiwebview. I have tried to open it in uiwebview but it doesnt load in there. I dont want users to leave my app when they click on the url from my app. Is it possible?
Regards
Pankaj
iTunes content does not have an "iTunes Preview" page on mobile - iOS automatically recognizes itunes.apple.com links and opens the store.
If you want to keep the user within your app, use SKStoreProductViewController to open the store to a specific piece of content. After the user dismisses the sheet, they are still within your app.
http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/SKITunesProductViewController_Ref/Introduction/Introduction.html

Calling chrome.browserAction.setIcon from content script the way it is done in background script

I am making an extension for chrome. It fetches data from webpages and emails it via local email client. I have a toolbar button which user has to click to invoke the script.
My script works for a few selected urls. I want my toolbar button to change icon based on whether the url is among our list or not. For example for site1 it should be redicon.png and for site2 it should be blueicon.png. I can change button icon using chrome.browserAction.setIcon. But the problem is that this API does not work in content script. It works fine in the background.js file but not in content.js. Kindly tell me how to achieve this.
I know using pageAction instead would do the trick but my client requirement is that the toolbar icon should change rather than appear and disappear.
What you need to read about is message passing. You are right, content scripts have limited chrome API. However, you can contact background page from content script and tell it to execute anything from chrome API for you. First, you need to create a listener on a background page that will be waiting for messages and then send a message from a content script.

How to open a webpage within a BlackBerry application?

I need to open a webpage from a BlackBerry application. I don't want to use a hyperlink so that users have to navigate to the blackberry browser application.
So, I basically need a full screen where the content of that particular page can be loaded just like a browser.
Is weblinks the answer to what I need or do I need to just invoke a browser session?
Thanks!
For BlackBerry applications you can use
BrowserSession session = Browser.getDefaultSession();
session.displayPage(url);
It will automatically open the browser with the given url. It's basically invoking the browser in your application context, so pressing the back button will take the user back to your application.

Resources