How to click ok Button on alert box in calabash android - calabash

When i login to my app it will ask me for permissions to access camera roll and notifications i need to click OK button on those Popups . can any one tell me how to write step definitions for that?

Calabash 0.5.15 installs your app with all permissions already granted. Can you upgrade?
https://github.com/calabash/calabash-android/blob/master/changelog/0.5.15.md
If this isn't an option for some reason, there is a hacky way that you can work out the buttons location and send a touch event using adb. I really don't recommen this though - Calabash handling "Complete action using" dialog

Related

AWS Connect: Custom CCP bring to front

I'm aware that the Amazon Connect CCP is based on the idea that it can be developed and integrated in any website at will without the restrictions of a closed product. However the fact that it is embedded, means it has some agent usability drawbacks. While browsing to multiple tabs you can eventually loose the tab where CCP resides. This means that if the agents needs to mute, hold, ... it might take a while before they find the right tab.
Is it possible to create a CCP that it can be always visible?
Thanks,
I set up an external screen pop as detailed in the AWS blog, and I have the issue on Windows 10 and Chrome. When call coming the pop-up notification apears, when clicking on the pop-up notification, you are not redirected to the CCP browser window.
However, I also tried the same setup on Firefox and the issue disappears: when clicking on the pop-up notification, the CCP browser tab gains focus correctly. Additionally, I set up another screen pop with a different instance and S3 bucket, using the files provided in the blog, and it yielded the same result: the issue appears with Chrome, but not with Firefox. It all points in the direction of it being an issue related to the integration between Chrome and the Windows pop-up notifications (the same problem for MacOS).

how to get a welcome message in aws lex chat bot

I am creating a chatbot using amazon lex.
There is a use case for which I have to display a welcome message like 'Hello my name is LexC. How can i help you?'
How can I implement this? This message should be displayed without user type anything, so basically without invoking any intent.
Your Lex bot cannot display a "welcome" message without any prompts from the user. You would have to implement this functionality on the client side where the bot is integrated.
Since you mention that you're using the bot inside your web/mobile app, you can implement your own code to simply show a message to the user once your chat UI loads up in the app. For Slack however, you would have to look into their docs to see if something like that can be configured.
If you are trying it to do with Facebook Page, Then you can do this by following steps:
You can create a customized greeting from your Page that will appear in Facebook messages and in the Messenger app for iPhone, iPad and Android when someone begins a conversation with your Page for the first time. Your Page's greeting will appear before any messages are sent.
To create a Messenger greeting:
Click Settings at the top of your Page.
Click Messaging in the left column.
Next to Show a Messenger greeting, click to select On.
Click Change, edit the greeting, then click Save.

Meteor Facebook Login "You are using a display type of 'popup' in a large browser window or tab" Error

I am using meteor accounts-ui/accounts-facebook to login and am getting the following error.
You are using a display type of 'popup' in a large browser window or tab. For a better user experience, show this dialog with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. Alternatively, set height and width on your window.open() call to properly size this dialog if you have special requirements precluding you from using the SDK. This message is only visible to developers of your
http://goo.gl/IBmdjI (screenshot)
I haven't been able to find any information on the fix anywhere. Is this something in meteor core that needs to be changed?
This isn't a issue really its just a warning. Meteor doesn't use the JS Facebook SDK and gives a specified height/width for the facebook OAuth dialog & your browser size may be too big for the small popup (not too sure- looks ok in your screenshot).
If you disable your app from Sandbox mode/another user uses your app they wouldn't see this warning anymore.
The alternative is to use a redirect to facebook or a mobile display. The best option is the popup (what you have now) because it's the fastest: A redirect means your Meteor app has to reconnect up.

winapi - Hooking an app's taskbar tab events

I'm having trouble hooking event messages sent when a user left/right clicks on the app's tackbar tab. I have tried implementing OnNcLButtonDown and the like but no events are ever triggered when I click on the app's tab. Is there a possible COM solutions?
There is an undocumented windows message: code 0x0313 that is send when a user right clicks on the app's taskbar button. Dunno whether its stable to hook though.

Windows Phone app crashes when navigating back from a task

Some pages in my app allow users to click a hyperlink to launch the external browser via a WebBrowserHelper.
I'm carefully saving the app state in OnNavigatedFrom and restoring it in OnNavigatedTo, but when the user navigates back from the web browser into my app, the app hangs, then crashes.
I've carefully followed the great blog post on the Windows Team Blog, but can also reproduce the bug using the provided code there (just add a WebBrowserTask to one of the button click events on the DetailsPage; or in fact a send SMS task).
Can anyone else confirm this bug, or perhaps point out something special that needs to be done to overcome it?
Whoops! Yes it turns out in most cases you just need to resume the debugger to have the app come back to life.
However in my case there is also a bug in my own code. As usual.