我开始创建一个可以从中购买商品的APP。可能是这样的:
在这里你可以看到Image,Name of product和Price。嗯,我有媒体链接一个Sign-in with Google用做Authentication Firebase和我存储它Firebase database,我想创建下面这个结构@Alex马莫向我建议:
Firebase-root
|
--- users
| |
| --- uid1
| |
| --- //user details (name, age, address, email and so on)
| |
| --- products
| |
| --- productId1 : true
| |
| --- productId2 : true
|
--- products
| |
| --- productId1
| | |
| | --- productName: "Apples"
| | | …Run Code Online (Sandbox Code Playgroud) android in-app-purchase in-app-billing firebase firebase-realtime-database