import com.givekesh.baboon.Utils.Utils;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
public class MessagingService extends FirebaseMessagingService {
@Override
<BUG>public void onMessageReceived(RemoteMessage remoteMessage) {
if (remoteMessage.getData().containsKey("new_version"))

sendNotification(new Utils(this).getBazaarIntent(),</BUG>
String.format(getString(R.string.new_version_content), remoteMessage.getData().get("new_version")),

import com.givekesh.baboon.Utils.Utils;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
public class MessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
if (remoteMessage.getData().containsKey("new_version")) {
if (pref.getBoolean("notifications_new_version", true))
sendNotification(new Utils(this).getBazaarIntent(),
String.format(getString(R.string.new_version_content), remoteMessage.getData().get("new_version")),
