https://github.com/firebase/firebase-android-sdk/blob/c56a9769b723bb96551ed2aa9fd3731e541ca018/firebase-database/src/main/java/com/google/firebase/database/core/utilities/PushIdGenerator.java#L69 The methods incorrectly assume that the keys are all in the style of the autogenerated RTDB keys, while in fact they may be any allowed key. See the iOS SDK issue and solution (work in progress) here: https://github.com/firebase/firebase-ios-sdk/issues/8790