Skip to content Skip to sidebar Skip to footer

Android-firebase Childeventlistener In Service

in my android application i am trying to implement childEventListener of firebase database even when the app is not active. means whenever the firebase db particular child has a ne

Solution 1:

actually we can start a service in manifest fie. but in my case my mistake was i didnt added start service statement where i actually want to start it. so just by adding

startService(newIntent(this, ChildEventListener.class));

i a class where i want to start it. solved my problem.

-Thanx @ merterpam, for pointing out my mistake

Post a Comment for "Android-firebase Childeventlistener In Service"