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
This commit is contained in:
Ahsan Ayaz 2018-10-27 14:18:04 +05:00 committed by Daniel Sogl
parent ff3ef094e0
commit a3bd19769f

View File

@ -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<any>}
*/
@Cordova()
setCrashlyticsUserId(userId: string): Promise<any> {
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