I'm trying to use Siri Shortcuts in a react-native app I am developing. I am using react-native-siri-shortcuts and I have it allowing me to donate shortcuts and suggest shortcuts. If I then go to the shortcuts app and add it, I am able to use Siri and the shortcut. I can even use the shortcut to print different stuff to the phone screen or put in data to my apps database.
I am running into an issue with getting Siri to speak. If I want Siri to fetch data and then say a string to the User can I do that in React Native or do I need to use swift to do this?
Related
I want to create a functionality in react-native app such that on pressing a particular button, it should get me to the "open with" window, and that window should fetch me the list of all the installed applications in the phone which can run audio files. How can i get such list?
On a Android system, that "Open with" screen pops up when:
The user have more than one application that can play that specific audio format(Because it's not every app that can run every audio format).
The user did not set-up a default app to open the audio format.
So, You should just use a library like rn-fetch-blob to open the file for you, like as follow:
RNFetchBlob.android.actionViewIntent(fileLocation, mimeType)
And android will take care of picking the right app for you.
In case this answer does not satisfy you, you can get a list of apps using react-native-android-installed-apps-unblocking, but there's no information about wich ones can run an audio file, and maybe IOS will have some restrictions about what can be done, so your best option is to let the system do that for you!
I use react-native with expo (both latest) and i try to use speech to text.
For the moment i have found two solutions:
react-native-voice, who need to eject the app but I do not want to.
Google api call, which is not free.
Both of these solutions are not ideal in my case.
The thing is that I can write in an input with the speech-to-text integrated into the native keyboard. But I would like to be able to trigger it at the press of a button, without having to open the keyboard and have to click on the microphone.
Is there a way to do this? In the react native keyboard doc they don't talk about this
Thanks
I have developed a Hybrid Mobile App using MobileFirst 7.1 and now I want to ask user about how they like the app. My app displays alert with 3 buttons which display "Not Now", "Rate It" and "Never". Depending upon the option they select, I want to save the user preferences locally in the devices(Android or iOS) so that according to the selected option I can control the alert. How can I achieve this?
Your use case is similar to this question, and the solution I would recommend is the same. Data that you want to save persistently on the client device (such as user preferences) could be saved in JSONStore documents. These are stored locally, and will persist across executions of the application.
Now, we are developing a window application for play video like TV.
But When it's running full screen, we must block all window notifications.
so i found many ways to disable notifications.
http://www.maketecheasier.com/disable-toast-notifications-in-windows-8/
But we can't use this way, because it's for only Window App Store Applications.
We want to block all Notifications.
connected USB noti, window update noti, etc.
In addition, Our application has property of the Topmost(base on .net C#).
But it can't Blocked.
is it possible to use the user32.dll??
How to solve it, anyway is ok.
sorry for my poor English. Thanks.
Is it possible to 'hack' or develop an app that lets you launch an app by pressing an iPhones power button or volume buttons or possibly from the passcode screen?
As an example: pressing the power button 5 times launches the app or sends an emergency SMS. Or entering a certain code into the passcode / lock screen sends an SMS
No. All these features are managed by a different process than your application, and you cannot directly influence that process. You can develop a JailBreak tweak that will allow you to do so, but obviously this is not for Apple AppStore.
What you are asking about is against the Apple Developer TOS. If you do it, you will not pass the App Store Review process and hence will not be able to distribute vie the iTunes App Store. If you don't care about that, then there may be jail break hacks that can help you with that.