From a3bd19769fc8dc5c932f1c3e43dc3cfc44581362 Mon Sep 17 00:00:00 2001 From: Ahsan Ayaz Date: Sat, 27 Oct 2018 14:18:04 +0500 Subject: [PATCH] feat(crashlytics): allow user to set userIdentifier for crashlytics (#2792) setting user identifier is available since cordova-plugin-firebase@2.0.3 (https://github.com/arnesson/cordova-plugin-firebase/blob/master/CHANGELOG.md#features) added the functionality to the firebase ionic native plugin --- src/@ionic-native/plugins/firebase/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index ef7932949..893548935 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -307,6 +307,17 @@ export class Firebase extends IonicNativePlugin { return; } + /** + * Allows the user to set User Identifier for crashlytics reporting + * https://firebase.google.com/docs/crashlytics/customize-crash-reports?authuser=0#set_user_ids + * @param {string} userId value to set the userId + * @returns {Promise} + */ + @Cordova() + setCrashlyticsUserId(userId: string): Promise { + return; + } + /** * Sends an SMS to the user with the SMS verification code and returns the Verification ID required to sign in using phone authentication * @param {string} phoneNumber The phone number, including '+' and country code