>
<h2 id='migrating-from-2-x-x' class='heading'>Migrating from 2.x.x</h2>

<p>We now require you to start beams before you can use the library, for example to register any interests. This means the following code would no longer work and log an error to the console:</p>
<pre class="highlight plaintext"><code>try! PushNotifications.shared.addDeviceInterest("donuts")
PushNotifications.shared.start("YOUR_INSTANCE_ID")
</code></pre>

<p>You now need to replace it with the following:</p>
<pre class="highlight pl