From f4b03bcce4e2370392aa3aa8546ef81e317f5379 Mon Sep 17 00:00:00 2001 From: Srinidhi Date: Tue, 19 Nov 2019 14:00:17 +0530 Subject: [PATCH] feat(unvired-cordova-sdk): add method to get log file path (#3222) * feat(unvired-cordova-sdk): support login via email * fix(unvired-cordova-sdk): return typed promise object for user settings * fix(unvired-cordova-sdk): change return type to string for guid() * doc(unvired-cordova-sdk): doc update * doc(unvired-cordova-sdk): update doc * feat(unvired-cordova-sdk): add support for metadata JSON * doc(unvired-cordova-sdk): update doc * doc(unvired-cordova-sdk): update doc * feat(unvired-cordova-sdk): add methods to get and set log level * fix(unvired-cordova-sdk): update the return type for getLog() * feat(unvired-cordova-sdk): return platform name * feat(unvired-cordova-sdk): add method to get log file path * feat(unvired-cordova-sdk): test push notifications * fix(unvired-cordova-sdk): define return for logRead --- .../plugins/unvired-cordova-sdk/index.ts | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts b/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts index 9bd06934f..b19658c7a 100644 --- a/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts +++ b/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts @@ -243,6 +243,11 @@ export class LogResult extends UnviredResult { data: LogLevel; } +export class LogDataResult extends UnviredResult { + type: ResultType; + data: string; +} + export class NotifResult extends UnviredResult { type: NotificationListenerType; } @@ -564,7 +569,7 @@ export class UnviredCordovaSDK extends IonicNativePlugin { * Returns the contents of the log file as a string. */ @Cordova() - logRead(): Promise { + logRead(): Promise { return; } @@ -600,6 +605,14 @@ export class UnviredCordovaSDK extends IonicNativePlugin { return; } + /** + * Returns the path of the log file. + */ + @Cordova() + getLogFilePath(): Promise { + return; + } + /** * Set the log level of the app. * @param logLevel The log level to set @@ -1282,4 +1295,13 @@ export class UnviredCordovaSDK extends IonicNativePlugin { platform(): Promise { return; } + + /** + * Mobile Platform only. + * Test whether push notifications can be received on the device + */ + @Cordova() + testPushNotification(): Promise { + return; + } }