I did not find support for Firebase realtime database in b4i ( a library):
Is there an OBJC inline code to do that?
I tried the following code (taken from FIrebase docs) in a b4i Firebase project (which worked for Firebase notifications and authentications )but without benefit since it generates a compile error:
Firebase Realtime Database
Hi, Just wondering if there are any plans to integrate the firebase realtime database, please? I have an IOS app I need to do, which will hopefully user the reatime database Regards Neil
www.b4x.com
I tried the following code (taken from FIrebase docs) in a b4i Firebase project (which worked for Firebase notifications and authentications )but without benefit since it generates a compile error:
B4X:
#If OBJC
@import Firebase;
// Use Firebase library to configure APIs
-(void) write : (bool) on {
[FIRApp configure];
@property (strong, nonatomic) FIRDatabaseReference *ref;
self.ref = [[FIRDatabase database] reference];
[[[self.ref child:@"users"] child:authResult.user.uid]
setValue:@{@"username": username}];
NSLog(@"written");
}
#End If
Last edited: