How to send notifications through google assistant based on custom event? - google-assistant-sdk

I have a use case where i want send reminders to my google mini speaker based on events on my calendar. Example: google mini to remind 15 minutes before the event occurs using voice.
trying to figure this out from a long time, without any success. IFTTT doesn't provide an option to select google mini when an event occurs. any help on this would be very helpful.

You can use push notifications but only on iOS and Android phones. There is no progammatic way to set reminders for calendar events.
You would have to tell your Google Home Mini "Remind me at (12:45pm) about (my team meeting)" manually.
One potential workaround would be to have some third-party tool which can cast audio to your speaker, although I don't know of one off-hand.

Related

How to get Screen Time on iOS devices?

We are currently working on building an iOS app that tracks the screen-time of the user on their iOS device. I understand that apple is very restrictive and the current Screen-Time API is any accessible through Parental Settings. Is there any way we can get basic info on the screen time of the user? Even info like total screen time of the day will do.
I believe that Screen Time API from Apple does not offer a report as one of their capabilities.
Answer in other question: Link.
Also see WWDC video about this: Link

Real-time game matchmaking with friends in iOS

I would like to implement friends-based matchmaking for a real-time game on iOS 8+
I can already use GKMatchRequest to do anonymous matchmaking, but I'm not sure how to let the user attempt to play against someone they already know
Possibilities:
GKMatchRequest.recipients is where you specify players to invite. But where to acquire the GKPlayer objects to pass to this property? All I can find is GKLocalPlayer.loadRecentPlayers(), which covers only 'someone you have played a game with or a legacy game center friend'.
GKMatchMakerViewController offers a UI for the user to send iMessages to people from Contacts. But the UI is confusing- is there are way to do this programmatically?
Facebook has what many users would consider their canonical list of friends. Does the Facebook SDK for iOS offer matchmaking against this list? Matchmaking is mentioned for Instant Games, but not mobile games
3rd party solution. Perhaps there's another SDK that allows listing of a user's friends/contacts followed by an invitation flow to connect them together?
My ideal UI flow would be
Tap 'Play against friends'
Select from a list of your FB friends/iOS contacts
That user receives an iMessage/FB message from which they can install or open the app
If you're still waiting for them by the time they launch the app, you are both connected and the game begins
It's been driving me a bit crazy because it seems like quite a common problem - surely many users would want to play against people they know? - but I can't seem to find a clear solution. It doesn't help that the GameCenter APIs seem to have changed a lot and documentation is a bit sparse

iOS App to Ping Users Like Find My iphone "Play a Sound"

I have an idea for an app and have the design created but unsure how to go about doing it programatically. The idea is simple... ping a silent phone the way "Find My Phone" can make a silent phone make a sound. The idea is to have the app read an incoming text message with a command embedded in the text from an "authorized" user.
Example: #URGENT from my wife would make my phone sound even if it was on silent but #URGENT from my friend would not cause any action because he is not "Authorized" in my app.
From what I have found online, reading text messages in iOS is prohibited unless you build your own API/SKD (BMW reads the text from the notification center for their iDrive function) which will then get rejected by the app store. Is this correct or is there a way to do this?
My questions:
Can an app trigger an event by reading text messages with embedded commands like on Android?
In iOS is there any way to make a silent phone create a sound at full volume?
I've found that this is possible for Android, but I want to see if it is possible for iOS.
Unfortunately, the answer is no.
In order:
An iOS app has no access to the text messages of the user at all, so there's no way to trigger anything that way.
Not as a notification sound, but it's possible that by using a background audio session you could play a sound on a phone that is silenced, but still has the media volume up. However, Apple might not like this (you'd be using media playback APIs for alert noises, Apple doesn't want anyone circumventing the users decision to silence the phone).

Send a command to Siri

There are several hundred commands, over a thousand variations, that Siri will accept and act on. For example, "Schedule a meeting with Sean tomorrow at 1 PM" will create an entry in your Calendar.
Is there any way for an application (non-jailbroken / appstore approved) to send Siri (or its subsystem) these commands? Not via voice - just my app sending Siri the text string it already understands and having it act on the command. I don't want to launch Siri, just have it process the command initiated by my app, instead of via voice.
I understand that the Sirikit is designed to have Siri send commands to apps, not the other way around, but I was hoping there was some way to do it.
There's no way to do this with Siri. But Apple provides the libraries for interacting with the underlying system components. For example, check out EventKit for working with reminders or a user's calendar.

is it feasible or possible to launch ios app on a specific incoming call using core telephony or some other frameworks

1.is it feasible or possible to open/launch ios app and open a specific screen on a specific incoming call using core telephony.Something where i can register my app as observer of incoming call event.
2.if my app is already launched, is there any delegate or notification of core telephony so that i can handle it and open a specific screen.
3.can above requirement filled using notification, as i can think notification will no be able to fulfil this requirement as there may more than one apps having notification, then how ios will decide to open which ios app.
if it's not feasible then what would be alternative or creative idea close to achieve this(open an ios app specific view on incoming call/message/notification centre) behaviour.
thanks
It is not possible to achieve any of the above 3 points. According to HIG, you can not do it. Also apple has not published any of the API to do same. Its not possible with public APIs.

Resources