B beelze69 Active Member Licensed User Longtime User Jun 15, 2018 #1 Hi, I am attempting to use FireBase services to download a file from the Public folder on to my Local Mobile Device. I have kept google-services.json in the File Manager path before compilation. Post compilation I am getting error in running the Application. Log dump is also attached. Also attached is the source code that was available in b4A which I modified to just fetch a file from the Public Folder under FBase. Kindly guide me as to where am I going wrong here. Thanks Attachments log.txt log.txt 1.2 KB · Views: 476 FirebaseStorage.zip FirebaseStorage.zip 2.7 KB · Views: 441
Hi, I am attempting to use FireBase services to download a file from the Public folder on to my Local Mobile Device. I have kept google-services.json in the File Manager path before compilation. Post compilation I am getting error in running the Application. Log dump is also attached. Also attached is the source code that was available in b4A which I modified to just fetch a file from the Public Folder under FBase. Kindly guide me as to where am I going wrong here. Thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 17, 2018 #2 It is related to an issue with FirebaseAuth v16.0. You should use FirebaseAuth v15.1: https://www.b4x.com/android/forum/t...reaks-firebaseauth-library.93446/#post-591424 Upvote 0
It is related to an issue with FirebaseAuth v16.0. You should use FirebaseAuth v15.1: https://www.b4x.com/android/forum/t...reaks-firebaseauth-library.93446/#post-591424
B beelze69 Active Member Licensed User Longtime User Jun 21, 2018 #3 Erel said: It is related to an issue with FirebaseAuth v16.0. You should use FirebaseAuth v15.1: https://www.b4x.com/android/forum/t...reaks-firebaseauth-library.93446/#post-591424 Click to expand... Hi Erel, I updated the Firebase Services as per the above post and copied the relevant .jar and .xml files to my 'internal libraries folder'. I have also made the relevant entries in the Manifest editor. But I am still getting an error. Attached is i) Updated source code ii) the Error log file iii) The SDK entries showing what I have installed related to FB Auth. Kindly guide me as to where am I going wrong. Thanks Attachments FirebaseStorageAppUpdated.zip FirebaseStorageAppUpdated.zip 23.8 KB · Views: 390 log.txt log.txt 5.1 KB · Views: 494 Firebase_Auth_related_Files_on_my_PC.jpg 195.7 KB · Views: 518 Last edited: Jun 21, 2018 Upvote 0
Erel said: It is related to an issue with FirebaseAuth v16.0. You should use FirebaseAuth v15.1: https://www.b4x.com/android/forum/t...reaks-firebaseauth-library.93446/#post-591424 Click to expand... Hi Erel, I updated the Firebase Services as per the above post and copied the relevant .jar and .xml files to my 'internal libraries folder'. I have also made the relevant entries in the Manifest editor. But I am still getting an error. Attached is i) Updated source code ii) the Error log file iii) The SDK entries showing what I have installed related to FB Auth. Kindly guide me as to where am I going wrong. Thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2018 #4 As you can see in that thread, the solution proposed there is no longer relevant as the latest version of FirebaseAuth fixes the issue: https://www.b4x.com/android/forum/threads/firebase-notifications-firebase-auth-issues.94200/ Delete all the manifest editor code and follow the tutorial: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Upvote 0
As you can see in that thread, the solution proposed there is no longer relevant as the latest version of FirebaseAuth fixes the issue: https://www.b4x.com/android/forum/threads/firebase-notifications-firebase-auth-issues.94200/ Delete all the manifest editor code and follow the tutorial: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/
B beelze69 Active Member Licensed User Longtime User Jun 23, 2018 #5 Hi Erel, As already mentioned in my above post, I had already copied all the latest FirebaseAnalytics and FirebaseAuth files into my internal libraries folder as per post ' https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-596101' Now in order to eliminate the confusion in the Manifest thing, I created a new Project in B4a 8.30 + and ADDED only the relevant entries : viz. CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase) CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase) CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth) My application is executing but when I press the Public folder button, nothing happens. Also worrying is the warning google-services.json is not used - despite I having copied it in the folder where the .B4A file resides. Attaching the modified source code. Ps. help. Attachments FirebaseStorageUpdated.zip FirebaseStorageUpdated.zip 23 KB · Views: 396 Upvote 0
Hi Erel, As already mentioned in my above post, I had already copied all the latest FirebaseAnalytics and FirebaseAuth files into my internal libraries folder as per post ' https://www.b4x.com/android/forum/threads/updates-to-internal-libraries.59340/#post-596101' Now in order to eliminate the confusion in the Manifest thing, I created a new Project in B4a 8.30 + and ADDED only the relevant entries : viz. CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase) CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase) CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth) My application is executing but when I press the Public folder button, nothing happens. Also worrying is the warning google-services.json is not used - despite I having copied it in the folder where the .B4A file resides. Attaching the modified source code. Ps. help.
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2018 #6 See step #3: 3. Download google-services.json and put it in the projects folder (folder of the b4a file). https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Upvote 0
See step #3: 3. Download google-services.json and put it in the projects folder (folder of the b4a file). https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/
B beelze69 Active Member Licensed User Longtime User Jun 25, 2018 #7 Hi Erel, Thanks.. I had placed my 'application folder' [containing the b4A file] in a location other than the folder where the .b4A exe resides. I moved that folder inside the standard Application projects folder and the Warning message 'google-services.json is not used' went away.. However I am unable to download the file which I have specified in the code.. It says ' (IOException) java.io.IOException: Could not open resulting stream.' Ps. guide me as to what is the mistake I am doing here.. Attaching the source code and the log file... Ps. help. Thanks.. Attachments FirebaseStorageAppUpdated.zip FirebaseStorageAppUpdated.zip 22.3 KB · Views: 450 log.txt log.txt 806 bytes · Views: 513 Upvote 0
Hi Erel, Thanks.. I had placed my 'application folder' [containing the b4A file] in a location other than the folder where the .b4A exe resides. I moved that folder inside the standard Application projects folder and the Warning message 'google-services.json is not used' went away.. However I am unable to download the file which I have specified in the code.. It says ' (IOException) java.io.IOException: Could not open resulting stream.' Ps. guide me as to what is the mistake I am doing here.. Attaching the source code and the log file... Ps. help. Thanks..
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2018 #8 google-services.json file should be in the same folder where the FirebaseStorage.b4a resides. I guess that it is there. Change your package name to all lower case (b4a.beelzefirebasetest). You need to also change it in the Firebase project. Upper case letters can cause problems. Are you sure that the file is actually there? Can you post your Firebase Storage rules? Upvote 0
google-services.json file should be in the same folder where the FirebaseStorage.b4a resides. I guess that it is there. Change your package name to all lower case (b4a.beelzefirebasetest). You need to also change it in the Firebase project. Upper case letters can cause problems. Are you sure that the file is actually there? Can you post your Firebase Storage rules?