Is it possible with firebase to create a user based on phone data or another form, avoiding sign ups on app to authenticate?Create a user with custom details in FirebaseMultiple Firebase App AuthenticationHow do I link each user to their data in Firebase for Swift 3?firebase multi-location updates user authentication and databaseFirebase verify phone number then authenticate user with email/password with SwiftHow to store data in Firebase along with Authentication dataDelete data from Firebase Realtime Database when user closes appFirebase phone authentication : once phone entered check if there is a user with that phone in usersGDPR & Firebase Realtime DataBase - Authentication and users identification: How to anonymize user data on firebase?

D&D Monsters and Copyright

How to make "acts of patience" exciting?

how do you value what your leisure time is worth?

Is it possible to listen to a TCP port only with a shell, with no additional tools?

Why didn't Kes send Voyager home?

Parliament Cannot Bind Future Parliaments

What powers an aircraft prior to the APU being switched on?

What kind of tools would be used to carve bone?

Does Australia produce unique 'specialty steel'?

A sentient carnivorous species trying to preserve life. How could they find a new food source?

I'm largest when I'm five, what am I?

Is self-defense mutually exclusive of murder?

Why is the logical NOT operator in C-style languages "!" and not "~~"?

Can expansion of space blueshift galaxies with respect to one another?

What is this dial on my old SLR for?

A demigod among men

Is any device installed on airplane to measure wind speed relative to the ground, and its direction?

Forced Conversion of Majority

What is this plane with its thick cockpit?

Why CMYK & PNG is not possible?

How to execute a project with two resources where you need three resources?

Installing Proprietary Windows Drivers on Linux

What is the best DIY approach to keeping brake dust off your rims?

Tool to get dual problem from any linear optimization problem (.lp)



Is it possible with firebase to create a user based on phone data or another form, avoiding sign ups on app to authenticate?


Create a user with custom details in FirebaseMultiple Firebase App AuthenticationHow do I link each user to their data in Firebase for Swift 3?firebase multi-location updates user authentication and databaseFirebase verify phone number then authenticate user with email/password with SwiftHow to store data in Firebase along with Authentication dataDelete data from Firebase Realtime Database when user closes appFirebase phone authentication : once phone entered check if there is a user with that phone in usersGDPR & Firebase Realtime DataBase - Authentication and users identification: How to anonymize user data on firebase?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I have a Swift iOS app which I want to avoid the process of creating a login/signup authentication for user. But still allowing individual users to able to save certain content of the app. Therefore improvising a form of unique id in Firebase, to retrieve all saved info saved only for that phone/user.



How would this be possible only using Realtime Database Firebase?










share|improve this question




























  • You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

    – Doug Stevenson
    Mar 28 at 21:32











  • How to always have that unique id linked to that phone. No matter if the app is closed and open again.

    – Vesper
    Mar 28 at 21:41











  • Save it to local storage?

    – Doug Stevenson
    Mar 28 at 21:42











  • That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

    – Vesper
    Mar 28 at 21:50











  • What about if the user change device?

    – cutiko
    Mar 28 at 22:04

















0

















I have a Swift iOS app which I want to avoid the process of creating a login/signup authentication for user. But still allowing individual users to able to save certain content of the app. Therefore improvising a form of unique id in Firebase, to retrieve all saved info saved only for that phone/user.



How would this be possible only using Realtime Database Firebase?










share|improve this question




























  • You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

    – Doug Stevenson
    Mar 28 at 21:32











  • How to always have that unique id linked to that phone. No matter if the app is closed and open again.

    – Vesper
    Mar 28 at 21:41











  • Save it to local storage?

    – Doug Stevenson
    Mar 28 at 21:42











  • That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

    – Vesper
    Mar 28 at 21:50











  • What about if the user change device?

    – cutiko
    Mar 28 at 22:04













0












0








0








I have a Swift iOS app which I want to avoid the process of creating a login/signup authentication for user. But still allowing individual users to able to save certain content of the app. Therefore improvising a form of unique id in Firebase, to retrieve all saved info saved only for that phone/user.



How would this be possible only using Realtime Database Firebase?










share|improve this question
















I have a Swift iOS app which I want to avoid the process of creating a login/signup authentication for user. But still allowing individual users to able to save certain content of the app. Therefore improvising a form of unique id in Firebase, to retrieve all saved info saved only for that phone/user.



How would this be possible only using Realtime Database Firebase?







ios firebase firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question



share|improve this question








edited Mar 28 at 21:42









Doug Stevenson

111k12 gold badges130 silver badges155 bronze badges




111k12 gold badges130 silver badges155 bronze badges










asked Mar 28 at 20:59









VesperVesper

7510 bronze badges




7510 bronze badges















  • You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

    – Doug Stevenson
    Mar 28 at 21:32











  • How to always have that unique id linked to that phone. No matter if the app is closed and open again.

    – Vesper
    Mar 28 at 21:41











  • Save it to local storage?

    – Doug Stevenson
    Mar 28 at 21:42











  • That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

    – Vesper
    Mar 28 at 21:50











  • What about if the user change device?

    – cutiko
    Mar 28 at 22:04

















  • You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

    – Doug Stevenson
    Mar 28 at 21:32











  • How to always have that unique id linked to that phone. No matter if the app is closed and open again.

    – Vesper
    Mar 28 at 21:41











  • Save it to local storage?

    – Doug Stevenson
    Mar 28 at 21:42











  • That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

    – Vesper
    Mar 28 at 21:50











  • What about if the user change device?

    – cutiko
    Mar 28 at 22:04
















You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

– Doug Stevenson
Mar 28 at 21:32





You can put whatever data you want in Realtime Database - your own generated IDs, if you want. I don't really understand the problem you're running into here.

– Doug Stevenson
Mar 28 at 21:32













How to always have that unique id linked to that phone. No matter if the app is closed and open again.

– Vesper
Mar 28 at 21:41





How to always have that unique id linked to that phone. No matter if the app is closed and open again.

– Vesper
Mar 28 at 21:41













Save it to local storage?

– Doug Stevenson
Mar 28 at 21:42





Save it to local storage?

– Doug Stevenson
Mar 28 at 21:42













That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

– Vesper
Mar 28 at 21:50





That would involve using plist or core data, I was look for a way to only depend on firebase. If there isn't then yes I would use a local storage

– Vesper
Mar 28 at 21:50













What about if the user change device?

– cutiko
Mar 28 at 22:04





What about if the user change device?

– cutiko
Mar 28 at 22:04












2 Answers
2






active

oldest

votes


















1


















You'd typically use anonymous sign in on Firebase Authentication for that. This generates a unique ID the first time you call Auth.auth().signInAnonymously(), and then uses that to identify the app instance. You could use that to key the data you store for that user in the database.






share|improve this answer


























  • even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

    – Vesper
    Mar 29 at 3:37






  • 1





    Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

    – Frank van Puffelen
    Mar 29 at 14:22


















0


















Realtime Database doesn't have a concept of per-user or per-device storage. You need to generate your own unique IDs in order to effectively partition off a space for each user or device. The database will not do that for you.






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406772%2fis-it-possible-with-firebase-to-create-a-user-based-on-phone-data-or-another-for%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1


















    You'd typically use anonymous sign in on Firebase Authentication for that. This generates a unique ID the first time you call Auth.auth().signInAnonymously(), and then uses that to identify the app instance. You could use that to key the data you store for that user in the database.






    share|improve this answer


























    • even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

      – Vesper
      Mar 29 at 3:37






    • 1





      Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

      – Frank van Puffelen
      Mar 29 at 14:22















    1


















    You'd typically use anonymous sign in on Firebase Authentication for that. This generates a unique ID the first time you call Auth.auth().signInAnonymously(), and then uses that to identify the app instance. You could use that to key the data you store for that user in the database.






    share|improve this answer


























    • even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

      – Vesper
      Mar 29 at 3:37






    • 1





      Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

      – Frank van Puffelen
      Mar 29 at 14:22













    1














    1










    1









    You'd typically use anonymous sign in on Firebase Authentication for that. This generates a unique ID the first time you call Auth.auth().signInAnonymously(), and then uses that to identify the app instance. You could use that to key the data you store for that user in the database.






    share|improve this answer














    You'd typically use anonymous sign in on Firebase Authentication for that. This generates a unique ID the first time you call Auth.auth().signInAnonymously(), and then uses that to identify the app instance. You could use that to key the data you store for that user in the database.







    share|improve this answer













    share|improve this answer




    share|improve this answer



    share|improve this answer










    answered Mar 28 at 22:22









    Frank van PuffelenFrank van Puffelen

    278k37 gold badges451 silver badges471 bronze badges




    278k37 gold badges451 silver badges471 bronze badges















    • even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

      – Vesper
      Mar 29 at 3:37






    • 1





      Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

      – Frank van Puffelen
      Mar 29 at 14:22

















    • even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

      – Vesper
      Mar 29 at 3:37






    • 1





      Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

      – Frank van Puffelen
      Mar 29 at 14:22
















    even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

    – Vesper
    Mar 29 at 3:37





    even if the user closes the app/restarts phone, would it maintain the same id and still be able to get info for that specific user?

    – Vesper
    Mar 29 at 3:37




    1




    1





    Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

    – Frank van Puffelen
    Mar 29 at 14:22





    Yep, the anonymous user's UID is persisted to disk, so restored between sessions. It is wiped is when the user uninstalls the app, or when you sign them out.

    – Frank van Puffelen
    Mar 29 at 14:22













    0


















    Realtime Database doesn't have a concept of per-user or per-device storage. You need to generate your own unique IDs in order to effectively partition off a space for each user or device. The database will not do that for you.






    share|improve this answer






























      0


















      Realtime Database doesn't have a concept of per-user or per-device storage. You need to generate your own unique IDs in order to effectively partition off a space for each user or device. The database will not do that for you.






      share|improve this answer




























        0














        0










        0









        Realtime Database doesn't have a concept of per-user or per-device storage. You need to generate your own unique IDs in order to effectively partition off a space for each user or device. The database will not do that for you.






        share|improve this answer














        Realtime Database doesn't have a concept of per-user or per-device storage. You need to generate your own unique IDs in order to effectively partition off a space for each user or device. The database will not do that for you.







        share|improve this answer













        share|improve this answer




        share|improve this answer



        share|improve this answer










        answered Mar 28 at 22:02









        Doug StevensonDoug Stevenson

        111k12 gold badges130 silver badges155 bronze badges




        111k12 gold badges130 silver badges155 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406772%2fis-it-possible-with-firebase-to-create-a-user-based-on-phone-data-or-another-for%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현