Since the plugin's methods return already a promise, the workaround with the `sync` option was used. This worked well for the method calls. However, when either cordova or the plugin was not available, an error was thrown, instead of rejecting the returned promise.
Therefore a better way is to use the `otherPromise` option, introduced with https://github.com/driftyco/ionic-native/releases/tag/v1.3.8.
* Added OneSignal wrapper
* documentation
* Changes for callback of notification revieced
* fixes for @Cordova decorators without Promise return
* Merge
* Improvements to OneSignal
extended init function with notificationOpenedCallback as an optional parameter
* Platforms removed
OneSignal supports more than only these 3 platforms. It's available to nearly all Cordova platforms.
* Init method turned into observable
* Screen Orientation Plugin added. Closes#342
* Added VideoPlayer plugin #318
* Added OneSignal wrapper
* documentation
* Changes for callback of notification revieced
* fixes for @Cordova decorators without Promise return
* Merge
* Improvements to OneSignal
extended init function with notificationOpenedCallback as an optional parameter
* Platforms removed
OneSignal supports more than only these 3 platforms. It's available to nearly all Cordova platforms.
* Init method turned into observable
* Screen Orientation Plugin added. Closes#342
* Added OneSignal wrapper
* documentation
* Changes for callback of notification revieced
* fixes for @Cordova decorators without Promise return
* Merge
* Improvements to OneSignal
extended init function with notificationOpenedCallback as an optional parameter
* Platforms removed
OneSignal supports more than only these 3 platforms. It's available to nearly all Cordova platforms.
* Init method turned into observable
* Add SecureStorage plugin.
* Add SecureStorage plugin.
* Added create() and removed init() to provide more consistency to ionic-native plugins.
Edited comments to reflect changes.
* Removed init and comment edit.
* Updates docs for CameraPreview, Base64ToGallery and Developer.MD
-DEVELOPER.md: Corrects 'npm run tslint' instruction to 'npm run lint'
-CameraPreview: Fixes syntax error in hide
-Base64ToGallery: Adds desc of options obj props
* Fixes resolveLocalFileSystemURL bug in File.readAsText() and adds File.readAsDataUrl()
- File.readAsText(): window.resolveLocalFileSystemURL() was incorrectly implemented
* Updates callback arg in File.checkFile()
Callback arg of window.resolveLocalFileSystemURL was fileSystem, but it actually returns fileEntry
* Corrects repo link and comments out setFlashMode()
- Repo prop and link in desc were not pointing to the same gh repo as the plugin
- setFlashMode() is not currently available in the repo that gets pulled by the corodova plugin
-DEVELOPER.md: Corrects 'npm run tslint' instruction to 'npm run lint'
-CameraPreview: Fixes syntax error in hide
-Base64ToGallery: Adds desc of options obj props
* - Add support for canShareViaEmail
- Make the following parameters in shareViaEmail method optional: cc, bcc, files
- Add usage for canShareViaEmail and shareViaEmail
- Fix some formatting to be more consistent
- Fix pluginRef
* Fix import
* Change static fields from default (private) to public
* Move methods below primitve
* Stay @private in docs due to prevent the docs generator from documenting them