Skip to content

Instantly share code, notes, and snippets.

@maxirosson
Created March 24, 2021 20:38
Show Gist options
  • Save maxirosson/d6539d2797ac0fa8e6e6a3d88d9e36fa to your computer and use it in GitHub Desktop.
Save maxirosson/d6539d2797ac0fa8e6e6a3d88d9e36fa to your computer and use it in GitHub Desktop.
override fun onMessageReceived(remoteMessage: RemoteMessage) {
if (remoteMessage.getData().containsKey("REMOTE_CONFIG_STATUS")) {
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
sharedPreferences.edit().putBoolean("remote_config_stale", true).apply()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment