mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
Merge branch 'master' into v5
This commit is contained in:
parent
7cff234c26
commit
38a1dd1187
128
CHANGELOG.md
128
CHANGELOG.md
@ -1,14 +1,128 @@
|
|||||||
<a name="5.0.0-beta.18"></a>
|
<a name="4.14.0"></a>
|
||||||
# [5.0.0-beta.18](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.14...v5.0.0-beta.18) (2018-09-15)
|
# [4.14.0](https://github.com/ionic-team/ionic-native/compare/v4.13.0...v4.14.0) (2018-09-18)
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* **camera:** fixing builds ([c8d25a1](https://github.com/ionic-team/ionic-native/commit/c8d25a1))
|
* **mobile-accessibility:** add correct pluginRef ([3699fa9](https://github.com/ionic-team/ionic-native/commit/3699fa9)), closes [#1860](https://github.com/ionic-team/ionic-native/issues/1860)
|
||||||
* **clevertap:** fix jsdoc ([e47a3e1](https://github.com/ionic-team/ionic-native/commit/e47a3e1))
|
* **onesignal:** add missing setLocationShared method ([#2723](https://github.com/ionic-team/ionic-native/issues/2723)) ([8bab321](https://github.com/ionic-team/ionic-native/commit/8bab321))
|
||||||
* **contacts:** remove double import of checkAvailability ([#2659](https://github.com/ionic-team/ionic-native/issues/2659)) ([1ad4cc1](https://github.com/ionic-team/ionic-native/commit/1ad4cc1))
|
* **push:** add missing Chanel options ([3ef9593](https://github.com/ionic-team/ionic-native/commit/3ef9593)), closes [#2712](https://github.com/ionic-team/ionic-native/issues/2712)
|
||||||
* **core:** wrapEventObservable ([#2660](https://github.com/ionic-team/ionic-native/issues/2660)) ([bd34581](https://github.com/ionic-team/ionic-native/commit/bd34581))
|
* **web-intent:** add missing properties ([d077c48](https://github.com/ionic-team/ionic-native/commit/d077c48)), closes [#2701](https://github.com/ionic-team/ionic-native/issues/2701)
|
||||||
* **extended-device-information:** fix wrong decorator ([5e9c92a](https://github.com/ionic-team/ionic-native/commit/5e9c92a))
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **chooster:** add plugin ([04db233](https://github.com/ionic-team/ionic-native/commit/04db233)), closes [#2612](https://github.com/ionic-team/ionic-native/issues/2612)
|
||||||
|
* **local-notifications:** add missing functions ([10d222d](https://github.com/ionic-team/ionic-native/commit/10d222d))
|
||||||
|
* **onesignal:** add missing functions ([51006a7](https://github.com/ionic-team/ionic-native/commit/51006a7)), closes [#2504](https://github.com/ionic-team/ionic-native/issues/2504)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="4.13.0"></a>
|
||||||
|
# [4.13.0](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.17...v4.13.0) (2018-09-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **bluetooth-le:** Various methods fixes ([#2707](https://github.com/ionic-team/ionic-native/issues/2707)) ([7047920](https://github.com/ionic-team/ionic-native/commit/7047920))
|
||||||
|
* **in-app-review:** Transfer Plugin to the correct folder ([#2688](https://github.com/ionic-team/ionic-native/issues/2688)) ([22fd49b](https://github.com/ionic-team/ionic-native/commit/22fd49b))
|
||||||
|
* **ms-adal:** Update createAuthenticationContext ([#2705](https://github.com/ionic-team/ionic-native/issues/2705)) ([890129b](https://github.com/ionic-team/ionic-native/commit/890129b))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **appsflyer:** Added Appsflyer Cordova SDK as ionic native plugin ([#2690](https://github.com/ionic-team/ionic-native/issues/2690)) ([3b3f942](https://github.com/ionic-team/ionic-native/commit/3b3f942))
|
||||||
|
* **branch-io:** Add branch.io attribution and invitation plugin ([#2691](https://github.com/ionic-team/ionic-native/issues/2691)) ([90d75af](https://github.com/ionic-team/ionic-native/commit/90d75af))
|
||||||
|
* **calldirectory:** add log function ([#2708](https://github.com/ionic-team/ionic-native/issues/2708)) ([9601a64](https://github.com/ionic-team/ionic-native/commit/9601a64))
|
||||||
|
* **janalytics:** add plugin ([#2711](https://github.com/ionic-team/ionic-native/issues/2711)) ([0b97176](https://github.com/ionic-team/ionic-native/commit/0b97176))
|
||||||
|
* **local-notifications:** Added local additional local notification action fields ([#2713](https://github.com/ionic-team/ionic-native/issues/2713)) ([267149b](https://github.com/ionic-team/ionic-native/commit/267149b))
|
||||||
|
* **mixpanel:** Update/add functions ([#2697](https://github.com/ionic-team/ionic-native/issues/2697)) ([ac467c5](https://github.com/ionic-team/ionic-native/commit/ac467c5))
|
||||||
|
* **wechat:** add plugin ([#2716](https://github.com/ionic-team/ionic-native/issues/2716)) ([10ac9ff](https://github.com/ionic-team/ionic-native/commit/10ac9ff))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="5.0.0-beta.17"></a>
|
||||||
|
# [5.0.0-beta.17](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.16...v5.0.0-beta.17) (2018-08-31)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **in-app-browser:** fix mandatory options ([#2684](https://github.com/ionic-team/ionic-native/issues/2684)) ([d82e675](https://github.com/ionic-team/ionic-native/commit/d82e675))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="4.12.1"></a>
|
||||||
|
## [4.12.1](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.15...v4.12.1) (2018-08-31)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **open-native-settings:** allow supported input ([#2666](https://github.com/ionic-team/ionic-native/issues/2666)) ([be0dc3d](https://github.com/ionic-team/ionic-native/commit/be0dc3d))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **aes256:** Added new utility methods to generate secure key and secure IV ([#2675](https://github.com/ionic-team/ionic-native/issues/2675)) ([a731466](https://github.com/ionic-team/ionic-native/commit/a731466))
|
||||||
|
* **in-app-browser:** Add missing InAppBrowserOptions-properties ([#2669](https://github.com/ionic-team/ionic-native/issues/2669)) ([d90724e](https://github.com/ionic-team/ionic-native/commit/d90724e))
|
||||||
|
* **push:** Added voip property to IOSPushOptions ([#2681](https://github.com/ionic-team/ionic-native/issues/2681)) ([03e4f0e](https://github.com/ionic-team/ionic-native/commit/03e4f0e))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="5.0.0-beta.15"></a>
|
||||||
|
# [5.0.0-beta.15](https://github.com/ionic-team/ionic-native/compare/v4.12.0...v5.0.0-beta.15) (2018-08-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **bluetooth-le:** add bluetooth-le plugin ([#2651](https://github.com/ionic-team/ionic-native/issues/2651)) ([591ee87](https://github.com/ionic-team/ionic-native/commit/591ee87))
|
||||||
|
* **http:** add setSSLCertMode function ([8db1dbe](https://github.com/ionic-team/ionic-native/commit/8db1dbe))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="4.12.0"></a>
|
||||||
|
# [4.12.0](https://github.com/ionic-team/ionic-native/compare/v4.11.0...v4.12.0) (2018-08-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **extended-device-information:** Fixed Memory Display Bug ([#2641](https://github.com/ionic-team/ionic-native/issues/2641)) ([2ac5282](https://github.com/ionic-team/ionic-native/commit/2ac5282))
|
||||||
|
* **network:** bind listener to document instead of window ([#2622](https://github.com/ionic-team/ionic-native/issues/2622)) ([d10777a](https://github.com/ionic-team/ionic-native/commit/d10777a))
|
||||||
|
* **photo-library:** interface missing includeVideos ([3f415f9](https://github.com/ionic-team/ionic-native/commit/3f415f9)), closes [#2624](https://github.com/ionic-team/ionic-native/issues/2624)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **fabric:** add fabric plugin ([#2618](https://github.com/ionic-team/ionic-native/issues/2618)) ([9b4fd02](https://github.com/ionic-team/ionic-native/commit/9b4fd02))
|
||||||
|
* **local-notifications:** add new foreground property ([#2633](https://github.com/ionic-team/ionic-native/issues/2633)) ([229b62c](https://github.com/ionic-team/ionic-native/commit/229b62c))
|
||||||
|
* **webengage:** add optional config with initialization ([#2637](https://github.com/ionic-team/ionic-native/issues/2637)) ([ca9a702](https://github.com/ionic-team/ionic-native/commit/ca9a702))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="4.11.0"></a>
|
||||||
|
# [4.11.0](https://github.com/ionic-team/ionic-native/compare/v4.10.1...v4.11.0) (2018-07-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **http:** add correct return types for downloadFile and uploadFile ([4092831](https://github.com/ionic-team/ionic-native/commit/4092831)), closes [#2615](https://github.com/ionic-team/ionic-native/issues/2615)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **clevertap:** add CleverTap plugin ([#2609](https://github.com/ionic-team/ionic-native/issues/2609)) ([27d380e](https://github.com/ionic-team/ionic-native/commit/27d380e))
|
||||||
|
* **facebook:** add getDeferredApplink function ([3b32e19](https://github.com/ionic-team/ionic-native/commit/3b32e19)), closes [#2510](https://github.com/ionic-team/ionic-native/issues/2510)
|
||||||
|
* **webengage:** add webengage plugin ([#2604](https://github.com/ionic-team/ionic-native/issues/2604)) ([bd5bd7e](https://github.com/ionic-team/ionic-native/commit/bd5bd7e))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="4.10.1"></a>
|
||||||
|
## [4.10.1](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.14...v4.10.1) (2018-07-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **nfs:** Optional arguments for records like textRecord ([#2605](https://github.com/ionic-team/ionic-native/issues/2605)) ([b635ba9](https://github.com/ionic-team/ionic-native/commit/b635ba9))
|
||||||
|
* **user-agent:** Plugin not installed ([#2607](https://github.com/ionic-team/ionic-native/issues/2607)) ([79cb478](https://github.com/ionic-team/ionic-native/commit/79cb478))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
67
src/@ionic-native/plugins/chooser/index.ts
Normal file
67
src/@ionic-native/plugins/chooser/index.ts
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
export interface ChooserResult {
|
||||||
|
data: Uint8Array;
|
||||||
|
dataURI: string;
|
||||||
|
mediaType: string;
|
||||||
|
name: string;
|
||||||
|
uri: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Chooser
|
||||||
|
* @description
|
||||||
|
* File chooser plugin for Cordova.
|
||||||
|
*
|
||||||
|
* The following must be added to config.xml to prevent crashing when selecting large files on Android:
|
||||||
|
* ```xml
|
||||||
|
* <platform name="android">
|
||||||
|
* <edit-config
|
||||||
|
* file="app/src/main/AndroidManifest.xml"
|
||||||
|
* mode="merge"
|
||||||
|
* target="/manifest/application">
|
||||||
|
* <application android:largeHeap="true" />
|
||||||
|
* </edit-config>
|
||||||
|
* </platform>
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```typescript
|
||||||
|
* import { Chooser } from '@ionic-native/chooser';
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* constructor(private chooser: Chooser) { }
|
||||||
|
*
|
||||||
|
* ...
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* this.chooser.getFile()
|
||||||
|
* .then(file => console.log(file ? file.name : 'canceled'))
|
||||||
|
* .catch((error: any) => console.error(error));
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* @interfaces
|
||||||
|
* ChooserResult
|
||||||
|
*/
|
||||||
|
@Plugin({
|
||||||
|
pluginName: 'Chooser',
|
||||||
|
plugin: 'cordova-plugin-chooser',
|
||||||
|
pluginRef: 'chooser',
|
||||||
|
repo: 'https://github.com/cyph/cordova-plugin-chooser',
|
||||||
|
platforms: ['Android', 'iOS']
|
||||||
|
})
|
||||||
|
@Injectable()
|
||||||
|
export class Chooser extends IonicNativePlugin {
|
||||||
|
/**
|
||||||
|
* Displays native prompt for user to select a file.
|
||||||
|
* @param {string} [accept] Optional MIME type filter (e.g. 'image/gif,video/*').
|
||||||
|
* @return {Promise<any>} Promise containing selected file's raw binary data,
|
||||||
|
* base64-encoded data: URI, MIME type, display name, and original URI.
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getFile(accept: string): Promise<ChooserResult | undefined> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -118,6 +118,30 @@ export interface EmailComposerOptions {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class EmailComposer extends IonicNativePlugin {
|
export class EmailComposer extends IonicNativePlugin {
|
||||||
|
/**
|
||||||
|
* Checks if the app has a permission to access email accounts information
|
||||||
|
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if the permission was granted
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
successIndex: 0,
|
||||||
|
errorIndex: 2
|
||||||
|
})
|
||||||
|
hasPermission(): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request permission to access email accounts information
|
||||||
|
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if the permission was granted
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
successIndex: 0,
|
||||||
|
errorIndex: 2
|
||||||
|
})
|
||||||
|
requestPermission(): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if sending emails is supported on the device.
|
* Verifies if sending emails is supported on the device.
|
||||||
*
|
*
|
||||||
@ -147,39 +171,6 @@ export class EmailComposer extends IonicNativePlugin {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request permission to access email accounts information
|
|
||||||
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if the permission was granted
|
|
||||||
*/
|
|
||||||
@Cordova({
|
|
||||||
successIndex: 0,
|
|
||||||
errorIndex: 2
|
|
||||||
})
|
|
||||||
requestPermission(): Promise<boolean> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the app has a permission to access email accounts information
|
|
||||||
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if the permission was granted
|
|
||||||
*/
|
|
||||||
@Cordova({
|
|
||||||
successIndex: 0,
|
|
||||||
errorIndex: 2
|
|
||||||
})
|
|
||||||
hasPermission(): Promise<boolean> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a new mail app alias.
|
|
||||||
*
|
|
||||||
* @param {string} alias The alias name
|
|
||||||
* @param {string} packageName The package name
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
addAlias(alias: string, packageName: string): void {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the email composer pre-filled with data.
|
* Displays the email composer pre-filled with data.
|
||||||
*
|
*
|
||||||
@ -194,4 +185,13 @@ export class EmailComposer extends IonicNativePlugin {
|
|||||||
open(options: EmailComposerOptions, scope?: any): Promise<any> {
|
open(options: EmailComposerOptions, scope?: any): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a new mail app alias.
|
||||||
|
*
|
||||||
|
* @param {string} alias The alias name
|
||||||
|
* @param {string} packageName The package name
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
addAlias(alias: string, packageName: string): void {}
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ export interface IBeaconDelegate {
|
|||||||
*
|
*
|
||||||
* this.ibeacon.startMonitoringForRegion(beaconRegion)
|
* this.ibeacon.startMonitoringForRegion(beaconRegion)
|
||||||
* .then(
|
* .then(
|
||||||
* () => console.log('Native layer recieved the request to monitoring'),
|
* () => console.log('Native layer received the request to monitoring'),
|
||||||
* error => console.error('Native layer failed to begin monitoring: ', error)
|
* error => console.error('Native layer failed to begin monitoring: ', error)
|
||||||
* );
|
* );
|
||||||
* ```
|
* ```
|
||||||
|
@ -267,66 +267,3 @@ export class IntelSecurityStorage {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @name Intel Security
|
|
||||||
* @description
|
|
||||||
* The App Security API enables the use of security properties and capabilities on the platform, using a new set of API defined for application developers. You are not required to be a security expert to make good use of the API. Key elements, such as encryption of data and establishments of capabilities, is abstracted and done by the API implementation, for you.
|
|
||||||
*
|
|
||||||
* For example:
|
|
||||||
* - Use the API to store (E.g. cache) data locally, using the device non-volatile storage. Data protection/encryption will be done for you by the API implementation
|
|
||||||
* - Establish a connection with remote server (E.g. XHR) using a protected channel. SSL/TLS establishment and usage will be done for you by the API implementation
|
|
||||||
*
|
|
||||||
* For more information please visit the [API documentation](https://software.intel.com/en-us/app-security-api/api).
|
|
||||||
*
|
|
||||||
* @usage
|
|
||||||
* ```typescript
|
|
||||||
* import { IntelSecurity } from '@ionic-native/intel-security';
|
|
||||||
* ...
|
|
||||||
* constructor(private intelSecurity: IntelSecurity) { }
|
|
||||||
* ...
|
|
||||||
*
|
|
||||||
* let storageID = 'id';
|
|
||||||
*
|
|
||||||
* this.intelSecurity.data.createFromData({ data: 'Sample Data' })
|
|
||||||
* .then((instanceID: Number) => this.intelSecurity.storage.write({ id: storageId, instanceID: instanceID }))
|
|
||||||
* .catch((error: any) => console.log(error));
|
|
||||||
*
|
|
||||||
* this.intelSecurity.storage.read({id: storageID })
|
|
||||||
* .then((instanceID: number) => this.intelSecurity.data.getData(instanceID))
|
|
||||||
* .then((data: string) => console.log(data)) // Resolves to 'Sample Data'
|
|
||||||
* .catch((error: any) => console.log(error));
|
|
||||||
*
|
|
||||||
* this.intelSecurity.storage.delete({ id: storageID })
|
|
||||||
* .then(() => console.log('Deleted Successfully'))
|
|
||||||
* .catch((error: any) => console.log(error));
|
|
||||||
* ```
|
|
||||||
* @classes
|
|
||||||
* IntelSecurityData
|
|
||||||
* IntelSecurityStorage
|
|
||||||
* @interfaces
|
|
||||||
* IntelSecurityDataOptions
|
|
||||||
*/
|
|
||||||
@Plugin({
|
|
||||||
pluginName: 'IntelSecurity',
|
|
||||||
plugin: 'com-intel-security-cordova-plugin',
|
|
||||||
pluginRef: 'intel.security',
|
|
||||||
repo: 'https://github.com/AppSecurityApi/com-intel-security-cordova-plugin',
|
|
||||||
platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8']
|
|
||||||
})
|
|
||||||
@Injectable()
|
|
||||||
export class IntelSecurity extends IonicNativePlugin {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* returns an IntelSecurityStorage object
|
|
||||||
* @type {IntelSecurityStorage}
|
|
||||||
*/
|
|
||||||
storage: IntelSecurityStorage = new IntelSecurityStorage();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns an IntelSecurityData object
|
|
||||||
* @type {IntelSecurityData}
|
|
||||||
*/
|
|
||||||
data: IntelSecurityData = new IntelSecurityData();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -483,6 +483,24 @@ export interface ILocalNotification {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class LocalNotifications extends IonicNativePlugin {
|
export class LocalNotifications extends IonicNativePlugin {
|
||||||
|
/**
|
||||||
|
* Informs if the app has the permission to show notifications.
|
||||||
|
* @returns {Promise<boolean>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
hasPermission(): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request permission to show notifications if not already granted.
|
||||||
|
* @returns {Promise<boolean>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
requestPermission(): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Schedules a single or multiple notifications
|
* Schedules a single or multiple notifications
|
||||||
* @param options {Notification | ILocalNotification[]} optional
|
* @param options {Notification | ILocalNotification[]} optional
|
||||||
@ -570,20 +588,31 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all the notification ids
|
* Check if a notification has a given type.
|
||||||
* @returns {Promise<number[]>}
|
* @param {number} id The ID of the notification.
|
||||||
|
* @param {string} type The type of the notification.
|
||||||
|
* @returns {Promise<boolean>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getIds(): Promise<number[]> {
|
hasType(id: number, type: string): Promise<boolean> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the ids of triggered notifications
|
* Get the type (triggered, scheduled) for the notification.
|
||||||
* @returns {Promise<number[]>}
|
* @param {number} id The ID of the notification.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getTriggeredIds(): Promise<number[]> {
|
getType(id: number): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all the notification ids
|
||||||
|
* @returns {Promise<Array<number>>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getIds(): Promise<number[]> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,6 +625,15 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the ids of triggered notifications
|
||||||
|
* @returns {Promise<Array<number>>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getTriggeredIds(): Promise<number[]> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a notification object
|
* Get a notification object
|
||||||
* @param notificationId {any} The id of the notification to get
|
* @param notificationId {any} The id of the notification to get
|
||||||
@ -606,6 +644,15 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all notification objects
|
||||||
|
* @returns {Promise<ILocalNotification[]>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getAll(): Promise<ILocalNotification[]> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a scheduled notification object
|
* Get a scheduled notification object
|
||||||
* @param notificationId {any} The id of the notification to get
|
* @param notificationId {any} The id of the notification to get
|
||||||
@ -626,51 +673,6 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all notification objects
|
|
||||||
* @returns {Promise<ILocalNotification[]>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getAll(): Promise<ILocalNotification[]> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all scheduled notification objects
|
|
||||||
* @returns {Promise<ILocalNotification[]>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getAllScheduled(): Promise<ILocalNotification[]> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all triggered notification objects
|
|
||||||
* @returns {Promise<ILocalNotification[]>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getAllTriggered(): Promise<ILocalNotification[]> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Request permission to show notifications if not already granted.
|
|
||||||
* @returns {Promise<boolean>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
requestPermission(): Promise<boolean> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Informs if the app has the permission to show notifications.
|
|
||||||
* @returns {Promise<boolean>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
hasPermission(): Promise<boolean> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a group of actions
|
* Adds a group of actions
|
||||||
* @param groupId The id of the action group
|
* @param groupId The id of the action group
|
||||||
@ -678,10 +680,7 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
addActions(
|
addActions(groupId: any, actions: ILocalNotificationAction[]): Promise<any> {
|
||||||
groupId: any,
|
|
||||||
actions: ILocalNotificationAction[]
|
|
||||||
): Promise<any> {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -727,6 +726,24 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all scheduled notification objects
|
||||||
|
* @returns {Promise<Array<ILocalNotification>>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getAllScheduled(): Promise<ILocalNotification[]> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all triggered notification objects
|
||||||
|
* @returns {Promise<Array<ILocalNotification>>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getAllTriggered(): Promise<ILocalNotification[]> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a callback for a specific event
|
* Sets a callback for a specific event
|
||||||
* @param eventName {string} The name of the event. Available events: schedule, trigger, click, update, clear, clearall, cancel, cancelall. Custom event names are possible for actions
|
* @param eventName {string} The name of the event. Available events: schedule, trigger, click, update, clear, clearall, cancel, cancelall. Custom event names are possible for actions
|
||||||
|
@ -23,7 +23,7 @@ import { Injectable } from '@angular/core';
|
|||||||
@Plugin({
|
@Plugin({
|
||||||
pluginName: 'MobileAccessibility',
|
pluginName: 'MobileAccessibility',
|
||||||
plugin: 'phonegap-plugin-mobile-accessibility',
|
plugin: 'phonegap-plugin-mobile-accessibility',
|
||||||
pluginRef: 'MobileAccessibility',
|
pluginRef: 'window.MobileAccessibility',
|
||||||
repo: 'https://github.com/phonegap/phonegap-mobile-accessibility',
|
repo: 'https://github.com/phonegap/phonegap-mobile-accessibility',
|
||||||
platforms: ['Android Fire OS', 'Android', 'iOS', 'Windows']
|
platforms: ['Android Fire OS', 'Android', 'iOS', 'Windows']
|
||||||
})
|
})
|
||||||
|
@ -418,6 +418,7 @@ export enum OSActionType {
|
|||||||
export class OneSignal extends IonicNativePlugin {
|
export class OneSignal extends IonicNativePlugin {
|
||||||
/**
|
/**
|
||||||
* constants to use in inFocusDisplaying()
|
* constants to use in inFocusDisplaying()
|
||||||
|
* @hidden
|
||||||
*/
|
*/
|
||||||
OSInFocusDisplayOption = {
|
OSInFocusDisplayOption = {
|
||||||
None: 0,
|
None: 0,
|
||||||
@ -671,6 +672,13 @@ export class OneSignal extends IonicNativePlugin {
|
|||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
setLogLevel(logLevel: { logLevel: number; visualLevel: number }): void {}
|
setLogLevel(logLevel: { logLevel: number; visualLevel: number }): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable or enable location collection (Defaults to enabled) if your app has location permission.
|
||||||
|
* @param shared {boolean}
|
||||||
|
*/
|
||||||
|
@Cordova({ sync: true })
|
||||||
|
setLocationShared(shared: boolean): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The passed in function will be fired when a notification permission setting changes.
|
* The passed in function will be fired when a notification permission setting changes.
|
||||||
* This includes the following events:
|
* This includes the following events:
|
||||||
@ -702,9 +710,64 @@ export class OneSignal extends IonicNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears all OneSignal notifications
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
setEmail(email: string, emailAuthToken?: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If your app implements logout functionality, you can call logoutEmail to dissociate the email from the device
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
logoutEmail(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The passed in function will be fired when a notification subscription property changes.
|
||||||
|
* This includes the following events:
|
||||||
|
* - Getting a push token from Apple / Google.
|
||||||
|
* - Getting a player / user id from OneSignal
|
||||||
|
* - OneSignal.setSubscription is called
|
||||||
|
* - User disables or enables notifications
|
||||||
|
* @return {Observable<any>}
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
observable: true
|
||||||
|
})
|
||||||
|
addEmailSubscriptionObserver(): Observable<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all OneSignal notifications
|
* Clears all OneSignal notifications
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
clearOneSignalNotifications(): void {}
|
clearOneSignalNotifications(): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows you to delay the initialization of the SDK until the user provides privacy consent.
|
||||||
|
* The SDK will not be fully initialized until the provideUserConsent(true) method is called.
|
||||||
|
* @param {boolean} required
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
setRequiresUserPrivacyConsent(required: boolean): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If your application is set to require the user's privacy consent, you can provide this consent using this method.
|
||||||
|
* Until you call provideUserConsent(true), the SDK will not fully initialize and will not send any data to OneSignal.
|
||||||
|
* @param {boolean} granted
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
provideUserConsent(granted: boolean): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accepts a callback, which returns a boolean variable indicating if the user has given privacy consent yet.
|
||||||
|
* @param {Function} callback
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
userProvidedPrivacyConsent(callback: Function): void {}
|
||||||
}
|
}
|
||||||
|
@ -221,12 +221,15 @@ export interface PushOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type Priority = 1 | 2 | 3 | 4 | 5;
|
export type Priority = 1 | 2 | 3 | 4 | 5;
|
||||||
|
export type Visibility = 0 | 1 | -1;
|
||||||
|
|
||||||
export interface Channel {
|
export interface Channel {
|
||||||
id: string;
|
id: string;
|
||||||
description: string;
|
description: string;
|
||||||
importance: Priority;
|
importance: Priority;
|
||||||
sound?: string;
|
sound?: string;
|
||||||
|
vibration?: boolean | number[];
|
||||||
|
visibility?: Visibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PushEvent = string;
|
export type PushEvent = string;
|
||||||
|
@ -129,7 +129,7 @@ export class SQLiteObject {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@CordovaInstance()
|
@CordovaInstance()
|
||||||
sqlBatch(sqlStatements: string[] | string[][] | any[]): Promise<any> {
|
sqlBatch(sqlStatements: (string | string[] | any)[]): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,6 +127,20 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
@CordovaProperty()
|
@CordovaProperty()
|
||||||
ACTION_PICK: string;
|
ACTION_PICK: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience constant for actions
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
@CordovaProperty()
|
||||||
|
ACTION_INSTALL_PACKAGE: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience constant for actions
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
@CordovaProperty()
|
||||||
|
ACTION_UNINSTALL_PACKAGE: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launches an Android intent
|
* Launches an Android intent
|
||||||
* @param options {IntentOptions}
|
* @param options {IntentOptions}
|
||||||
|
Loading…
Reference in New Issue
Block a user