Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdn87/cordova-plugin-sirikit-available
SiriKit Permission (Cordova) Plugin for iOS
https://github.com/rdn87/cordova-plugin-sirikit-available
cordova cordova-ios-plugin cordova-plugin hybrid objective-c permission-requests siri sirikit
Last synced: about 1 month ago
JSON representation
SiriKit Permission (Cordova) Plugin for iOS
- Host: GitHub
- URL: https://github.com/rdn87/cordova-plugin-sirikit-available
- Owner: rdn87
- License: mit
- Created: 2017-09-27T07:11:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T07:06:05.000Z (about 7 years ago)
- Last Synced: 2024-11-13T09:19:23.583Z (about 1 month ago)
- Topics: cordova, cordova-ios-plugin, cordova-plugin, hybrid, objective-c, permission-requests, siri, sirikit
- Language: Objective-C
- Homepage: https://giuliocaruso.it
- Size: 9.77 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-sirikit-available
SiriKit Permission **Cordova Plugin for iOS**
Author: [Giulio Caruso aka rdn](https://twitter.com/giuliordn87)
[![Language](https://img.shields.io/badge/language-objective--c-green.svg)](https://developer.apple.com/reference/objectivec)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rdn87/cordova-plugin-sirikit-available/blob/master/LICENSE)## Adding the Plugin ##
Use the Cordova CLI and type in the following command:
`cordova plugin add https://github.com/rdn87/cordova-plugin-sirikit-available --variable SIRI_DESC=SiriKit Use`
## Description
With this plug-in you can execute the native method `requestSiriAuthorization` for use *SiriKit*.
## Sample Code
The Plugin is only iOS Platform required iOS 10.0+.
### Execute requestPermission method in your Javascript
cordova.plugins.SiriKitPermission.requestPermission(function(response) {
// success function
}, function() {
// failed function
});
response is flag (true/false) and identifies the state
true = INSiriAuthorizationStatusAuthorized
false = INSiriAuthorizationStatusDenied, INSiriAuthorizationStatusNotDetermined, INSiriAuthorizationStatusRestricted
## Licensecordova-plugin-sirikit-available is available under the MIT license. See the **[LICENSE](https://github.com/rdn87/cordova-plugin-sirikit-available/blob/master/LICENSE)** file for more info.