From a391e37f9045769219883688023de8d14181c04f Mon Sep 17 00:00:00 2001 From: tatham Date: Tue, 5 May 2020 18:59:13 +1000 Subject: [PATCH] feat(native-storage): add initWithSuiteName (#3365) * feat(native-storage): add initWithSuiteName * feat(native-storage): add initWithSuiteName Co-authored-by: Colin Tatham --- src/@ionic-native/plugins/native-storage/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/@ionic-native/plugins/native-storage/index.ts b/src/@ionic-native/plugins/native-storage/index.ts index 3850d591a..65153da4f 100644 --- a/src/@ionic-native/plugins/native-storage/index.ts +++ b/src/@ionic-native/plugins/native-storage/index.ts @@ -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} + */ + @Cordova({ + platforms: ['iOS'] + }) + initWithSuiteName(reference: string): Promise { + return; + } + /** * Stores a value * @param reference {string}