T trueboss323 Active Member Licensed User Longtime User May 3, 2017 #1 Hello , I am currently looking for ways where it would be convenient to have user data synced across multiple devices. Especially if they change a device they wouldn't lose all their settings. I am currently using Statamanager library to save settings. So for instance Code: Copy Statemanager.SetSetting("highscore", "12345") Saves a score on their device. But when a user gets a new phone, that score is gone. 1 solution I thought is doing Cloud saving , where it checks to see if device is logged into a google account, then saves settings there. When they reinstall it will automatically retrieve them. So i am wondering if there is a better library or another method to manage this Last edited: May 3, 2017
Hello , I am currently looking for ways where it would be convenient to have user data synced across multiple devices. Especially if they change a device they wouldn't lose all their settings. I am currently using Statamanager library to save settings. So for instance Code: Copy Statemanager.SetSetting("highscore", "12345") Saves a score on their device. But when a user gets a new phone, that score is gone. 1 solution I thought is doing Cloud saving , where it checks to see if device is logged into a google account, then saves settings there. When they reinstall it will automatically retrieve them. So i am wondering if there is a better library or another method to manage this
KMatle Expert Licensed User Longtime User May 3, 2017 #2 You need a central storage as you mentioned. Get a cheap hosted server if you like and store the score files there. See the examples how to upload/download files via httputils. Pro version: Database on a server. Upvote 0
You need a central storage as you mentioned. Get a cheap hosted server if you like and store the score files there. See the examples how to upload/download files via httputils. Pro version: Database on a server.
Erel B4X founder Staff member Licensed User Longtime User May 3, 2017 #3 trueboss323 said: Saves a score on their device. But when a user gets a new phone Click to expand... This requirement means that you need to authenticate the user. Check FirebaseAuth + Firebase Storage. Upvote 0
trueboss323 said: Saves a score on their device. But when a user gets a new phone Click to expand... This requirement means that you need to authenticate the user. Check FirebaseAuth + Firebase Storage.
T trueboss323 Active Member Licensed User Longtime User May 3, 2017 #4 Erel said: This requirement means that you need to authenticate the user. Check FirebaseAuth + Firebase Storage. Click to expand... If i use the Firebase storage library to upload the user's settings, is it going to store settings for each individual user or for all users? Because I dont want one user to have another user's settings. Last edited: May 3, 2017 Upvote 0
Erel said: This requirement means that you need to authenticate the user. Check FirebaseAuth + Firebase Storage. Click to expand... If i use the Firebase storage library to upload the user's settings, is it going to store settings for each individual user or for all users? Because I dont want one user to have another user's settings.
Erel B4X founder Staff member Licensed User Longtime User May 4, 2017 #5 trueboss323 said: is it going to store settings for each individual user or for all users? Click to expand... Yes (see FirebaseStorage tutorial). trueboss323 said: Because I dont want one user to have another user's settings. Click to expand... That is expected. Upvote 0
trueboss323 said: is it going to store settings for each individual user or for all users? Click to expand... Yes (see FirebaseStorage tutorial). trueboss323 said: Because I dont want one user to have another user's settings. Click to expand... That is expected.
T trueboss323 Active Member Licensed User Longtime User May 4, 2017 #6 Erel said: Yes (see FirebaseStorage tutorial). That is expected. Click to expand... Thanks Erel , my other question as i mentioned in another thread is if there is a better library you would recommend for saving settings of various data types and allows me to upload its configuration files to Firebase storage? Upvote 0
Erel said: Yes (see FirebaseStorage tutorial). That is expected. Click to expand... Thanks Erel , my other question as i mentioned in another thread is if there is a better library you would recommend for saving settings of various data types and allows me to upload its configuration files to Firebase storage?
Erel B4X founder Staff member Licensed User Longtime User May 5, 2017 #7 You can use RandomAccessFile.WriteB4XObject to save the data to a file. Upvote 0
T trueboss323 Active Member Licensed User Longtime User Jul 23, 2017 #8 Erel is there also an equivalent library I can use for B4J ? Upvote 0
DonManfred Expert Licensed User Longtime User Jul 23, 2017 #9 trueboss323 said: Erel is there also an equivalent library I can use for B4J ? Click to expand... JRandomAccessFile? Upvote 0
trueboss323 said: Erel is there also an equivalent library I can use for B4J ? Click to expand... JRandomAccessFile?
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #10 And iRandomAccessFile for B4i. Upvote 0