Firebase push key - allowed characters

后端 未结 1 523
悲&欢浪女
悲&欢浪女 2020-12-18 22:36

I am wondering what kind of characters are allowed in the push key. Does it generate also a symbol underscore(_)? I always get a push key with letters with -.

相关标签:
1条回答
  • 2020-12-18 23:26

    Push keys use a modified Base64 alphabet:

    -0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
    

    They are comprised of a timestamp and a random value. The algorithm is described here.

    With Firebase keys in general, there is a small set of illegal characters and they are listed in this answer:

    Character Set Limitations

    Note that URLs used to construct Firebase references may contain any unicode characters except:

    • . (period)
    • $ (dollar sign)
    • [ (left square bracket)
    • ] (right square bracket)
    • # (hash or pound sign)
    • / (forward slash)
    0 讨论(0)
提交回复
热议问题