kullanırken kullanıcının çevrimiçi olup olmadığını belirleme Bir mesaj göndermeden önce (yani, Firebase nesnesinde setValue çağrısı), kullanıcının çevrimiçi veya çevrimdışı olup olmadığını belirlemek için önerilen bir yol var mı? ÖrneğinFirebase iOS SDK
: onlar mesela bir tünele girdiler eğer kullanıcı bağlantısını kaybedebilir çünkü
[firebase setValue:someValue withCompletionBlock:^(NSError *error, Firebase *ref) {
// This block is ONLY executed if the write actually completes. But what if the user was offline when this was attempted?
// It would be nicer if the block is *always* executed, and error tells us if the write failed due to network issues.
}];
Biz iOS uygulamasında bu gerekir. Firebase bunu yapmak için yerleşik bir yol sunmuyorsa, iOS'un Ulaşılabilirlik API'sini izlemeyi tercih ederiz.