Skip to content

Commit

Permalink
docs(onesignal): add iOS platform to iOSSettings method
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Jul 10, 2017
1 parent e8faf22 commit ff793d6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/@ionic-native/plugins/onesignal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,14 @@ export enum OSActionType {
*
* #### Icons
* If you want to use generated icons with command `ionic cordova resources`:
*
*
* 1. Add a file to your `hooks` directory inside the `after_prepare` folder called `030_copy_android_notification_icons.js`
*
* 2. Put the following code in it:
*
* ```
* #!/usr/bin/env node
*
*
* var filestocopy = [{
* "resources/android/icon/drawable-hdpi-icon.png":
* "platforms/android/res/drawable-hdpi/ic_stat_onesignal_default.png"
Expand All @@ -329,13 +329,13 @@ export enum OSActionType {
* "resources/android/icon/drawable-xxxhdpi-icon.png":
* "platforms/android/res/drawable-xxxhdpi/ic_stat_onesignal_default.png"
* } ];
*
*
* var fs = require('fs');
* var path = require('path');
*
*
* // no need to configure below
* var rootdir = process.argv[2];
*
*
* filestocopy.forEach(function(obj) {
* Object.keys(obj).forEach(function(key) {
* var val = obj[key];
Expand Down Expand Up @@ -449,7 +449,10 @@ export class OneSignal extends IonicNativePlugin {
* Launch notifications with a launch URL as an in app webview.
* @returns {any}
*/
@Cordova({ sync: true })
@Cordova({
sync: true,
platforms: ['iOS']
})
iOSSettings(settings: {
kOSSettingsKeyAutoPrompt: boolean;
kOSSettingsKeyInAppLaunchURL: boolean;
Expand Down Expand Up @@ -574,7 +577,7 @@ export class OneSignal extends IonicNativePlugin {

/**
* Get the current notification and permission state. Returns a OSPermissionSubscriptionState type described below.
*
*
* @returns {Promise<OSPermissionSubscriptionState>}
*/
@Cordova()
Expand Down

0 comments on commit ff793d6

Please sign in to comment.