Boundary conditions for Klein-Gordon equation Let us consider the Klein-Gordon equation 
$$(\Box +m^2)u=0,$$
where $u$ is a scalar valued function, $m\geq 0$, $\Box=\frac{\partial^2}{\partial x_0^2}-\sum_{i=1}^d\frac{\partial^2}{\partial x_i^2}$.
In the physics literature, in particular in QFT, one sometimes says that if the unknown function $u$ satisfies boundary conditions then $u=0$.
Question. Under what decay assumptions at infinity are the solutions of the above equation necessarily trivial? 
I am mainly interested in such conditions of physical interest, say used in QFT.
UPDATE. Below is a concrete example of a situation of interest. In comments I briefly describe yet another situation which is typical for QFT and more interesting, but mathematically unrigorous. As I was told, the second situation is not appropriate for this site.
Consider now the classical (i.e. not quantized) free electromagnetic field $A_\nu$. It satisfies the equation
$$\Box A_\nu-\partial_\nu (\partial\cdot A)=0.$$
It is gauge invariant, i.e. $A_\nu+\partial_\nu f$ satisfies the same equation for any function $f$. Under a change under such a gauge transformation we may assume that $\partial\cdot A=0$ (Lorentz gauge). Then the equations become
$$\Box A_\nu=0,\,\,\, \partial\cdot A=0.$$
It is still invariant under adding to $A_\nu$ the expression $\partial_\nu f$ where $\Box f=0$. What are the natural boundary conditions on all the electromagnetic fields which would guarantee that $f=0$?
 A: There are a few things that can be said about this, and it depends on how one "approaches" infinity.

*

*Wave equations satisfy conservation of energy. Let $$E(t) = \int_{\{t\} \times \mathbb{R}^d} |\partial_t\phi|^2 + |\nabla \phi|^2 + m^2 \phi^2 ~\mathrm{d}x$$ then it can be shown that $E(t) = E(0)$ for every $t$. And hence if your "decay assumptions" is sufficiently strong to guarantee that $$ \lim_{t \to \infty} E(t) = 0 $$ then you can conclude that $E(t) = 0$ for all $t$ and hence the solution vanishes.


*Wave and Klein-Gordon equations satisfy "finite speed of propagation", which means that if you require decay conditions only at spatial infinity (for example, of the form
$$  \forall t \in \mathbb{R}, \forall \omega \in \mathbb{S}^{d-1}, \lim_{r \to\infty} f(t,r\omega) = 0 $$
which states that for every time, in any direction, the solution decays to zero as you move away toward infinity along the appropriate ray) you cannot conclude that $f\equiv 0$: in fact if the solution has compact spatial support at any time-slice, the solution will have compact spatial solution for every time slice.


*On the other hand, wave and Klein-Gordon equations are dispersive, this means that the spatial support of their solutions tend to grow over time, so decay conditions giving strict rates of decay can be used. For example, it you require that for all times, the solution vanish outside a fixed ball of radius $R$, then you can conclude that the solution must identically vanish. (There are many ways of doing this, Holmgren's Uniqueness Theorem is one way; John's Plane waves and spherical means book has some other discussions.)
This result can be somewhat strengthened: for example, let $\epsilon > 0$ and $R > 0$ be fixed, and suppose that your solution is "concentrated" in the following sense:
$$ \forall t \in \mathbb{R}, \int_{\{t\} \times B_R(0)} |\partial_t\phi|^2 + |\nabla\phi|^2 + m^2 \phi^2 ~\mathrm{d}x \geq \epsilon E(t) $$
in other words, you assume that at any given time, a fixed positive fraction of the total energy remains within the ball of radius $R$. Then you can conclude that the solution must be identically zero. (This is a consequence of the "integrated local energy estimates".)


*So far we have discussed decays toward spatial and time-like infinities. For wave equations (the statements in the following do not apply as well to the Klein-Gordon equations for technical and not-completely understood reasons) there is a third natural notion of infinity, which is that of null or light-like infinity. In the relativists' language this is the space-time boundary portion usually denoted $\mathscr{I}^\pm$.
Free waves are expected to radiate to null infinity. This much was well known since the 60s. And so one can study the "rescaled limit" of the solution at null infinity, which at times goes by the name of "Friedlander's Radiation Field" (for reference, one can consult F.G. Friedlander's The Wave Equation on a Curved Spacetime or Lax and Phillips Scattering Theory). The short summary is that when this rescaled limit is identically zero (which implies a particular rate, depending on the dimension (roughly speaking faster than $r^{(1-d)/2}$), of decay of the solution to null infinity), then the solution must vanish identically.
More recently the analyses have been improved by Alexakis, Schlue, and Shao who prove, using unique continuation methods, a large class of "sufficient decay conditions" toward null infinity that can guarantee the vanishing of solutions in the interior which hold for not just the homogeneous wave equation on Minkowski space but also for suitable perturbations.
