- (void)addShortUserPlaylistUrl:(NSString *)playlistId
playlistName:(NSString *)playlistName
userDisplayName:(NSString *)userDisplayName
completionBlock:(ObjectBlock)completionBlock
{
FIRDatabaseReference *newUserPlaylistUrlRef = [[_root child:KPLRUserPlaylistUrlRef] childByAutoId];
if (newUserPlaylistUrlRef != nil) {
NSString *key = [newUserPlaylistUrlRef key];
NSDictionary *dict = @{ @"playlistId" : playlistId,
@"playlistName" : playlistName,
@"userDisplayName" : userDisplayName
};
[newUserPlaylistUrlRef setValue:dict withCompletionBlock:^(NSError * _Nullable error, FIRDatabaseReference * _Nonnull ref) {
//completion block not called, this code is never reached...
completionBlock(key, error);
}];
}
}
Here is a paste of the firebase logging, can anyone tell me what's wrong with this code ?
2016-10-06 17:13:33.219 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] Setting: /plr-playlist-url/plr-user-playlist-url/-KTPlM0VHIJmy7IpSbXp with {
playlistId = "-KTK7289xor0Fba6Y3SW";
playlistName = TITO;
userDisplayName = eussam3;
} pri: <null>
2016-10-06 17:13:33.220 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] Was connected, and added as index: 1
2016-10-06 17:13:33.220 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] Sending: {
d = {
a = p;
b = {
d = {
playlistId = "-KTK7289xor0Fba6Y3SW";
playlistName = TITO;
userDisplayName = eussam3;
};
p = "/plr-playlist-url/plr-user-playlist-url/-KTPlM0VHIJmy7IpSbXp";
};
r = 12;
};
t = d;
}
2016-10-06 17:13:33.221 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] (wsc:2) resetting keepalive, to 2016-10-06 16:14:18 +0000 ; old: 2016-10-06 16:14:08 +0000
2016-10-06 17:13:33.353 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] (wsc:2) handleNewFrameCount: 1
2016-10-06 17:13:33.353 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] (wsc:2) handleIncomingFrame sending complete frame: 0
2016-10-06 17:13:33.354 Metalplay PREPROD[25380:1142968] [FirebaseDatabase] Got data message: {
b = {
d = "";
s = ok;
};
r = 12;
}
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9b4f692c-ba26-479a-956f-743b54e5938d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9b4f692c-ba26-479a-956f-743b54e5938d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yep, my fault. I missed that.
The next follow up would be, how are you verifying that call is even being invoked? I don’t see any logging or indication that you’ve verified newUserPlaylistUrlRef
or that this code runs.
You might also try turning on debug logging for some additional info about what Firebase is up to:
JS: firebase.database().enableLogging(true);
iOS: [FIRDatabase setLoggingEnabled:YES];
Android: FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);
☼, Kato
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/34ff9407-8c82-4518-936e-cd4ea48efff1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/34ff9407-8c82-4518-936e-cd4ea48efff1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/34ff9407-8c82-4518-936e-cd4ea48efff1%40googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/11743929-6658-410b-8f60-8e66a9c80c76%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/11743929-6658-410b-8f60-8e66a9c80c76%40googlegroups.com.