Skip to content

Commit

Permalink
feat(native-storage): add initWithSuiteName (#3365)
Browse files Browse the repository at this point in the history
* feat(native-storage): add initWithSuiteName

* feat(native-storage): add initWithSuiteName

Co-authored-by: Colin Tatham <colin.tatham@melbournewater.com.au>
  • Loading branch information
tatham and Colin Tatham authored May 5, 2020
1 parent 3e0b075 commit a391e37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/@ionic-native/plugins/native-storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
})
@Injectable()
export class NativeStorage extends IonicNativePlugin {
/**
* Initialises shared storage with the suite name when using app groups in iOS
* @param reference {string}
* @returns {Promise<void>}
*/
@Cordova({
platforms: ['iOS']
})
initWithSuiteName(reference: string): Promise<void> {
return;
}

/**
* Stores a value
* @param reference {string}
Expand Down

0 comments on commit a391e37

Please sign in to comment.