If I have a Firebase Realtime Database server app hosted in the cloud (on, say, Heroku) with a typical listener:
FirebaseOptions options = new FirebaseOptions.Builder()
...
FirebaseApp.initializeApp(options);
...
ref.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
...
}
});
and this server app goes to sleep occasionally, will it wake up for listener events? What is the mechanism that Firebase uses to talk to my server app for a listener event, is it a normal http request?