PlaceHolder When Users connects to my chromecast application - casting

How to show Placeholder on chromecast receiver Device whenever user connect connects to chromecast from my application. I want to show my logo whenever user connects to the chromecast. In hotstar and Youtube whenever user connects to the Chromecast the receiver application shows the logo of corresponding app on the screen.

You need to write a custom receiver and take advantage of the receiver api onSenderConnected() and show whatever info you have and desire.

Related

Is there anyway to initiate chat in dialogflow?

I am working in Dialogflow right now, is there any way to initiate chat using webhooks instead of using the common welcome massages given by dialogflow or some chat apps. Like I want to have my own initialize chats for many different situations. For example, today is my day to save money, then it will initiate a chat to make sure user get into save_money_daily intent. More details on the comment
There are few things that you wanted to do here that are not natural, I guess. Let me go on each:
How can I send an automatic chat for every possible case from the backend automatically?
Ans: You are building a google assistant on dialog flow, using as a chatbot, any chatbot can not send an automatic message(unless set by user), chatbots, and assistants are in the nature of the user interaction.
Let's any bot on Facebook, Skype, or any platform even the google assistant, they can't popup unwantedly with any information, it will be not user friendly.
There is a way to do, like if the user is interacting with your bot: You can ask like:
'Do you want me to remind you for saving money every day'
If user gives permission, save it in-app local cache and send app notification, via. Once the user get the app notification you can invoke the chat on the app notification click and open chat screen with your reply, but in the background when the user clicks on app notification you have to send a request to initiate chat.
And this solves your second problem as well.
Let me give you a high-level example:
Three Intent: With some user utterance
GetLatestMoive: ['get me the latest moives list']
GetLatestNews: ['Headline for today']
HealthCheck: ['I want health tips']
Create Notification and send it to the user via the app:
Based on the notification if the user clicks any of them, initiate your chat in-app with that utterance, it will automatically call the intent, and rest will follow based on your intent follow up a map and conversation design.
Hope this helps!

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.

How to make notifications from one app to another app in django?

I am making one e-commerce website and i am just trying to make notifications from admin side to user side both are diffrent app in django...
My problems is how to make notifications in admin side (one app)when i click the button send the messages and display the notifications or message in userside(other app)
If I understood your question correctly, you want to notify all the users ( for example for a new offer) when they login to their accounts.
For this matter, you must create a model for the notification (and if it's user-specified there is need for a foreign key to the user in the notification model or maybe you want to show the notification to all users by date this varies duo to your application) and in the profile view just make a query on notifications and show them to the user.
but if you want a chat room like notification (show notification to online users only) just use Django channels.

Siri should open certain Page or ViewController

My app is a self care app. In this app user can pay his bills once he is logged in. I am able to open the app successfully via Siri. Just wondering if I could pay the bills via SIRI
While opening the app I could do login in background with saved user credentials in app.
In Payment intent handler I can send the payment response to SIRI.
In iOS 10 there are two different uses for Siri. Sirikit is to register intents, such as booking a ride or making personal payments. The intents are limited to what Apple has outlined here although I am sure they will expand in the future:
https://developer.apple.com/sirikit/
The other is to use Speech Framework to transcribe speech to text. You can do whatever you want with that input, but it only works if the user opens the app and then you initiate Speech recognition.
https://developer.apple.com/reference/speech

How does Zynga notify a user e.g. "Friend 1, Friend 2 and 5 others have been playing Poker. Play now"

I was mid way through building an app, when I realized that a core part of the app I was planning to build (an event notifier), wouldn't work as event invites sent via the Facebook API do not show as a notifications.
This is the notification I got:
It's not a notification for an event of course, but I don't know what other API methods invoke a user notification (or could invoke one).
If anyone could let me know the API method they're using, I'd be very grateful. (I'm thinking it's perhaps because they use a canvas app, while I was planning on building a web app).
It's a user-to-user request, which is called an invite if the user it’s send to hasn’t used the app yet. For apps in category games it shows up as „have been playing”, for other apps it just says „john doe sent you a request in xy”
How to send them via your app, see https://developers.facebook.com/docs/requests/